Documentation
¶
Index ¶
Constants ¶
View Source
const (
// DefaultLoadBalancerClass is the default load balancer class
DefaultLoadBalancerClass = "default"
)
Variables ¶
View Source
var LoadBalancerSizes = sets.NewString( model.LBService_SIZE_SMALL, model.LBService_SIZE_MEDIUM, model.LBService_SIZE_LARGE, model.LBService_SIZE_XLARGE, model.LBService_SIZE_DLB, )
LoadBalancerSizes contains the valid size names
Functions ¶
This section is empty.
Types ¶
type LBConfig ¶
type LBConfig struct { LoadBalancer LoadBalancerConfig `yaml:"loadBalancer"` LoadBalancerClass map[string]*LoadBalancerClassConfig `yaml:"loadBalancerClass"` }
LBConfig is used to read and store information from the cloud configuration file
func ReadConfigYAML ¶
ReadConfigYAML parses vSphere cloud config file and stores it into Config
func ReadLBConfig ¶
ReadLBConfig parses vSphere cloud config file and stores it into VSphereConfig. Environment variables are also checked
func ReadRawConfigYAML ¶
ReadRawConfigYAML parses vSphere cloud config file and stores it into ConfigYAML
func (*LBConfig) CompleteAndValidate ¶
CompleteAndValidate sets default values, overrides by env and validates the resulting config
type LoadBalancerClassConfig ¶
type LoadBalancerClassConfig struct { IPPoolName string `yaml:"ipPoolName"` IPPoolID string `yaml:"ipPoolId"` TCPAppProfileName string `yaml:"tcpAppProfileName"` TCPAppProfilePath string `yaml:"tcpAppProfilePath"` UDPAppProfileName string `yaml:"udpAppProfileName"` UDPAppProfilePath string `yaml:"udpAppProfilePath"` }
LoadBalancerClassConfig contains the configuration for a load balancer class
type LoadBalancerConfig ¶
type LoadBalancerConfig struct { Enabled bool `yaml:"enabled"` Size string `yaml:"size"` LBServiceID string `yaml:"lbServiceId"` Tier1GatewayPath string `yaml:"tier1GatewayPath"` AdditionalTags map[string]string `yaml:"tags"` LoadBalancerClassConfig `yaml:",inline"` }
LoadBalancerConfig contains the configuration for the load balancer itself
Click to show internal directories.
Click to hide internal directories.