gce

package
v0.30.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdaptFunc added in v0.22.0

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

func ListMachines added in v0.26.0

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

func SecretsFunc added in v0.22.0

func SecretsFunc() secret.Func

Types

type Current added in v0.22.0

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

func (*Current) Cleanupped added in v0.22.0

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

func (*Current) Ingresses added in v0.22.0

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

func (*Current) Pools added in v0.22.0

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

type Desired added in v0.22.0

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

type Pool added in v0.22.0

type Pool struct {
	OSImage     string
	MinCPUCores int
	MinMemoryGB int
	StorageGB   int
	Preemptible bool
	LocalSSDs   uint8
}

type SSHKey added in v0.22.0

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

type Spec added in v0.22.0

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

type StandardLogFunc added in v0.22.0

type StandardLogFunc func(msg string, debug bool) func()

Jump to

Keyboard shortcuts

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