hetzner

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package hetzner provides a provider for Hetzner Cloud.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

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

Provider wraps a Hetzner API client.

func NewProvider

func NewProvider(ctx context.Context, cfg cfgmodel.GroupConfig) (*Provider, error)

NewProvider creates a new Hetzner provider for a given group.

func (Provider) AssignFloatingIP

func (c Provider) AssignFloatingIP(ctx context.Context, flip resource.FloatingIP, srv resource.Server) error

AssignFloatingIP targets a floating IP at a server.

func (Provider) Name

func (c Provider) Name() resource.ProviderName

Name returns the name of the Hetzner provider, "hetzner".

func (Provider) Poll

func (c Provider) Poll(ctx context.Context) (resource.Group, error)

Poll returns the current resources in the provider.

Jump to

Keyboard shortcuts

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