Documentation
¶
Index ¶
- type VirtualMachineService
- func (v *VirtualMachineService) CreateVMByTemplate(ctx context.Context, vmSpec types.VirtualMachine, quickClone bool) (*types.Task, error)
- func (v *VirtualMachineService) DeleteVM(ctx context.Context, id string, deleteFile bool, removeData bool) (*types.Task, error)
- func (v *VirtualMachineService) DeleteVMWithCheckParams(ctx context.Context, id string, deleteFile bool, removeData bool, ...) (*types.Task, error)
- func (v *VirtualMachineService) GetOvaConfig(ctx context.Context, ovaFilePath string, hostUUID string, imageHostUUID string) (*types.VirtualMachine, error)
- func (v *VirtualMachineService) GetVM(ctx context.Context, id string) (*types.VirtualMachine, error)
- func (v *VirtualMachineService) GetVMByIP(ctx context.Context, ip string) (*types.VirtualMachine, error)
- func (v *VirtualMachineService) GetVMByName(ctx context.Context, name string) (*types.VirtualMachine, error)
- func (v *VirtualMachineService) GetVMByPath(ctx context.Context, path string) (*types.VirtualMachine, error)
- func (v *VirtualMachineService) GetVMByUUID(ctx context.Context, vmUUID string) (*types.VirtualMachine, error)
- func (v *VirtualMachineService) GetVMList(ctx context.Context) ([]types.VirtualMachine, error)
- func (v *VirtualMachineService) GetVMNetState(ctx context.Context, id string) ([]types.Nic, error)
- func (v *VirtualMachineService) GetVMPowerStateByID(ctx context.Context, id string) (*types.VMPowerState, error)
- func (v *VirtualMachineService) GetVMTemplate(ctx context.Context, id string) (*types.VirtualMachine, error)
- func (v *VirtualMachineService) GetVMTemplateByName(ctx context.Context, name string) (*types.VirtualMachine, error)
- func (v *VirtualMachineService) GetVMTemplateByUUID(ctx context.Context, uuid string) (*types.VirtualMachine, error)
- func (v *VirtualMachineService) GetVMTemplateList(ctx context.Context) ([]types.VirtualMachine, error)
- func (v *VirtualMachineService) ImportVM(ctx context.Context, vmSpec types.VirtualMachine, ovaFilePath string, ...) (*types.Task, error)
- func (v *VirtualMachineService) PowerOffVM(ctx context.Context, id string) (*types.Task, error)
- func (v *VirtualMachineService) PowerOnVM(ctx context.Context, id string) (*types.Task, error)
- func (v *VirtualMachineService) RestartVM(ctx context.Context, id string) (*types.Task, error)
- func (v *VirtualMachineService) SetVM(ctx context.Context, vmInfo types.VirtualMachine) (*types.Task, error)
- func (v *VirtualMachineService) ShutdownVM(ctx context.Context, id string) (*types.Task, error)
- func (v *VirtualMachineService) VMPageList(req *types.VMPageReq) (*types.VMPageResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VirtualMachineService ¶
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) DeleteVMWithCheckParams ¶ added in v1.0.9
func (*VirtualMachineService) GetOvaConfig ¶ added in v1.0.9
func (v *VirtualMachineService) GetOvaConfig(ctx context.Context, ovaFilePath string, hostUUID string, imageHostUUID string) (*types.VirtualMachine, error)
func (*VirtualMachineService) GetVM ¶
func (v *VirtualMachineService) GetVM(ctx context.Context, id string) (*types.VirtualMachine, error)
func (*VirtualMachineService) GetVMByIP ¶
func (v *VirtualMachineService) GetVMByIP(ctx context.Context, ip string) (*types.VirtualMachine, error)
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 (v *VirtualMachineService) GetVMList(ctx context.Context) ([]types.VirtualMachine, error)
func (*VirtualMachineService) GetVMNetState ¶ added in v1.0.1
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) ImportVM ¶ added in v1.0.9
func (v *VirtualMachineService) ImportVM(ctx context.Context, vmSpec types.VirtualMachine, ovaFilePath string, hostUUID string) (*types.Task, error)
func (*VirtualMachineService) PowerOffVM ¶
func (*VirtualMachineService) SetVM ¶
func (v *VirtualMachineService) SetVM(ctx context.Context, vmInfo types.VirtualMachine) (*types.Task, error)
func (*VirtualMachineService) ShutdownVM ¶
func (*VirtualMachineService) VMPageList ¶
func (v *VirtualMachineService) VMPageList(req *types.VMPageReq) (*types.VMPageResponse, error)
Click to show internal directories.
Click to hide internal directories.