Documentation ¶
Index ¶
- func GetVMStatus(vcenterServer, vmId, cookie string) (string, error)
- func GetVcenterSessionID(vcenterServer, vcenterUser, vcenterPass string) (string, error)
- func StartVM(vcenterServer, vmId, cookie string) error
- func StopVM(vcenterServer, vmId, cookie string) error
- func VMStatusCheck(vcenterServer, vmIds, cookie string) error
- func WaitForVMStart(timeout, delay int, vcenterServer, vmId, cookie string) error
- func WaitForVMStop(timeout, delay int, vcenterServer, vmId, cookie string) error
- type ErrorResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetVMStatus ¶
GetVMStatus returns the current status of a given VM
func GetVcenterSessionID ¶
GetVcenterSessionID returns the vcenter sessionid
func VMStatusCheck ¶
VMStatusCheck validates the steady state for the given vm ids
func WaitForVMStart ¶
WaitForVMStart waits for the given VM to attain the POWERED_ON state
func WaitForVMStop ¶
WaitForVMStop waits for the given VM to attain the POWERED_OFF state
Types ¶
type ErrorResponse ¶
type ErrorResponse struct { MsgValue struct { MsgMessages []struct { MsgDefaultMessage string `json:"default_message"` } `json:"messages"` } `json:"value"` }
ErrorResponse contains error response code
Click to show internal directories.
Click to hide internal directories.