Documentation ¶
Index ¶
Constants ¶
View Source
const ( HealthCheckTimeout = 3 HealthCheckMaxRetries = 3 HealthCheckDelay = 5 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthOptions ¶
type AuthOptions struct { Cloud string `gcfg:"cloud"` AuthURL string `gcfg:"auth-url"` Region string `gcfg:"region"` AccessKey string `gcfg:"access-key"` SecretKey string `gcfg:"secret-key"` ProjectID string `gcfg:"project-id"` }
func (*AuthOptions) GetCredentials ¶
func (a *AuthOptions) GetCredentials() *basic.Credentials
func (*AuthOptions) GetHcClient ¶
func (a *AuthOptions) GetHcClient(catalogName string) *core.HcHttpClient
type CloudConfig ¶
type CloudConfig struct { AuthOpts AuthOptions `gcfg:"Global"` VpcOpts VpcOptions `gcfg:"Vpc"` }
CloudConfig define
func ReadConfig ¶
func ReadConfig(cfg io.Reader) (*CloudConfig, error)
type HealthCheckOption ¶
type LoadBalancerOptions ¶
type LoadBalancerOptions struct { LBAlgorithm string `json:"lb-algorithm"` LBProvider string `json:"lb-provider"` KeepEIP bool `json:"keep-eip"` SessionAffinityOption elbmodel.SessionPersistence `json:"session-affinity-option"` SessionAffinityFlag string `json:"session-affinity-flag"` HealthCheckFlag string `json:"health-check-flag"` HealthCheckOption HealthCheckOption `json:"health-check-option"` }
type LoadbalancerConfig ¶
type LoadbalancerConfig struct { LoadBalancerOpts LoadBalancerOptions `json:"loadBalancerOption"` NetworkingOpts NetworkingOptions `json:"networkingOption"` MetadataOpts MetadataOptions `json:"metadataOption"` }
func LoadELBConfig ¶
func LoadELBConfig(data map[string]string) *LoadbalancerConfig
func LoadElbConfigFromCM ¶
func LoadElbConfigFromCM() (*LoadbalancerConfig, error)
func NewDefaultELBConfig ¶
func NewDefaultELBConfig() *LoadbalancerConfig
type MetadataOptions ¶
type MetadataOptions struct {
SearchOrder string `json:"search-order"`
}
MetadataOptions is used for configuring how to talk to metadata service or authConfig drive
type NetworkingOptions ¶
type NetworkingOptions struct { PublicNetworkName []string `json:"public-network-name"` InternalNetworkName []string `json:"internal-network-name"` }
NetworkingOptions is used for networking settings
type VpcOptions ¶
Click to show internal directories.
Click to hide internal directories.