esx

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	// contains filtered or unexported fields
}

func New

func New(opts *Options) (*API, error)

func (*API) CleanupDevice

func (a *API) CleanupDevice(name string) error

func (*API) CreateBaseDevice

func (a *API) CreateBaseDevice(name, ovaPath string) error

func (*API) CreateDevice

func (a *API) CreateDevice(name string, conf *conf.Conf, ips *IpPair) (*ESXMachine, error)

func (*API) GetConsoleOutput

func (a *API) GetConsoleOutput(name string) (string, error)

func (*API) GetDevices added in v0.20.0

func (a *API) GetDevices(pattern string) ([]string, error)

func (*API) PreflightCheck

func (a *API) PreflightCheck() error

func (*API) TerminateDevice

func (a *API) TerminateDevice(name string) error

type ESXMachine

type ESXMachine struct {
	Name      string
	IPAddress string
}

type IpPair added in v0.20.0

type IpPair struct {
	Public     net.IP
	Private    net.IP
	PublicGw   net.IP
	PrivateGw  net.IP
	SubnetSize int
}

type Options

type Options struct {
	*platform.Options

	// Config file. Defaults to $HOME/.config/esx.json
	ConfigPath string
	// Profile name
	Profile string

	Server                 string
	User                   string
	Password               string
	BaseVMName             string
	OvaPath                string
	FirstStaticIp          string
	FirstStaticIpPrivate   string
	StaticIPs              int
	StaticSubnetSize       int
	StaticGatewayIp        string
	StaticGatewayIpPrivate string
}

Jump to

Keyboard shortcuts

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