hetzner

package
v0.0.0-...-1722f20 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HetznerVolumes

type HetznerVolumes struct {
	// contains filtered or unexported fields
}

HetznerVolumes defines the Hetzner Cloud volume implementation.

func NewHetznerVolumes

func NewHetznerVolumes(clusterName string, volumeTags []string, nameTag string) (*HetznerVolumes, error)

NewHetznerVolumes returns a new Hetzner Cloud volume provider.

func (*HetznerVolumes) AttachVolume

func (a *HetznerVolumes) AttachVolume(volume *volumes.Volume) error

AttachVolume attaches the specified volume to the running server and returns the mountpoint if successful.

func (*HetznerVolumes) FindMountedVolume

func (a *HetznerVolumes) FindMountedVolume(volume *volumes.Volume) (string, error)

FindMountedVolume returns the device where the volume is mounted to the running server.

func (*HetznerVolumes) FindVolumes

func (a *HetznerVolumes) FindVolumes() ([]*volumes.Volume, error)

FindVolumes returns all volumes that can be attached to the running server.

func (*HetznerVolumes) MyIP

func (a *HetznerVolumes) MyIP() (string, error)

MyIP returns the first private IP of the running server if successful.

func (*HetznerVolumes) Poll

func (a *HetznerVolumes) Poll() (map[string]discovery.Node, error)

Poll returns all etcd cluster peers.

Jump to

Keyboard shortcuts

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