infra

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Destroy

func Destroy(providers map[string]interface{}) (err error)

Types

type Compute

type Compute interface {
	ID() string
	InternalIP() (*string, error)
	ExternalIP() (*string, error)
	Remove() error
	Execute(env map[string]string, stdin io.Reader, cmd string) ([]byte, error)
	WriteFile(path string, data io.Reader, permissions uint16) error
	ReadFile(path string, data io.Writer) error
	UseKeys(sec *operator.Secrets, privateKeyPaths ...string) error
}

type Computes

type Computes []Compute

func (Computes) Len

func (c Computes) Len() int

func (Computes) Less

func (c Computes) Less(i, j int) bool

func (Computes) String

func (c Computes) String() string

func (Computes) Swap

func (c Computes) Swap(i, j int)

func (Computes) ToChan

func (c Computes) ToChan() <-chan Compute

type Ingress

type Ingress struct {
	Pools            []string
	HealthChecksPath string
}

type Pool

type Pool interface {
	EnsureMembers() error
	GetComputes(active bool) (Computes, error)
	AddCompute() (Compute, error)
}

type ProviderCurrent

type ProviderCurrent interface {
	Pools() map[string]Pool
	Ingresses() map[string]string
	Cleanupped() <-chan error
}

Jump to

Keyboard shortcuts

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