Documentation
¶
Overview ¶
Package hcloud implements controller.Assiger interface for Hetzner Cloud.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssignerConfig ¶
type AssignerConfig struct { // AuthToken is a Hetzner Cloud read-write token and must be set to non-empty value. AuthToken string // When mapping Kubernetes Node objects to Hetzner Cloud Servers, this suffix will be added // to the Kubernetes Node object name before mapping. // // E.g. if your Kubernetes node has name "foo" and your Hetzner Cloud server has name "foo.example.com", // you should set this to ".example.com". NodeSuffix string // Optional Prometheus Registerer to register Hetzner Cloud client metrics. PrometheusRegistrer prometheus.Registerer // Optional logger to use. If nil, controller.Klogger will be used. Logger controller.Logger // If true, no assignment changes will be actually performed. They will only be logged. DryRun bool }
AssignerConfig represents Hetzner Cloud Floating IP Assigner configuration, which can be used with this controller.
func (AssignerConfig) New ¶
func (c AssignerConfig) New() (controller.Assigner, error)
New validates AssignerConfig and returns assigner implementing controller.Assigner interface.
Click to show internal directories.
Click to hide internal directories.