vm

package
v0.0.0-...-7aae7b9 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	STATUS_MAP = map[string]host.STATUS{
		"poweredOff": host.STATUS_STOPPED,
		"poweredOn":  host.STATUS_RUNNING,
		"suspended":  host.STATUS_SUSPENDED,
	}
)

Functions

func ParseExtraConfigValue

func ParseExtraConfigValue(v string) map[string]string

Types

type QueryCallback

type QueryCallback func(*host.Host)

type VMOperator

type VMOperator struct {
	Timeout time.Duration
	// contains filtered or unexported fields
}

func NewVMOperator

func NewVMOperator(client *vim25.Client) *VMOperator

func (*VMOperator) GetMasterIp

func (o *VMOperator) GetMasterIp(nics []types.GuestNicInfo) string

func (*VMOperator) QueryHost

func (o *VMOperator) QueryHost(cb QueryCallback) error

Jump to

Keyboard shortcuts

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