cs

package
v1.5.11 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2020 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdaptFunc

func AdaptFunc(providerID, orbID string, whitelist dynamic.WhiteListFunc, orbiterCommit, repoURL, repoKey string, oneoff bool) orbiter.AdaptFunc

func ListMachines

func ListMachines(monitor mntr.Monitor, desiredTree *tree.Tree, orbID, providerID string) (map[string]infra.Machine, error)

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 Desired

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

type Pool

type Pool struct {
	Flavor       string
	Zone         string
	VolumeSizeGB int
}

type SSHKey

type SSHKey struct {
	Private *secret.Secret `yaml:",omitempty"`
	Public  *secret.Secret `yaml:",omitempty"`
}

type Spec

type Spec struct {
	Verbose             bool
	APIToken            *secret.Secret `yaml:",omitempty"`
	Pools               map[string]*Pool
	SSHKey              *SSHKey
	RebootRequired      []string
	ReplacementRequired []string
}

Jump to

Keyboard shortcuts

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