platform_hetzner

package
v0.0.11 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DefaultSmallServerType  = "cpx11"
	DefaultMediumServerType = "cpx21"
	DefaultLargeServerType  = "cpx31"
	DefaultImage            = "debian-12"
)

Variables

This section is empty.

Functions

func New

func New(client *hcloud.Client) gateway.Platform

Types

type PlatformHetzner

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

func (*PlatformHetzner) DeleteNode

func (p *PlatformHetzner) DeleteNode(ctx context.Context, n *node.Node) error

func (*PlatformHetzner) GetStatus

func (p *PlatformHetzner) GetStatus(ctx context.Context, n *node.Node) (node.Status, error)

func (*PlatformHetzner) StartNode

func (p *PlatformHetzner) StartNode(ctx context.Context, n *node.Node) error

func (*PlatformHetzner) StopNode

func (p *PlatformHetzner) StopNode(ctx context.Context, n *node.Node) error

Jump to

Keyboard shortcuts

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