vm

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 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) GetVMNetState added in v1.0.1

func (v *VirtualMachineService) GetVMNetState(ctx context.Context, id string) ([]types.Nic, error)

func (*VirtualMachineService) GetVMPowerStateByID added in v1.0.0

func (v *VirtualMachineService) GetVMPowerStateByID(ctx context.Context, id string) (*types.VMPowerState, error)

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) RestartVM added in v1.0.2

func (v *VirtualMachineService) RestartVM(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