hetzner

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

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 implements the types.Provider interface for Hetzner Cloud.

func New

func New(token string) *Provider

New creates a new Hetzner Cloud provider with the given API token.

func (*Provider) CreateRecord

func (p *Provider) CreateRecord(ctx context.Context, domain string, record types.DNSRecord) (*types.DNSRecord, error)

func (*Provider) CreateSSHKey

func (p *Provider) CreateSSHKey(ctx context.Context, name string, publicKey string) (*types.SSHKey, error)

func (*Provider) CreateServer

func (p *Provider) CreateServer(ctx context.Context, opts types.CreateServerOptions) (*types.Server, error)

func (*Provider) CreateZone

func (p *Provider) CreateZone(ctx context.Context, domain string) error

func (*Provider) DeleteRecord

func (p *Provider) DeleteRecord(ctx context.Context, domain string, recordID string) error

func (*Provider) DisplayName

func (p *Provider) DisplayName() string

func (*Provider) GetRegions

func (p *Provider) GetRegions(ctx context.Context) ([]types.Region, error)

func (*Provider) GetSSHKey

func (p *Provider) GetSSHKey(ctx context.Context, fingerprint string) (*types.SSHKey, error)

func (*Provider) GetServer

func (p *Provider) GetServer(ctx context.Context, id string) (*types.Server, error)

func (*Provider) GetServers

func (p *Provider) GetServers(ctx context.Context) ([]types.Server, error)

func (*Provider) GetSizes

func (p *Provider) GetSizes(ctx context.Context, region string) ([]types.Size, error)

func (*Provider) GetZone

func (p *Provider) GetZone(ctx context.Context, domain string) (*types.Zone, bool, error)

func (*Provider) ListRecords

func (p *Provider) ListRecords(ctx context.Context, domain string) ([]types.DNSRecord, error)

func (*Provider) Name

func (p *Provider) Name() string

func (*Provider) WaitForServer

func (p *Provider) WaitForServer(ctx context.Context, id string, timeout time.Duration) (*types.Server, error)

Jump to

Keyboard shortcuts

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