esxi

package
v0.25.3 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const VmStatePoweredOff string = "Powered off"
View Source
const VmStatePoweredOn string = "Powered on"

Variables

This section is empty.

Functions

func DeleteVm added in v0.15.2

func DeleteVm(host string, vmId string) error

func DeleteVmNamed added in v0.15.2

func DeleteVmNamed(host string, vmName string) error

func GetIpAddressOfVmNamed

func GetIpAddressOfVmNamed(host string, vmName string) (string, error)

func ListVms added in v0.15.2

func ListVms(host string) (*[]string, error)

func PowerOffVm

func PowerOffVm(host string, vmId string) error

func PowerOffVmNamed

func PowerOffVmNamed(host string, vmName string) error

func PowerOnVm

func PowerOnVm(host string, vmId string) error

func PowerOnVmNamed

func PowerOnVmNamed(host string, vmName string) error

func PowerStateOfVm added in v0.15.2

func PowerStateOfVm(host string, vmId string) (string, error)

func PowerStateOfVmNamed added in v0.15.2

func PowerStateOfVmNamed(host string, vmName string) (string, error)

func VimCmdParseOutput added in v0.19.0

func VimCmdParseOutput(input string) string

Super sketchy function that attempts to convert the vim-cmd structured output into a JSON-looking string. From there, it can be fed into json.Unmarshal.

Types

This section is empty.

Jump to

Keyboard shortcuts

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