hypervisors

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EsxiHypervisor

type EsxiHypervisor struct {
	// contains filtered or unexported fields
}

func (*EsxiHypervisor) CopyImage added in v0.21.0

func (hyp *EsxiHypervisor) CopyImage(packerSpec packer.JsonSpec, vm hope.VMs, vmImageSpec hope.VMImageSpec) error

func (*EsxiHypervisor) CreateImage added in v0.21.0

func (hyp *EsxiHypervisor) CreateImage(vms hope.VMs, vmImageSpec hope.VMImageSpec, args []string, force bool) (*packer.JsonSpec, error)

func (*EsxiHypervisor) CreateNode added in v0.21.0

func (hyp *EsxiHypervisor) CreateNode(node hope.Node, vms hope.VMs, vmImageSpec hope.VMImageSpec) error

func (*EsxiHypervisor) DeleteVM added in v0.21.0

func (hyp *EsxiHypervisor) DeleteVM(name string) error

func (EsxiHypervisor) ListNodes

func (hyp EsxiHypervisor) ListNodes() ([]string, error)

func (*EsxiHypervisor) ResolveNode

func (hyp *EsxiHypervisor) ResolveNode(node hope.Node) (hope.Node, error)

func (*EsxiHypervisor) StartVM added in v0.21.0

func (hyp *EsxiHypervisor) StartVM(name string) error

func (*EsxiHypervisor) StopVM added in v0.21.0

func (hyp *EsxiHypervisor) StopVM(name string) error

func (*EsxiHypervisor) UnderlyingNode

func (hyp *EsxiHypervisor) UnderlyingNode() (hope.Node, error)

func (*EsxiHypervisor) VMIPAddress added in v0.21.0

func (hyp *EsxiHypervisor) VMIPAddress(name string) (string, error)

type Hypervisor

type Hypervisor interface {
	ListNodes() ([]string, error)
	ResolveNode(node hope.Node) (hope.Node, error)
	UnderlyingNode() (hope.Node, error)

	CopyImage(packer.JsonSpec, hope.VMs, hope.VMImageSpec) error
	CreateImage(hope.VMs, hope.VMImageSpec, []string, bool) (*packer.JsonSpec, error)
	CreateNode(hope.Node, hope.VMs, hope.VMImageSpec) error

	StartVM(string) error
	StopVM(string) error

	// Should these interfaces also take a hope.Node, just for consistency's
	//   sake?
	DeleteVM(string) error
	VMIPAddress(string) (string, error)
}

Hypervisor acts as a catch-all for "an entity that exposes access to manage a virtual machine".

ListNodes returns a list of identifiers for the nodes present on the hypervisor.

ResolveNode will use the contents of the provided &hope.Node, and will return a new &hope.Node that can be used as though it were a physical machine on the network.

UnderlyingNode returns the base object used to create the hypervisor.

func ToHypervisor

func ToHypervisor(node hope.Node) (Hypervisor, error)

Jump to

Keyboard shortcuts

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