static

package
v0.20.2 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdaptFunc

func AdaptFunc(masterkey string, id string, whitelist dynamic.WhiteListFunc) orbiter.AdaptFunc

func NewMachinesService

func NewMachinesService(
	monitor mntr.Monitor,
	desired *DesiredV0,
	bootstrapKey []byte,
	maintenanceKey []byte,
	maintenanceKeyPub []byte,
	id string,
	desireHostname func(machine infra.Machine, pool string) error) core.MachinesService

TODO: Dont accept the whole spec. Accept exactly the values needed (check other constructors too)

func SecretsFunc

func SecretsFunc(masterkey string) secret.Func

Types

type Current

type Current struct {
	Common  *tree.Common `yaml:",inline"`
	Current struct {
		Ingresses map[string]infra.Address
		// contains filtered or unexported fields
	}
}

func (*Current) Cleanupped

func (c *Current) Cleanupped() <-chan error

func (*Current) Ingresses

func (c *Current) Ingresses() map[string]infra.Address

func (*Current) Pools

func (c *Current) Pools() map[string]infra.Pool

type DesiredV0

type DesiredV0 struct {
	Common        *tree.Common `yaml:",inline"`
	Spec          Spec
	Loadbalancing *tree.Tree
}

type Keys

type Keys struct {
	BootstrapKeyPrivate   *secret.Secret `yaml:",omitempty"`
	BootstrapKeyPublic    *secret.Secret `yaml:",omitempty"`
	MaintenanceKeyPrivate *secret.Secret `yaml:",omitempty"`
	MaintenanceKeyPublic  *secret.Secret `yaml:",omitempty"`
}

type Machine

type Machine struct {
	ID       string
	Hostname string
	IP       orbiter.IPAddress
}

type Spec

type Spec struct {
	Verbose             bool
	RemoteUser          string
	RemotePublicKeyPath string
	Pools               map[string][]*Machine
	Keys                Keys
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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