vmware

package
v0.0.0-...-3568c51 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVMStatus

func GetVMStatus(vcenterServer, vmId, cookie string) (string, error)

GetVMStatus returns the current status of a given VM

func GetVcenterSessionID

func GetVcenterSessionID(vcenterServer, vcenterUser, vcenterPass string) (string, error)

GetVcenterSessionID returns the vcenter sessionid

func StartVM

func StartVM(vcenterServer, vmId, cookie string) error

StartVM starts a given powered-off VM

func StopVM

func StopVM(vcenterServer, vmId, cookie string) error

StopVM stops a given powered-on VM

func VMStatusCheck

func VMStatusCheck(vcenterServer, vmIds, cookie string) error

VMStatusCheck validates the steady state for the given vm ids

func WaitForVMStart

func WaitForVMStart(timeout, delay int, vcenterServer, vmId, cookie string) error

WaitForVMStart waits for the given VM to attain the POWERED_ON state

func WaitForVMStop

func WaitForVMStop(timeout, delay int, vcenterServer, vmId, cookie string) error

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

Jump to

Keyboard shortcuts

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