cloud

package
v0.0.0-...-84dbba1 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDCNotFound = errors.New("dc not found")
View Source
var ErrNoFingerprintsMatch = errors.New("no key fingerprints matched")
View Source
var ErrRecommendationNotFound = errors.New("could not find recommended datacentre")

Functions

This section is empty.

Types

type Clouder

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

func NewCloud

func NewCloud(conf Config) (*Clouder, error)

NewCloud creates a client to Hetzner with the API token.

func (*Clouder) ConfigureCloud

func (c *Clouder) ConfigureCloud(ctx context.Context, publicKey ssh.PublicKey) error

type Config

type Config struct {
	Token      string `json:"token"`
	AppName    string `json:"-"`
	AppVersion string `json:"-"`
	// contains filtered or unexported fields
}

type Datacentres

type Datacentres struct {
	Datacentres    []hcloud.Datacenter `json:"datacenters"`
	Recommendation int                 `json:"recommendation"`
}

Jump to

Keyboard shortcuts

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