vsphere

package
v1.39.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New returns a VSphere provider.

Types

type Config

type Config struct {
	TemplateVMName   string
	VMNetName        string
	Username         string
	Password         string
	VSphereURL       string
	Datacenter       string
	Cluster          string
	Folder           string
	ResourcePool     string
	Datastore        string
	DatastoreCluster string
	AllowInsecure    bool
	CPUs             int32
	MemoryMB         int64
	DiskSizeGB       *int64
}

Config contains vSphere provider configuration.

type Server added in v0.7.20

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

Server holds vSphere server information.

func (Server) Addresses added in v0.7.20

func (vsphereServer Server) Addresses() map[string]corev1.NodeAddressType

func (Server) ID added in v0.7.20

func (vsphereServer Server) ID() string

func (Server) Name added in v0.7.20

func (vsphereServer Server) Name() string

func (Server) Status added in v0.7.20

func (vsphereServer Server) Status() instance.Status

type Session added in v1.5.2

type Session struct {
	Client     *govmomi.Client
	Finder     *find.Finder
	Datacenter *object.Datacenter
}

func NewSession added in v1.5.2

func NewSession(ctx context.Context, config *Config) (*Session, error)

NewSession creates a vCenter client with initialized finder.

func (*Session) Logout added in v1.5.2

func (s *Session) Logout()

Logout closes the idling vCenter connections

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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