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 CPUs int32 MemoryMB int64 DiskSizeGB *int64 }
Config contains vSphere provider configuration.
type Server ¶ added in v0.7.20
type Server struct {
// contains filtered or unexported fields
}
Server holds vSphere server information.
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.