Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloudConfigToString ¶
func CloudConfigToString(c *CloudConfig) (string, error)
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.
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 { LBVersion string `gcfg:"lb-version"` SubnetID string `gcfg:"subnet-id"` FloatingNetworkID string `gcfg:"floating-network-id"` LBMethod string `gcfg:"lb-method"` LBProvider string `gcfg:"lb-provider"` CreateMonitor bool `gcfg:"create-monitor"` MonitorDelay ini.Duration `gcfg:"monitor-delay"` MonitorTimeout ini.Duration `gcfg:"monitor-timeout"` MonitorMaxRetries uint `gcfg:"monitor-max-retries"` ManageSecurityGroups bool `gcfg:"manage-security-groups"` UseOctavia *bool `gcfg:"use-octavia"` EnableIngressHostname *bool `gcfg:"enable-ingress-hostname"` IngressHostnameSuffix *string `gcfg:"ingress-hostname-suffix"` }
Click to show internal directories.
Click to hide internal directories.