vsphere

package
v1.59.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 37 Imported by: 1

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
	Networks         []string
	Username         string
	Password         string
	VSphereURL       string
	Datacenter       string
	Cluster          string
	Folder           string
	ResourcePool     string
	Datastore        string
	DatastoreCluster string
	AllowInsecure    bool
	VMAntiAffinity   bool
	CPUs             int32
	MemoryMB         int64
	DiskSizeGB       *int64
	Tags             []tags.Tag
}

Config contains vSphere provider configuration.

type RESTSession added in v1.46.0

type RESTSession struct {
	Client *rest.Client
}

func NewRESTSession added in v1.46.0

func NewRESTSession(ctx context.Context, config *Config) (*RESTSession, error)

func (*RESTSession) Logout added in v1.46.0

func (s *RESTSession) Logout(ctx context.Context)

Logout closes the idling vCenter connections.

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) ProviderID added in v1.43.4

func (vsphereServer Server) ProviderID() 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(ctx context.Context)

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