Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloudConfigToString ¶ added in v0.8.0
func CloudConfigToString(c *CloudConfig) (string, error)
func New ¶
func New(configVarResolver *providerconfig.ConfigVarResolver) cloud.Provider
New returns a VSphere provider
Types ¶
type CloudConfig ¶ added in v0.8.0
type CloudConfig struct { Global GlobalOpts Disk DiskOpts Workspace WorkspaceOpts VirtualCenter map[string]*VirtualCenterConfig }
CloudConfig is used to read and store information from the cloud configuration file
type DiskOpts ¶ added in v0.8.0
type DiskOpts struct {
SCSIControllerType string `dcfg:"scsicontrollertype"`
}
type GlobalOpts ¶ added in v0.8.0
type GlobalOpts struct { User string `gcfg:"user"` Password string `gcfg:"password"` InsecureFlag bool `gcfg:"insecure-flag"` VCenterPort string `gcfg:"port"` WorkingDir string `gcfg:"working-dir"` Datacenter string `gcfg:"datacenter"` DefaultDatastore string `gcfg:"datastore"` VCenterIP string `gcfg:"server"` }
type RawConfig ¶
type RawConfig struct { TemplateVMName providerconfig.ConfigVarString `json:"templateVMName"` TemplateNetName providerconfig.ConfigVarString `json:"templateNetName"` VMNetName providerconfig.ConfigVarString `json:"vmNetName"` Username providerconfig.ConfigVarString `json:"username"` Password providerconfig.ConfigVarString `json:"password"` VSphereURL providerconfig.ConfigVarString `json:"vsphereURL"` Datacenter providerconfig.ConfigVarString `json:"datacenter"` Cluster providerconfig.ConfigVarString `json:"cluster"` Folder providerconfig.ConfigVarString `json:"folder"` Datastore providerconfig.ConfigVarString `json:"datastore"` CPUs int32 `json:"cpus"` MemoryMB int64 `json:"memoryMB"` AllowInsecure providerconfig.ConfigVarBool `json:"allowInsecure"` }
type VirtualCenterConfig ¶ added in v0.8.0
Click to show internal directories.
Click to hide internal directories.