platform

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const GHKeyPrefix string = "gh-key-"

Variables

This section is empty.

Functions

func RunCleanup

func RunCleanup(ctx context.Context, cnf *conf.Config) error

func RunPreparation

func RunPreparation(ctx context.Context, cnf *conf.Config) error

Types

type Hetzner

type Hetzner struct{}

func (*Hetzner) Cleanup

func (s *Hetzner) Cleanup(context.Context, *conf.Config) error

func (*Hetzner) Prepare

func (s *Hetzner) Prepare(ctx context.Context, conf *conf.Config) error

type HetznerSSHKey

type HetznerSSHKey struct {
	ID          uint32 `json:"id"`
	Name        string `json:"name"`
	Fingerprint string `json:"fingerprint"`
}

type Platform

type Platform interface {
	// Prepare is intended for changes to the platform (and, optionally, Config) that we want to run before any terraform or ansible script. Example: modify allowed ssh keys
	Prepare(context.Context, *conf.Config) error
	// Cleanup is intended for cleanup after we run terraform and ansible scripts.
	Cleanup(context.Context, *conf.Config) error
}

Jump to

Keyboard shortcuts

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