Documentation ¶
Index ¶
- Constants
- func IsInstanceNotFound(err error) bool
- func NewClient(executablePath string) (*client, error)
- func SetLaunchCloudInit(cloudInit string) argSetter
- func SetLaunchCpus(cpus int) argSetter
- func SetLaunchDisk(disk string) argSetter
- func SetLaunchImage(image string) argSetter
- func SetLaunchMemory(memory string) argSetter
- func SetLaunchName(name string) argSetter
- func SetMounts(mounts []MountArg) argSetter
- type InstanceNotFound
- type MountArg
Constants ¶
View Source
const ( STATE_RUNNING = "Running" STATE_STOPPED = "Stopped" STATE_DELETED = "Deleted" STATE_STARTING = "Starting" STATE_RESTARTING = "Restarting" STATE_DELAYED_SHUTDOWN = "Delayed Shutdown" STATE_SUSPENDING = "Suspending" STATE_SUSPENDED = "Suspended" STATE_UNKNOWN = "Unknown" )
View Source
const ( CPUS = "cpus" DISK = "disk" MEMORY = "memory" )
Variables ¶
This section is empty.
Functions ¶
func IsInstanceNotFound ¶ added in v0.0.13
func SetLaunchCloudInit ¶ added in v0.0.3
func SetLaunchCloudInit(cloudInit string) argSetter
func SetLaunchCpus ¶ added in v0.0.3
func SetLaunchCpus(cpus int) argSetter
func SetLaunchDisk ¶ added in v0.0.3
func SetLaunchDisk(disk string) argSetter
func SetLaunchImage ¶ added in v0.0.3
func SetLaunchImage(image string) argSetter
func SetLaunchMemory ¶ added in v0.0.3
func SetLaunchMemory(memory string) argSetter
func SetLaunchName ¶ added in v0.0.3
func SetLaunchName(name string) argSetter
Types ¶
type InstanceNotFound ¶
type InstanceNotFound struct {
// contains filtered or unexported fields
}
func (*InstanceNotFound) Error ¶
func (i *InstanceNotFound) Error() string
Click to show internal directories.
Click to hide internal directories.