Documentation
¶
Index ¶
- type AgentEnv
- type AgentOptions
- type BlobstoreOptions
- type BlobstoreSpec
- type Creator
- type DisksSpec
- type EnvSpec
- type Environment
- type Factory
- type FactoryOpts
- type Finder
- type Host
- type ISO9660
- type NICs
- type Network
- type NetworkSpec
- type Networks
- type NetworksSpec
- type PersistentSpec
- type Store
- type VM
- type VMImpl
- func (vm VMImpl) AttachDisk(disk bdisk.Disk) error
- func (vm VMImpl) AttachEphemeralDisk(disk bdisk.Disk) error
- func (vm VMImpl) ConfigureAgent(agentEnv AgentEnv) error
- func (vm VMImpl) ConfigureNICs(nets Networks) (Networks, error)
- func (vm VMImpl) Delete() error
- func (vm VMImpl) DetachDisk(disk bdisk.Disk) error
- func (vm VMImpl) DiskIDs() ([]string, error)
- func (vm VMImpl) Exists() (bool, error)
- func (vm VMImpl) HaltIfRunning() error
- func (vm VMImpl) ID() string
- func (vm VMImpl) IsRunning() (bool, error)
- func (vm VMImpl) Reboot() error
- func (vm VMImpl) SetMetadata(meta VMMetadata) error
- func (vm VMImpl) SetProps(props VMProps) error
- func (vm VMImpl) Start(gui bool) error
- func (vm VMImpl) State() (string, error)
- type VMMetadata
- type VMProps
- type VMSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentEnv ¶
type AgentEnv struct {
AgentID string `json:"agent_id"`
VM VMSpec `json:"vm"`
Mbus string `json:"mbus"`
NTP []string `json:"ntp"`
Blobstore BlobstoreSpec `json:"blobstore"`
Networks NetworksSpec `json:"networks"`
Disks DisksSpec `json:"disks"`
Env EnvSpec `json:"env"`
}
func NewAgentEnvForVM ¶
func NewAgentEnvForVM(agentID, vmCID string, networks Networks, env Environment, agentOptions AgentOptions) AgentEnv
func NewAgentEnvFromJSON ¶
func (AgentEnv) AttachEphemeralDisk ¶
func (AgentEnv) AttachPersistentDisk ¶
func (AgentEnv) DetachPersistentDisk ¶
type AgentOptions ¶
type AgentOptions struct {
Mbus string // e.g. "https://user:password@127.0.0.1:4321/agent"
NTP []string // e.g. ["0.us.pool.ntp.org"]. Ok to be empty
Blobstore BlobstoreOptions
}
func (AgentOptions) Validate ¶
func (o AgentOptions) Validate() error
type BlobstoreOptions ¶
func (BlobstoreOptions) Validate ¶
func (o BlobstoreOptions) Validate() error
type BlobstoreSpec ¶
type DisksSpec ¶
type DisksSpec struct {
System string `json:"system"`
Ephemeral interface{} `json:"ephemeral"`
Persistent PersistentSpec `json:"persistent"`
}
type Environment ¶
type Environment map[string]interface{}
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
func NewFactory ¶
type FactoryOpts ¶ added in v0.0.6
type Host ¶ added in v0.0.7
type Host struct {
// contains filtered or unexported fields
}
func (Host) EnableNetworks ¶ added in v0.0.7
type ISO9660 ¶
More or less vendored from https://github.com/johto/iso9660wrap/blob/master/iso9660wrap.go
type Network ¶
type Network struct {
Type string
IP string
Netmask string
Gateway string
DNS []string
Default []string
MAC string
CloudPropertyName string
CloudPropertyType string
}
func (Network) IsDefaultFor ¶
type NetworkSpec ¶
type NetworksSpec ¶
type NetworksSpec map[string]NetworkSpec
type PersistentSpec ¶
type PersistentSpec map[string]interface{}
type VMImpl ¶
type VMImpl struct {
// contains filtered or unexported fields
}
func (VMImpl) ConfigureAgent ¶
func (VMImpl) HaltIfRunning ¶
func (VMImpl) SetMetadata ¶
func (vm VMImpl) SetMetadata(meta VMMetadata) error
type VMMetadata ¶
type VMMetadata map[string]interface{}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.