static

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdaptFunc

func AdaptFunc(logger logging.Logger, masterkey string, id string) orbiter.AdaptFunc

func NewComputesService

func NewComputesService(
	logger logging.Logger,
	desired *DesiredV0,
	bootstrapkey []byte,
	maintenancekey []byte,
	maintenancekeyPub []byte,
	id string,
	desireHostname func(compute infra.Compute, pool string) error) core.ComputesService

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

Types

type Compute

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

type Current

type Current struct {
	Common  *orbiter.Common `yaml:",inline"`
	Current struct {
		Pools     map[string]infra.Pool
		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        *orbiter.Common `yaml:",inline"`
	Spec          Spec
	Loadbalancing *orbiter.Tree
}

type Keys added in v0.15.0

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

type Spec added in v0.15.0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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