vsphere

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2019 License: Apache-2.0 Imports: 32 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
	Datastore      string
	AllowInsecure  bool
	CPUs           int32
	MemoryMB       int64
	DiskSizeGB     *int64
}

type Server added in v0.7.20

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

func (Server) Addresses added in v0.7.20

func (vsphereServer Server) Addresses() []string

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