Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockStorageOpts ¶
type CloudConfig ¶
type CloudConfig struct { Global GlobalOpts LoadBalancer LoadBalancerOpts BlockStorage BlockStorageOpts Version string }
CloudConfig is used to read and store information from the cloud configuration file
func (*CloudConfig) ToString ¶
func (cc *CloudConfig) ToString() (string, error)
ToString renders the cloud configuration as string.
type GlobalOpts ¶
type GlobalOpts struct { AuthURL string `gcfg:"auth-url"` Username string Password string ApplicationCredentialID string `gcfg:"application-credential-id"` ApplicationCredentialSecret string `gcfg:"application-credential-secret"` // project name formerly known as tenant name. // it serialized as tenant-name because openstack CCM reads only tenant-name. In CCM, internally project and tenant // are stored into tenant-name. ProjectName string `gcfg:"tenant-name"` // project id formerly known as tenant id. // serialized as tenant-id for same reason as ProjectName ProjectID string `gcfg:"tenant-id"` DomainName string `gcfg:"domain-name"` Region string }
type LoadBalancerOpts ¶
type LoadBalancerOpts struct {
ManageSecurityGroups bool `gcfg:"manage-security-groups"`
}
type RawConfig ¶
type RawConfig struct { // Auth details IdentityEndpoint types.ConfigVarString `json:"identityEndpoint,omitempty"` Username types.ConfigVarString `json:"username,omitempty"` Password types.ConfigVarString `json:"password,omitempty"` ApplicationCredentialID types.ConfigVarString `json:"applicationCredentialID,omitempty"` ApplicationCredentialSecret types.ConfigVarString `json:"applicationCredentialSecret,omitempty"` DomainName types.ConfigVarString `json:"domainName,omitempty"` ProjectName types.ConfigVarString `json:"projectName,omitempty"` ProjectID types.ConfigVarString `json:"projectID,omitempty"` TenantName types.ConfigVarString `json:"tenantName,omitempty"` TenantID types.ConfigVarString `json:"tenantID,omitempty"` TokenID types.ConfigVarString `json:"tokenId,omitempty"` Region types.ConfigVarString `json:"region,omitempty"` TrustDevicePath types.ConfigVarBool `json:"trustDevicePath"` NodeVolumeAttachLimit *uint `json:"nodeVolumeAttachLimit"` }
Click to show internal directories.
Click to hide internal directories.