vspheretasks

package
Version: v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2018 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttachISO

type AttachISO struct {
	Name            *string
	VM              *VirtualMachine
	IG              *kops.InstanceGroup
	BootstrapScript *model.BootstrapScript
	Cluster         *kops.Cluster
}

AttachISO represents the cloud-init ISO file attached to a VM on vSphere cloud.

func (*AttachISO) CheckChanges

func (_ *AttachISO) CheckChanges(a, e, changes *AttachISO) error

CheckChanges is a no-op for this task.

func (*AttachISO) Find

func (e *AttachISO) Find(c *fi.Context) (*AttachISO, error)

Find is a no-op for this task.

func (*AttachISO) GetDependencies

func (o *AttachISO) GetDependencies(tasks map[string]fi.Task) []fi.Task

GetDependencies returns map of tasks on which this task depends.

func (*AttachISO) GetName

func (o *AttachISO) GetName() *string

GetName returns the Name of the object, implementing fi.HasName

func (*AttachISO) RenderVSphere

func (_ *AttachISO) RenderVSphere(t *vsphere.VSphereAPITarget, a, e, changes *AttachISO) error

RenderVSphere executes the actual task logic, for vSphere cloud.

func (*AttachISO) Run

func (e *AttachISO) Run(c *fi.Context) error

Run invokes DefaultDeltaRunMethod for this task.

func (*AttachISO) SetName

func (o *AttachISO) SetName(name string)

SetName sets the Name of the object, implementing fi.SetName

type VMPowerOn

type VMPowerOn struct {
	Name      *string
	AttachISO *AttachISO
}

VMPowerOn powers on a VMware VM

func (*VMPowerOn) CheckChanges

func (_ *VMPowerOn) CheckChanges(a, e, changes *VMPowerOn) error

CheckChanges is a no-op for vSphere cloud, for now.

func (*VMPowerOn) Find

func (e *VMPowerOn) Find(c *fi.Context) (*VMPowerOn, error)

Find is a no-op for vSphere cloud, for now.

func (*VMPowerOn) GetDependencies

func (o *VMPowerOn) GetDependencies(tasks map[string]fi.Task) []fi.Task

GetDependencies returns map of tasks on which this task depends.

func (*VMPowerOn) GetName

func (o *VMPowerOn) GetName() *string

GetName returns the Name of the object, implementing fi.HasName

func (*VMPowerOn) RenderVSphere

func (_ *VMPowerOn) RenderVSphere(t *vsphere.VSphereAPITarget, a, e, changes *VMPowerOn) error

RenderVSphere executes the actual power on operation for VM on vSphere cloud.

func (*VMPowerOn) Run

func (e *VMPowerOn) Run(c *fi.Context) error

Run executes DefaultDeltaRunMethod for this task.

func (*VMPowerOn) SetName

func (o *VMPowerOn) SetName(name string)

SetName sets the Name of the object, implementing fi.SetName

type VirtualMachine

type VirtualMachine struct {
	Name           *string
	VMTemplateName *string
}

VirtualMachine represents a VMware VM

func (*VirtualMachine) CheckChanges

func (_ *VirtualMachine) CheckChanges(a, e, changes *VirtualMachine) error

CheckChanges is a no-op for vSphere, for now.

func (*VirtualMachine) CompareWithID

func (e *VirtualMachine) CompareWithID() *string

CompareWithID is returning name of this VirtualMachine.

func (*VirtualMachine) Find

func (e *VirtualMachine) Find(c *fi.Context) (*VirtualMachine, error)

Find is a no-op for vSphere.

func (*VirtualMachine) GetName

func (o *VirtualMachine) GetName() *string

GetName returns the Name of the object, implementing fi.HasName

func (*VirtualMachine) RenderVSphere

func (_ *VirtualMachine) RenderVSphere(t *vsphere.VSphereAPITarget, a, e, changes *VirtualMachine) error

RenderVSphere executes the actual VM clone creation for vSphere cloud.

func (*VirtualMachine) Run

func (e *VirtualMachine) Run(c *fi.Context) error

Run executes DefaultDeltaRunMethod for this task.

func (*VirtualMachine) SetName

func (o *VirtualMachine) SetName(name string)

SetName sets the Name of the object, implementing fi.SetName

func (*VirtualMachine) String

func (o *VirtualMachine) String() string

String is the stringer function for the task, producing readable output using fi.TaskAsString

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL