tooling

package
v0.2.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	//TODO:  Password should be a hash
	User     string        `yaml:"user"`
	Password string        `yaml:"password"`
	Types    []MachineType `yaml:"types"`
}

Config holds a list of MachineTypes

func CreateConfigFromFile

func CreateConfigFromFile(fpath string) (cfg Config, err error)

CreateConfigFromFile parses a file and returns a workshop

func ParseConfig

func ParseConfig(data []byte) (cfg Config, err error)

ParseConfig takes a bytearray and unmarshals it

type MachineType

type MachineType struct {
	DisplayName string   `yaml:"name"`
	Features    []string `yaml:"features"`
}

MachineType stores the name and the list of features

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL