Documentation
¶
Index ¶
- func AddExport(uuid string) error
- func AddHost(hostname, ip string) error
- func AddSudoer() error
- func CreateAgent() error
- func CreateDir() error
- func CreateDisk(sshKey string, size int) error
- func DownloadOS(version string) error
- func EnsureSudo()
- func GetIP(uuid string) (string, error)
- func GetLatestOSVersion() (string, error)
- func Proxy(ip string) error
- func RemoveAgent() error
- func RemoveDir() error
- func RemoveHost() error
- func RemoveSudoer() error
- func SaveConfig(config Config) error
- func Spin(fm FunctionMap) error
- func StartVM(config Config) chan error
- type Config
- type FunctionMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAgent ¶
func CreateAgent() error
func CreateDisk ¶
func DownloadOS ¶
func EnsureSudo ¶
func EnsureSudo()
func GetLatestOSVersion ¶
func RemoveAgent ¶
func RemoveAgent() error
func RemoveHost ¶
func RemoveHost() error
func RemoveSudoer ¶
func RemoveSudoer() error
func SaveConfig ¶
func Spin ¶
func Spin(fm FunctionMap) error
Types ¶
type Config ¶
type Config struct { Uuid string `json:"uuid"` CpuCount int `json:"cpu_count"` Memory int `json:"memory"` Hostname string `json:"hostname"` }
func ReadConfig ¶
type FunctionMap ¶
type FunctionMap map[string]wrapped
Click to show internal directories.
Click to hide internal directories.