hetzner

package
v1.30.3 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TagKubernetesClusterName         = "kops.k8s.io/cluster"
	TagKubernetesFirewallRole        = "kops.k8s.io/firewall-role"
	TagKubernetesInstanceGroup       = "kops.k8s.io/instance-group"
	TagKubernetesInstanceRole        = "kops.k8s.io/instance-role"
	TagKubernetesInstanceUserData    = "kops.k8s.io/instance-userdata"
	TagKubernetesInstanceNeedsUpdate = "kops.k8s.io/needs-update"
	TagKubernetesVolumeRole          = "kops.k8s.io/volume-role"
)
View Source
const HetznerAuthenticationTokenPrefix = "x-hetzner-id "

Variables

This section is empty.

Functions

func FindRegion

func FindRegion(cluster *kops.Cluster) (string, error)

FindRegion determines the region from the zones specified in the cluster

func NewHetznerAuthenticator added in v1.26.0

func NewHetznerAuthenticator() (bootstrap.Authenticator, error)

func NewHetznerVerifier added in v1.26.0

func NewHetznerVerifier(opt *HetznerVerifierOptions) (bootstrap.Verifier, error)

Types

type HetznerAPITarget

type HetznerAPITarget struct {
	Cloud HetznerCloud
}

func NewHetznerAPITarget

func NewHetznerAPITarget(cloud HetznerCloud) *HetznerAPITarget

func (*HetznerAPITarget) DefaultCheckExisting added in v1.26.0

func (t *HetznerAPITarget) DefaultCheckExisting() bool

func (*HetznerAPITarget) Finish

func (t *HetznerAPITarget) Finish(taskMap map[string]fi.CloudupTask) error

type HetznerCloud

type HetznerCloud interface {
	fi.Cloud
	ActionClient() hcloud.ActionClient
	SSHKeyClient() hcloud.SSHKeyClient
	NetworkClient() hcloud.NetworkClient
	LoadBalancerClient() hcloud.LoadBalancerClient
	FirewallClient() hcloud.FirewallClient
	ServerClient() hcloud.ServerClient
	VolumeClient() hcloud.VolumeClient
	GetSSHKeys(clusterName string) ([]*hcloud.SSHKey, error)
	GetNetworks(clusterName string) ([]*hcloud.Network, error)
	GetFirewalls(clusterName string) ([]*hcloud.Firewall, error)
	GetLoadBalancers(clusterName string) ([]*hcloud.LoadBalancer, error)
	GetServers(clusterName string) ([]*hcloud.Server, error)
	GetVolumes(clusterName string) ([]*hcloud.Volume, error)
}

HetznerCloud exposes all the interfaces required to operate on Hetzner Cloud resources

func NewHetznerCloud

func NewHetznerCloud(region string) (HetznerCloud, error)

NewHetznerCloud returns a Cloud, using the env var HCLOUD_TOKEN

type HetznerVerifierOptions added in v1.26.0

type HetznerVerifierOptions struct {
}

Jump to

Keyboard shortcuts

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