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 openstack provider
Types ¶
type BlockStorageOpts ¶ added in v0.8.0
type CloudConfig ¶ added in v0.8.0
type CloudConfig struct { Global GlobalOpts LoadBalancer LoadBalancerOpts BlockStorage BlockStorageOpts Version string }
CloudConfig is used to read and store information from the cloud configuration file
type Config ¶ added in v0.0.2
type Config struct { IdentityEndpoint string Username string Password string DomainName string TenantName string TokenID string Region string // Machine details Image string Flavor string SecurityGroups []string Network string Subnet string FloatingIPPool string AvailabilityZone string Tags map[string]string }
type GlobalOpts ¶ added in v0.8.0
type LoadBalancerOpts ¶ added in v0.8.0
type LoadBalancerOpts struct {
ManageSecurityGroups bool `gcfg:"manage-security-groups"`
}
type RawConfig ¶ added in v0.2.0
type RawConfig struct { // Auth details IdentityEndpoint providerconfig.ConfigVarString `json:"identityEndpoint"` Username providerconfig.ConfigVarString `json:"username"` Password providerconfig.ConfigVarString `json:"password"` DomainName providerconfig.ConfigVarString `json:"domainName"` TenantName providerconfig.ConfigVarString `json:"tenantName"` TokenID providerconfig.ConfigVarString `json:"tokenId"` Region providerconfig.ConfigVarString `json:"region"` // Machine details Image providerconfig.ConfigVarString `json:"image"` Flavor providerconfig.ConfigVarString `json:"flavor"` SecurityGroups []providerconfig.ConfigVarString `json:"securityGroups"` Network providerconfig.ConfigVarString `json:"network"` Subnet providerconfig.ConfigVarString `json:"subnet"` FloatingIPPool providerconfig.ConfigVarString `json:"floatingIpPool"` AvailabilityZone providerconfig.ConfigVarString `json:"availabilityZone"` // This tag is related to server metadata, not compute server's tag Tags map[string]string `json:"tags"` }
Click to show internal directories.
Click to hide internal directories.