Documentation ¶
Index ¶
Constants ¶
This section is empty.
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 }
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
}
type MetricsConfiguration ¶
type NetworkConfiguration ¶
type RobotConfiguration ¶
type RouteConfiguration ¶
type RouteConfiguration struct {
Enabled bool
}
Click to show internal directories.
Click to hide internal directories.