Documentation
¶
Index ¶
Constants ¶
View Source
const ( // HcloudLoadBalancersLocation specifies the default location where the Load Balancer will be // created in. // // Mutually exclusive with [HcloudLoadBalancersNetworkZone]. // // Type: string HcloudLoadBalancersLocation = "HCLOUD_LOAD_BALANCERS_LOCATION" // HcloudLoadBalancersNetworkZone specifies the default network zone where the Load Balancer will be // created in. // // Mutually exclusive with [HcloudLoadBalancersLocation]. // // Type: string HcloudLoadBalancersNetworkZone = "HCLOUD_LOAD_BALANCERS_NETWORK_ZONE" // HcloudLoadBalancersType configures the default Load Balancer type this Load Balancer should be created with. // // Type: string // Default: lb11 HcloudLoadBalancersType = "HCLOUD_LOAD_BALANCERS_TYPE" )
View Source
const ServerCacheDefaultMaxAge time.Duration = 10 * time.Second
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressFamily ¶
type AddressFamily string
const ( AddressFamilyDualStack AddressFamily = "dualstack" AddressFamilyIPv6 AddressFamily = "ipv6" AddressFamilyIPv4 AddressFamily = "ipv4" )
type HCCMConfiguration ¶
type HCCMConfiguration struct {
HCloudClient HCloudClientConfiguration
Robot RobotConfiguration
Metrics MetricsConfiguration
Instance InstanceConfiguration
LoadBalancer LoadBalancerConfiguration
Network NetworkConfiguration
Route RouteConfiguration
ServerCache ServerCacheConfiguration
}
func Read ¶
func Read() (HCCMConfiguration, error)
Read evaluates all environment variables and returns a HCCMConfiguration. It only validates as far as it needs to parse the values. For business logic validation, check out HCCMConfiguration.Validate.
func (HCCMConfiguration) Validate ¶
func (c HCCMConfiguration) Validate() (err error)
type InstanceConfiguration ¶
type InstanceConfiguration struct {
AddressFamily AddressFamily
ZoneLabelEnabled bool
}
type LoadBalancerConfiguration ¶
type LoadBalancerConfiguration struct {
AlgorithmType hcloud.LoadBalancerAlgorithmType
DisablePublicNetwork *bool
Enabled bool
HealthCheckInterval time.Duration
HealthCheckRetries int
HealthCheckTimeout time.Duration
IPv6Enabled bool
Location string
NetworkZone string
PrivateIngressEnabled bool
PrivateIPEnabled bool
PrivateSubnetIPRange string
ProxyProtocolEnabled *bool
Type string
}
type MetricsConfiguration ¶
type NetworkConfiguration ¶
type RobotConfiguration ¶
type RouteConfiguration ¶
type RouteConfiguration struct {
Enabled bool
}
Click to show internal directories.
Click to hide internal directories.