hetzner

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Params added in v0.0.15

type Params struct {
	fx.In

	Config *config.Config
	Logger *slog.Logger
}

type Provider

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

func New added in v0.0.15

func New(p Params) (*Provider, error)

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() error

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