Documentation ¶
Overview ¶
Package session contains tools to create and retrieve a VCenter session.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsUnidentifiedVCenterVersion ¶ added in v1.3.2
IsUnidentifiedVCenterVersion identies an error as an unidentifiedVCenterVersion error.
Types ¶
type Feature ¶ added in v0.8.0
type Feature struct{}
Feature is a set of Features of the session.
func DefaultFeature ¶ added in v0.8.0
func DefaultFeature() Feature
DefaultFeature sets the default values for features.
type Params ¶ added in v0.8.0
type Params struct {
// contains filtered or unexported fields
}
Params are the parameters of a VCenter session.
func NewParams ¶ added in v0.8.0
func NewParams() *Params
NewParams returns an empty set of parameters with default features.
func (*Params) WithDatacenter ¶ added in v0.8.0
WithDatacenter adds a datacenter to parameters.
func (*Params) WithFeatures ¶ added in v0.8.0
WithFeatures adds features to parameters.
func (*Params) WithServer ¶ added in v0.8.0
WithServer adds a server to parameters.
func (*Params) WithThumbprint ¶ added in v0.8.0
WithThumbprint adds a thumbprint to parameters.
func (*Params) WithUserInfo ¶ added in v0.8.0
WithUserInfo adds userinfo to parameters.
type Session ¶
type Session struct { *govmomi.Client Finder *find.Finder TagManager *tags.Manager // contains filtered or unexported fields }
Session is a vSphere session with a configured Finder.
func GetOrCreate ¶
GetOrCreate gets a cached session or creates a new one if one does not already exist.
func (*Session) FindByBIOSUUID ¶
FindByBIOSUUID finds an object by its BIOS UUID.
To avoid comments about this function's name, please see the Golang WIKI https://github.com/golang/go/wiki/CodeReviewComments#initialisms. This function is named in accordance with the example "XMLHTTP".
func (*Session) FindByInstanceUUID ¶
FindByInstanceUUID finds an object by its instance UUID.
func (*Session) GetVersion ¶ added in v1.3.2
func (s *Session) GetVersion() (infrav1.VCenterVersion, error)
GetVersion returns the VCenterVersion.