utils

package
v0.0.0-...-bcc3945 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2016 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddExport

func AddExport(uuid 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 FunctionMap) error

func StartVM

func StartVM(config Config) chan 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

func ReadConfig() (Config, error)

type FunctionMap

type FunctionMap map[string]wrapped

Jump to

Keyboard shortcuts

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