hcloud

package
v0.0.0-...-c456e04 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2021 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Implements the 'hcloud' target type, which uses HCLOUD SDK to create and terminate hcloud virtual machines.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory struct{}

func (*Factory) NewProvider

func (factory *Factory) NewProvider(target string, hclBlock hcl.Body) (providers.Provider, error)

type Provider

type Provider struct {
	Name       string
	Image      string
	ServerType string
	SSHKey     string
	UserData   string
	Location   string
	Labels     map[string]string
	Shared     bool
	CheckPort  uint16
	Linger     time.Duration
	HCloud     *hcloud.Client
}

func (*Provider) IsShared

func (prov *Provider) IsShared() bool

func (*Provider) RunMachine

func (prov *Provider) RunMachine(mach *providers.Machine)

Jump to

Keyboard shortcuts

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