orbiter

package
v0.20.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Destroy

func Destroy(monitor mntr.Monitor, gitClient *git.Client, adapt AdaptFunc) error

func JoinPath added in v0.10.0

func JoinPath(base string, append ...string) string

func ReadSecret

func ReadSecret(monitor mntr.Monitor, gitClient *git.Client, adapt AdaptFunc, path string) (string, error)

func Takeoff

func Takeoff(monitor mntr.Monitor, gitClient *git.Client, pushEvents func(events []*ingestion.EventRequest) error, orbiterCommit string, adapt AdaptFunc) func()

func WriteSecret

func WriteSecret(monitor mntr.Monitor, gitClient *git.Client, adapt AdaptFunc, path, value string) error

Types

type AdaptFunc

type AdaptFunc func(monitor mntr.Monitor, desired *Tree, current *Tree) (QueryFunc, DestroyFunc, map[string]*Secret, bool, error)

type CIDR added in v0.12.1

type CIDR string

func (CIDR) Validate added in v0.12.1

func (c CIDR) Validate() error

type CIDRs added in v0.19.7

type CIDRs []*CIDR

func (CIDRs) Len added in v0.19.7

func (c CIDRs) Len() int

func (CIDRs) Less added in v0.19.7

func (c CIDRs) Less(i, j int) bool

func (CIDRs) Swap added in v0.19.7

func (c CIDRs) Swap(i, j int)

type Common

type Common struct {
	Kind    string
	Version string
}

type DestroyFunc

type DestroyFunc func() error

type EnsureFunc

type EnsureFunc func(psf PushSecretsFunc) error

type IPAddress added in v0.12.1

type IPAddress string

func (IPAddress) Validate added in v0.12.1

func (i IPAddress) Validate() error

type Orb

type Orb struct {
	URL       string
	Repokey   string
	Masterkey string
}

type PushSecretsFunc

type PushSecretsFunc func(monitor mntr.Monitor) error

type QueryFunc added in v0.16.0

type QueryFunc func(nodeAgentsCurrent map[string]*common.NodeAgentCurrent, nodeAgentsDesired map[string]*common.NodeAgentSpec, queried map[string]interface{}) (EnsureFunc, error)

type Secret

type Secret struct {
	Encryption string
	Encoding   string
	Value      string
	Masterkey  string `yaml:"-"`
}

func (*Secret) MarshalYAML

func (s *Secret) MarshalYAML() (interface{}, error)

func (*Secret) UnmarshalYAML

func (s *Secret) UnmarshalYAML(node *yaml.Node) error

type Tree

type Tree struct {
	Common   *Common `yaml:",inline"`
	Original *yaml.Node
	Parsed   interface{} `yaml:",inline"`
}

func (*Tree) MarshalYAML

func (c *Tree) MarshalYAML() (interface{}, error)

func (*Tree) UnmarshalYAML

func (c *Tree) UnmarshalYAML(node *yaml.Node) error

Jump to

Keyboard shortcuts

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