orbiter

package
v0.20.4 Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdaptFuncGoroutine added in v0.20.4

func AdaptFuncGoroutine(adapt func() (QueryFunc, DestroyFunc, bool, error)) (QueryFunc, DestroyFunc, bool, error)

func Destroy

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

func DestroyFuncGoroutine added in v0.20.4

func DestroyFuncGoroutine(query func() error) error

func EnsureFuncGoroutine added in v0.20.4

func EnsureFuncGoroutine(ensure func() error) error

func Takeoff

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

Types

type AdaptFunc

type AdaptFunc func(monitor mntr.Monitor, desired *tree.Tree, current *tree.Tree) (QueryFunc, DestroyFunc, bool, error)

type CIDR

type CIDR string

func (CIDR) Validate

func (c CIDR) Validate() error

type CIDRs

type CIDRs []*CIDR

func (CIDRs) Len

func (c CIDRs) Len() int

func (CIDRs) Less

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

func (CIDRs) Swap

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

type DestroyFunc

type DestroyFunc func() error

type EnsureFunc

type EnsureFunc func(psf push.Func) error

func QueryFuncGoroutine added in v0.20.4

func QueryFuncGoroutine(query func() (EnsureFunc, error)) (EnsureFunc, error)

type IPAddress

type IPAddress string

func (IPAddress) Validate

func (i IPAddress) Validate() error

type QueryFunc

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

Jump to

Keyboard shortcuts

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