vm

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2021 License: GPL-3.0 Imports: 5 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VirtualMachineService

type VirtualMachineService struct {
	common.RestAPI
}

func NewVirtualMachineService

func NewVirtualMachineService(c *client.Client) *VirtualMachineService

NewVirtualMachineService returns the session's virtual machine service.

func (*VirtualMachineService) CreateVMByTemplate

func (v *VirtualMachineService) CreateVMByTemplate(ctx context.Context, vmSpec types.VirtualMachine, quickClone bool) (*types.Task, error)

func (*VirtualMachineService) DeleteVM

func (v *VirtualMachineService) DeleteVM(ctx context.Context, id string, deleteFile bool, removeData bool) (*types.Task, error)

func (*VirtualMachineService) GetVM

func (*VirtualMachineService) GetVMByIP

func (*VirtualMachineService) GetVMByName

func (v *VirtualMachineService) GetVMByName(ctx context.Context, name string) (*types.VirtualMachine, error)

func (*VirtualMachineService) GetVMByPath

func (v *VirtualMachineService) GetVMByPath(ctx context.Context, path string) (*types.VirtualMachine, error)

func (*VirtualMachineService) GetVMByUUID

func (v *VirtualMachineService) GetVMByUUID(ctx context.Context, vmUUID string) (*types.VirtualMachine, error)

func (*VirtualMachineService) GetVMList

func (*VirtualMachineService) GetVMTemplate

func (v *VirtualMachineService) GetVMTemplate(ctx context.Context, id string) (*types.VirtualMachine, error)

func (*VirtualMachineService) GetVMTemplateByName

func (v *VirtualMachineService) GetVMTemplateByName(ctx context.Context, name string) (*types.VirtualMachine, error)

func (*VirtualMachineService) GetVMTemplateByUUID

func (v *VirtualMachineService) GetVMTemplateByUUID(ctx context.Context, uuid string) (*types.VirtualMachine, error)

func (*VirtualMachineService) GetVMTemplateList

func (v *VirtualMachineService) GetVMTemplateList(ctx context.Context) ([]types.VirtualMachine, error)

func (*VirtualMachineService) PowerOffVM

func (v *VirtualMachineService) PowerOffVM(ctx context.Context, id string) (*types.Task, error)

func (*VirtualMachineService) PowerOnVM

func (v *VirtualMachineService) PowerOnVM(ctx context.Context, id string) (*types.Task, error)

func (*VirtualMachineService) SetVM

func (*VirtualMachineService) ShutdownVM

func (v *VirtualMachineService) ShutdownVM(ctx context.Context, id string) (*types.Task, error)

func (*VirtualMachineService) VMPageList

Jump to

Keyboard shortcuts

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