machine

package
v0.0.0-...-b52e348 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2017 License: Apache-2.0 Imports: 24 Imported by: 4

Documentation

Index

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

func (m *Machine) ChangeState(status utils.Status) error

just publish a message stateup to the machine.

func (*Machine) CheckCredits

func (m *Machine) CheckCredits(b *provision.Box, w io.Writer) error

func (*Machine) CheckQuotaState

func (m *Machine) CheckQuotaState(b *provision.Box, w io.Writer) error

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) Exec

func (m *Machine) Exec(p OneProvisioner, stdout, stderr io.Writer, cmd string, args ...string) error

func (*Machine) GetMarketplaceVNC

func (m *Machine) GetMarketplaceVNC(p OneProvisioner) error

func (*Machine) IPs

func (m *Machine) IPs(nics []virtualmachine.Nic) map[string][]string

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 (m *Machine) IsSnapCreated() bool

func (*Machine) IsSnapDeleted

func (m *Machine) IsSnapDeleted() bool

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 (m *Machine) MakeActiveSnapshot() error

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) RemoveNetworkIps

func (m *Machine) RemoveNetworkIps(box *provision.Box) error

func (*Machine) RemoveSnapshot

func (m *Machine) RemoveSnapshot(p OneProvisioner) error

func (*Machine) RestoreSnapshot

func (m *Machine) RestoreSnapshot(p OneProvisioner) error

func (*Machine) SetMileStone

func (m *Machine) SetMileStone(state utils.State) error

func (*Machine) SetRoutable

func (m *Machine) SetRoutable(ip string)

func (*Machine) SetStatus

func (m *Machine) SetStatus(status utils.Status) error

it possible to have a Notifier interface that does this, duck typed b y Assembly, Components.

func (*Machine) SetStatusErr

func (m *Machine) SetStatusErr(status utils.Status, causeof error) error

func (*Machine) StopMarkplaceInstance

func (m *Machine) StopMarkplaceInstance(p OneProvisioner) error

func (*Machine) UpdateBackupPath

func (m *Machine) UpdateBackupPath(p OneProvisioner) error

func (*Machine) UpdateBackupStatus

func (m *Machine) UpdateBackupStatus(status utils.Status) error

func (*Machine) UpdateBackupVMIps

func (m *Machine) UpdateBackupVMIps() error

func (*Machine) UpdateDisk

func (m *Machine) UpdateDisk(p OneProvisioner) error

func (*Machine) UpdateImage

func (m *Machine) UpdateImage() error

func (*Machine) UpdateImageStatus

func (m *Machine) UpdateImageStatus() error

func (*Machine) UpdateMarketImageId

func (m *Machine) UpdateMarketImageId() error

func (*Machine) UpdateMarketplaceError

func (m *Machine) UpdateMarketplaceError(causeof error) error

func (*Machine) UpdateMarketplaceStatus

func (m *Machine) UpdateMarketplaceStatus() error

func (*Machine) UpdateMarketplaceVNC

func (m *Machine) UpdateMarketplaceVNC() error

func (*Machine) UpdatePolicyStatus

func (m *Machine) UpdatePolicyStatus(index int) error

func (*Machine) UpdateSnap

func (m *Machine) UpdateSnap() error

func (*Machine) UpdateSnapQuotas

func (m *Machine) UpdateSnapQuotas(id string) error

func (*Machine) UpdateSnapStatus

func (m *Machine) UpdateSnapStatus(status utils.Status) error

func (*Machine) UpdateVMIps

func (m *Machine) UpdateVMIps(p OneProvisioner) error

func (*Machine) UpdateVMQuotas

func (m *Machine) UpdateVMQuotas(id string) error

func (*Machine) UpdateVncHostPost

func (m *Machine) UpdateVncHostPost() error

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

type OneProvisioner interface {
	Cluster() *cluster.Cluster
}

Jump to

Keyboard shortcuts

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