Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNetworkSpecs ¶ added in v1.5.2
func GetNetworkSpecs(ctx context.Context, session *Session, devices object.VirtualDeviceList, network string) ([]types.BaseVirtualDeviceConfigSpec, error)
func New ¶
func New(configVarResolver *providerconfig.ConfigVarResolver) cloudprovidertypes.Provider
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
VMAntiAffinity bool
CPUs int32
MemoryMB int64
DiskSizeGB *int64
Tags []tags.Tag
}
Config contains vSphere provider configuration.
type RESTSession ¶ added in v1.46.0
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) ProviderID ¶ added in v1.43.4
type Session ¶ added in v1.5.2
func NewSession ¶ added in v1.5.2
NewSession creates a vCenter client with initialized finder.
Click to show internal directories.
Click to hide internal directories.