Documentation ¶
Index ¶
- type HetznerVolumes
- func (a *HetznerVolumes) AttachVolume(volume *volumes.Volume) error
- func (a *HetznerVolumes) FindMountedVolume(volume *volumes.Volume) (string, error)
- func (a *HetznerVolumes) FindVolumes() ([]*volumes.Volume, error)
- func (a *HetznerVolumes) MyIP() (string, error)
- func (a *HetznerVolumes) Poll() (map[string]discovery.Node, error)
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.
Click to show internal directories.
Click to hide internal directories.