vmware

package
v0.0.0-...-1d9db5a Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// vCenter username.
	User string
	// vCenter password in clear text.
	Password string
	// vCenter Hostname or IP.
	VCenterHost string
	// vCenter port.
	VCenterPort uint
	// True if vCenter uses self-signed cert.
	InsecureFlag bool
	// Soap round tripper count (retries = RoundTripper - 1)
	RoundTripperCount uint
	// VMName is the VM name of virtual machine
	VMName string
	// Environment tag to filter by
	Environment string
	// Role tag to filter by
	Role string
}

Config is the configuration required to talk to the vSphere API to fetch a list of nodes

type Members

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

Members of a VMware group.

func NewVMware

func NewVMware(cfg *Config) (*Members, error)

NewVMware returns the Members this local instance belongs to.

func (*Members) GetInstances

func (m *Members) GetInstances() ([]cloud.Instance, error)

GetInstances will return the vmware etcd instances

func (*Members) GetLocalIP

func (m *Members) GetLocalIP() (string, error)

GetLocalIP returns the same value as the GetLocalInstance() endpoint.

func (*Members) GetLocalInstance

func (m *Members) GetLocalInstance() (cloud.Instance, error)

GetLocalInstance will get the vmware instance etcd bootstrap is running on

Jump to

Keyboard shortcuts

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