utils

package
v0.0.0-...-572fd97 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2016 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddExport

func AddExport(uuid, share string) error

func AddHost

func AddHost(hostname, ip string) error

func AddSudoer

func AddSudoer() error

func CreateAgent

func CreateAgent() error

func CreateDir

func CreateDir() error

func CreateDisk

func CreateDisk(sshKey string, size int) error

func DownloadOS

func DownloadOS(version string) error

func EnsureSudo

func EnsureSudo()

func GetIP

func GetIP(uuid string) (string, error)

func GetLatestOSVersion

func GetLatestOSVersion() (string, error)

func Proxy

func Proxy(ip string) error

func RemoveAgent

func RemoveAgent() error

func RemoveDir

func RemoveDir() error

func RemoveHost

func RemoveHost() error

func RemoveSudoer

func RemoveSudoer() error

func SaveConfig

func SaveConfig(config Config) error

func Spin

func Spin(fm Steps) error

func StartAgent

func StartAgent() error

func StartVM

func StartVM(config Config) chan error

func StopAgent

func StopAgent() error

Types

type Config

type Config struct {
	Uuid     string `json:"uuid"`
	CpuCount int    `json:"cpu_count"`
	Memory   int    `json:"memory"`
	Hostname string `json:"hostname"`
	Share    string `json:"share"`
}

func ReadConfig

func ReadConfig() (Config, error)

type Step

type Step struct {
	Prefix string
	Action func() error
}

type Steps

type Steps []Step

Jump to

Keyboard shortcuts

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