Documentation ¶
Index ¶
- Constants
- func New(client *hcloud.Client) gateway.Platform
- type PlatformHetzner
- func (p *PlatformHetzner) CreateNode(ctx context.Context, id node.Identifier, tid tailnet.DeviceName, ...) (node.PlatformIdentifier, error)
- func (p *PlatformHetzner) DeleteNode(ctx context.Context, n *node.Node) error
- func (p *PlatformHetzner) GetStatus(ctx context.Context, n *node.Node) (node.Status, error)
- func (p *PlatformHetzner) StartNode(ctx context.Context, n *node.Node) error
- func (p *PlatformHetzner) StopNode(ctx context.Context, n *node.Node) error
Constants ¶
View Source
const ( DefaultSmallServerType = "cpx11" DefaultMediumServerType = "cpx21" DefaultLargeServerType = "cpx31" DefaultImage = "debian-12" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PlatformHetzner ¶
type PlatformHetzner struct {
// contains filtered or unexported fields
}
func (*PlatformHetzner) CreateNode ¶
func (p *PlatformHetzner) CreateNode(ctx context.Context, id node.Identifier, tid tailnet.DeviceName, loc provider.Location, tcs tailnet.ControlServer, key tailnet.PreauthKey, size node.Size) (node.PlatformIdentifier, error)
func (*PlatformHetzner) DeleteNode ¶
Click to show internal directories.
Click to hide internal directories.