configuration

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// NodeAddressTypeExternal is the constant for external node address types
	NodeAddressTypeExternal = "external"
	// NodeAddressTypeInternal is the constant for internal node address types
	NodeAddressTypeInternal = "internal"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	HcloudAPIToken          string           `json:"hcloud_api_token,omitempty"`
	HcloudFloatingIPs       stringArrayFlags `json:"hcloud_floating_ips,omitempty"`
	LeaseDuration           int              `json:"lease_duration,omitempty"`
	LeaseName               string           `json:"lease_name,omitempty"`
	Namespace               string           `json:"namespace,omitempty"`
	NodeAddressType         NodeAddressType  `json:"node_address_type,omitempty"`
	NodeLabelSelector       string           `json:"node_label_selector,omitempty"`
	PodLabelSelector        string           `json:"pod_label_selector,omitempty"`
	NodeName                string           `json:"node_name,omitempty"`
	PodName                 string           `json:"pod_name,omitempty"`
	LogLevel                string           `json:"log_level,omitempty"`
	FloatingIPLabelSelector string           `json:"floating_ip_label_selector,omitempty"`
	LeaseRenewDeadline      int              `json:"lease_renew_deadline,omitempty"`
	BackoffDuration         time.Duration    `json:"backoff_duration,omitempty"`
	BackoffFactor           float64          `json:"backoff_factor,omitempty"`
	BackoffSteps            int              `json:"backoff_steps,omitempty"`
}

Configuration has all configurable values for the fip-controller All values can be configured via config file, cli params and envrionment variables

func (*Configuration) Validate

func (config *Configuration) Validate() error

Validate config options. Returns all errors found in a joined string

func (*Configuration) VarsFromFile

func (config *Configuration) VarsFromFile(configFile string) error

VarsFromFile reads given config file and overwrite options from given Configuration

type NodeAddressType added in v0.3.2

type NodeAddressType string

NodeAddressType specifies valid node address types

func (*NodeAddressType) Set added in v0.3.2

func (flags *NodeAddressType) Set(value string) error

Set is used for setting the node address type This function is required to satisfy the flag interface

func (*NodeAddressType) String added in v0.3.2

func (flags *NodeAddressType) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL