hetzner

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Token string
}

func NewConfig

func NewConfig() *Config

type Provider

type Provider struct {
	Client *hcloud.Client
	Token  string
}

func NewProvider

func NewProvider() *Provider

func (*Provider) AttachVolumeToServer

func (p *Provider) AttachVolumeToServer(ctx context.Context, server *hcloud.Server, labels map[string]string, sizeInGB int, volumeName string, autoMount bool) error

func (*Provider) AttacheVolumesToServers

func (p *Provider) AttacheVolumesToServers(ctx context.Context, customerName string, servers []*hcloud.Server) error

func (*Provider) ConfigureCredentials

func (p *Provider) ConfigureCredentials()

func (*Provider) GetServerByLabels

func (p *Provider) GetServerByLabels(ctx context.Context, customerName string) ([]*hcloud.Server, error)

Jump to

Keyboard shortcuts

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