Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Clouds CloudService VirtualMachines VirtualMachineService VirtualDiskDrives VirtualDiskDriveService VirtualHardDisks VirtualHardDiskService VMTemplates VMTemplateService Jobs JobService // contains filtered or unexported fields }
Client used to make calls the the spf vmm api
type JobService ¶
type JobService struct { getting.JobGetter updating.JobUpdater }
JobService service
func (*JobService) WaitForJobToComplete ¶
func (s *JobService) WaitForJobToComplete(id string, timeout int) error
WaitForJobToComplete blocks until the job is completed or the timeout in seconds expires
type NTLMCredentials ¶
NTLMCredentials object
type VMTemplateService ¶
type VMTemplateService struct {
getting.VMTemplateGetter
}
VMTemplateService service
func (*VMTemplateService) GetByName ¶
func (s *VMTemplateService) GetByName(name string) (*getting.VMTemplate, error)
GetByName returns a vm template object given its name, returns an error if the name matches more that one or not found
type VirtualDiskDriveService ¶
type VirtualDiskDriveService struct { creating.VirtualDiskDriveCreator deleting.GenericDeleter getting.VirtualDiskDriveGetter }
VirtualDiskDriveService service
type VirtualHardDiskService ¶
type VirtualHardDiskService struct {
getting.VirtualHardDiskGetter
}
VirtualHardDiskService service
func (*VirtualHardDiskService) GetByName ¶
func (s *VirtualHardDiskService) GetByName(name string) (*getting.VirtualHardDisk, error)
GetByName returns a virtual hard disk object given its name, returns an error if the name matches more that one or not found
type VirtualMachineService ¶
type VirtualMachineService struct { creating.VirtualMachineCreator deleting.GenericDeleter getting.VirtualMachineGetter updating.VirtualMachineUpdater }
VirtualMachineService service
func (*VirtualMachineService) GetByName ¶
func (s *VirtualMachineService) GetByName(name string) (*getting.VirtualMachine, error)
GetByName returns a virtual machine object given its name, returns an error if the name matches more that one VM or not found
func (*VirtualMachineService) Repair ¶
func (s *VirtualMachineService) Repair(id string) error
Repair a virtual machine by its ID
func (*VirtualMachineService) Start ¶
func (s *VirtualMachineService) Start(id string) error
Start a virtual machine by its ID
func (*VirtualMachineService) Stop ¶
func (s *VirtualMachineService) Stop(id string) error
Stop a virtual machine by its ID