static

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2020 License: Apache-2.0 Imports: 21 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, orbiterCommit, repoURL, repoKey string) orbiter.AdaptFunc

func NewMachinesService

func NewMachinesService(
	monitor mntr.Monitor,
	desired *DesiredV0,
	bootstrapKey []byte,
	maintenanceKey []byte,
	maintenanceKeyPub []byte,
	id string,
	onCreate 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 RewriteFunc added in v0.21.0

func RewriteFunc(oldMasterkey, newMasterkey string) secret.Func

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
}

Jump to

Keyboard shortcuts

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