Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNetworkSpecs ¶
func GetNetworkSpecs(ctx context.Context, session *Session, devices object.VirtualDeviceList, network string, networks []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 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 ¶
func NewRESTSession ¶
func NewRESTSession(ctx context.Context, config *Config) (*RESTSession, error)
func (*RESTSession) Logout ¶
func (s *RESTSession) Logout(ctx context.Context)
Logout closes the idling vCenter connections.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server holds vSphere server information.
func (Server) ProviderID ¶
type Session ¶
func NewSession ¶
NewSession creates a vCenter client with initialized finder.
Click to show internal directories.
Click to hide internal directories.