Documentation ¶
Index ¶
- type CreateArgs
- type Machine
- func (m *Machine) AttachDatablock(p OneProvisioner, b *provision.Box) error
- func (m *Machine) AttachNetwork(box *provision.Box, p OneProvisioner) error
- func (m *Machine) AttachNewDisk(p OneProvisioner) error
- func (m *Machine) ChangeState(status utils.Status) error
- func (m *Machine) CheckCredits(b *provision.Box, w io.Writer) error
- func (m *Machine) CheckQuotaState(b *provision.Box, w io.Writer) error
- func (m *Machine) CheckSaveImage(p OneProvisioner) error
- func (m *Machine) Create(args *CreateArgs) error
- func (m *Machine) CreateBackupVM(args *CreateArgs) error
- func (m *Machine) CreateDatablock(p OneProvisioner, box *provision.Box) error
- func (m *Machine) CreateDiskImage(p OneProvisioner) error
- func (m *Machine) CreateDiskSnap(p OneProvisioner) error
- func (m *Machine) CreateImage(p OneProvisioner, img images.ImageType) error
- func (m *Machine) CreateInstance(p OneProvisioner, box *provision.Box) error
- func (m *Machine) DetachNetwork(box *provision.Box, p OneProvisioner) error
- func (m *Machine) Exec(p OneProvisioner, stdout, stderr io.Writer, cmd string, args ...string) error
- func (m *Machine) GetMarketplaceVNC(p OneProvisioner) error
- func (m *Machine) IPs(nics []virtualmachine.Nic) map[string][]string
- func (m *Machine) ImagePersistent(p OneProvisioner) error
- func (m *Machine) ImageTypeChange(p OneProvisioner) error
- func (m *Machine) IsImageReady(p OneProvisioner) error
- func (m *Machine) IsSnapCreated() bool
- func (m *Machine) IsSnapDeleted() bool
- func (m *Machine) IsSnapReady(p OneProvisioner) error
- func (m *Machine) LifecycleOps(p OneProvisioner, action string) error
- func (m *Machine) Logs(p OneProvisioner, w io.Writer) error
- func (m *Machine) MakeActiveSnapshot() error
- func (m *Machine) MarketplaceInstanceState(p OneProvisioner) error
- func (m *Machine) Remove(p OneProvisioner) error
- func (m *Machine) RemoveBackupImage(p OneProvisioner) error
- func (m *Machine) RemoveDatablock(p OneProvisioner) error
- func (m *Machine) RemoveDisk(p OneProvisioner) error
- func (m *Machine) RemoveImage(p OneProvisioner) error
- func (m *Machine) RemoveInstance(p OneProvisioner) error
- func (m *Machine) RemoveNetworkIps(box *provision.Box) error
- func (m *Machine) RemoveSnapshot(p OneProvisioner) error
- func (m *Machine) RestoreSnapshot(p OneProvisioner) error
- func (m *Machine) SetMileStone(state utils.State) error
- func (m *Machine) SetRoutable(ip string)
- func (m *Machine) SetStatus(status utils.Status) error
- func (m *Machine) SetStatusErr(status utils.Status, causeof error) error
- func (m *Machine) StopMarkplaceInstance(p OneProvisioner) error
- func (m *Machine) UpdateBackupPath(p OneProvisioner) error
- func (m *Machine) UpdateBackupStatus(status utils.Status) error
- func (m *Machine) UpdateBackupVMIps() error
- func (m *Machine) UpdateDisk(p OneProvisioner) error
- func (m *Machine) UpdateImage() error
- func (m *Machine) UpdateImageStatus() error
- func (m *Machine) UpdateMarketImageId() error
- func (m *Machine) UpdateMarketplaceError(causeof error) error
- func (m *Machine) UpdateMarketplaceStatus() error
- func (m *Machine) UpdateMarketplaceVNC() error
- func (m *Machine) UpdatePolicyStatus(index int) error
- func (m *Machine) UpdateSnap() error
- func (m *Machine) UpdateSnapQuotas(id string) error
- func (m *Machine) UpdateSnapStatus(status utils.Status) error
- func (m *Machine) UpdateVMIps(p OneProvisioner) error
- func (m *Machine) UpdateVMQuotas(id string) error
- func (m *Machine) UpdateVncHostPost() error
- func (m *Machine) VmHostIpPort(args *CreateArgs) error
- func (m *Machine) WaitUntillVMState(p OneProvisioner, vm virtualmachine.VmState, lcm virtualmachine.LcmState) error
- type OneProvisioner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateArgs ¶
type CreateArgs struct { Commands []string Box *provision.Box Compute provision.BoxCompute Deploy bool Provisioner OneProvisioner }
type Machine ¶
type Machine struct { Name string Region string Id string CartonId string CartonsId string AccountId string Level provision.BoxLevel SSH provision.BoxSSH Image string VCPUThrottle string VMId string VNCHost string VNCPort string ImageId string StorageType string Routable bool PublicUrl string Status utils.Status State utils.State }
func (*Machine) AttachDatablock ¶
func (m *Machine) AttachDatablock(p OneProvisioner, b *provision.Box) error
func (*Machine) AttachNetwork ¶
func (m *Machine) AttachNetwork(box *provision.Box, p OneProvisioner) error
func (*Machine) AttachNewDisk ¶
func (m *Machine) AttachNewDisk(p OneProvisioner) error
it possible to have a Notifier interface that does this, duck typed by Snap id
func (*Machine) ChangeState ¶
just publish a message stateup to the machine.
func (*Machine) CheckQuotaState ¶
func (*Machine) CheckSaveImage ¶
func (m *Machine) CheckSaveImage(p OneProvisioner) error
func (*Machine) Create ¶
func (m *Machine) Create(args *CreateArgs) error
func (*Machine) CreateBackupVM ¶
func (m *Machine) CreateBackupVM(args *CreateArgs) error
func (*Machine) CreateDatablock ¶
func (m *Machine) CreateDatablock(p OneProvisioner, box *provision.Box) error
func (*Machine) CreateDiskImage ¶
func (m *Machine) CreateDiskImage(p OneProvisioner) error
func (*Machine) CreateDiskSnap ¶
func (m *Machine) CreateDiskSnap(p OneProvisioner) error
func (*Machine) CreateImage ¶
func (m *Machine) CreateImage(p OneProvisioner, img images.ImageType) error
func (*Machine) CreateInstance ¶
func (m *Machine) CreateInstance(p OneProvisioner, box *provision.Box) error
func (*Machine) DetachNetwork ¶
func (m *Machine) DetachNetwork(box *provision.Box, p OneProvisioner) error
func (*Machine) GetMarketplaceVNC ¶
func (m *Machine) GetMarketplaceVNC(p OneProvisioner) error
func (*Machine) ImagePersistent ¶
func (m *Machine) ImagePersistent(p OneProvisioner) error
func (*Machine) ImageTypeChange ¶
func (m *Machine) ImageTypeChange(p OneProvisioner) error
func (*Machine) IsImageReady ¶
func (m *Machine) IsImageReady(p OneProvisioner) error
func (*Machine) IsSnapCreated ¶
func (*Machine) IsSnapDeleted ¶
func (*Machine) IsSnapReady ¶
func (m *Machine) IsSnapReady(p OneProvisioner) error
func (*Machine) LifecycleOps ¶
func (m *Machine) LifecycleOps(p OneProvisioner, action string) error
func (*Machine) Logs ¶
func (m *Machine) Logs(p OneProvisioner, w io.Writer) error
if there is a file or something to be created, do it here.
func (*Machine) MakeActiveSnapshot ¶
func (*Machine) MarketplaceInstanceState ¶
func (m *Machine) MarketplaceInstanceState(p OneProvisioner) error
func (*Machine) Remove ¶
func (m *Machine) Remove(p OneProvisioner) error
func (*Machine) RemoveBackupImage ¶
func (m *Machine) RemoveBackupImage(p OneProvisioner) error
func (*Machine) RemoveDatablock ¶
func (m *Machine) RemoveDatablock(p OneProvisioner) error
func (*Machine) RemoveDisk ¶
func (m *Machine) RemoveDisk(p OneProvisioner) error
func (*Machine) RemoveImage ¶
func (m *Machine) RemoveImage(p OneProvisioner) error
func (*Machine) RemoveInstance ¶
func (m *Machine) RemoveInstance(p OneProvisioner) error
func (*Machine) RemoveSnapshot ¶
func (m *Machine) RemoveSnapshot(p OneProvisioner) error
func (*Machine) RestoreSnapshot ¶
func (m *Machine) RestoreSnapshot(p OneProvisioner) error
func (*Machine) SetRoutable ¶
func (*Machine) SetStatus ¶
it possible to have a Notifier interface that does this, duck typed b y Assembly, Components.
func (*Machine) SetStatusErr ¶
func (*Machine) StopMarkplaceInstance ¶
func (m *Machine) StopMarkplaceInstance(p OneProvisioner) error
func (*Machine) UpdateBackupPath ¶
func (m *Machine) UpdateBackupPath(p OneProvisioner) error
func (*Machine) UpdateBackupStatus ¶
func (*Machine) UpdateBackupVMIps ¶
func (*Machine) UpdateDisk ¶
func (m *Machine) UpdateDisk(p OneProvisioner) error
func (*Machine) UpdateImage ¶
func (*Machine) UpdateImageStatus ¶
func (*Machine) UpdateMarketImageId ¶
func (*Machine) UpdateMarketplaceError ¶
func (*Machine) UpdateMarketplaceStatus ¶
func (*Machine) UpdateMarketplaceVNC ¶
func (*Machine) UpdatePolicyStatus ¶
func (*Machine) UpdateSnap ¶
func (*Machine) UpdateSnapQuotas ¶
func (*Machine) UpdateVMIps ¶
func (m *Machine) UpdateVMIps(p OneProvisioner) error
func (*Machine) UpdateVMQuotas ¶
func (*Machine) UpdateVncHostPost ¶
func (*Machine) VmHostIpPort ¶
func (m *Machine) VmHostIpPort(args *CreateArgs) error
func (*Machine) WaitUntillVMState ¶
func (m *Machine) WaitUntillVMState(p OneProvisioner, vm virtualmachine.VmState, lcm virtualmachine.LcmState) error
type OneProvisioner ¶
Click to show internal directories.
Click to hide internal directories.