Documentation ¶
Index ¶
- func New(configVarResolver *providerconfig.ConfigVarResolver) cloudprovidertypes.Provider
- type Auth
- type Client
- func (c *Client) GetAuthenticatedClient() (*govcd.VCDClient, error)
- func (c *Client) GetOrganization() (*govcd.Org, error)
- func (c *Client) GetOrganizationVDCAndVapp(vappName string) (*govcd.Org, *govcd.Vdc, *govcd.VApp, error)
- func (c *Client) GetVDCForOrg(org govcd.Org) (*govcd.Vdc, error)
- func (c *Client) GetVMByName(vappName, vmName string) (*govcd.VM, error)
- type Config
- type NetworkType
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(configVarResolver *providerconfig.ConfigVarResolver) cloudprovidertypes.Provider
New returns a VMware Cloud Director provider.
Types ¶
type Client ¶
func (*Client) GetAuthenticatedClient ¶
func (*Client) GetOrganizationVDCAndVapp ¶
type Config ¶
type Config struct { Auth `json:",inline"` // VM configuration. VApp string Template string Catalog string PlacementPolicy *string SizingPolicy *string // Network configuration. Network string IPAllocationMode vcdtypes.IPAllocationMode // Compute configuration. CPUs int64 CPUCores int64 MemoryMB int64 // Storage configuration. DiskSizeGB *int64 DiskBusType *string DiskIOPS *int64 StorageProfile *string // Metadata configuration. Metadata *map[string]string }
type NetworkType ¶
type NetworkType string
const ( VAppNetworkType NetworkType = "vapp" OrgNetworkType NetworkType = "org" // Network with a NIC that is not attached to any network. NoneNetworkType NetworkType = "none" )
func GetVappNetworkType ¶
func GetVappNetworkType(networkName string, vapp govcd.VApp) (NetworkType, error)
GetVappNetworkType checks if the network exists and returns the network type.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server holds VMware Cloud Director VM information.
func (Server) ProviderID ¶
Click to show internal directories.
Click to hide internal directories.