aggregator

package
v1.13.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aggregator

type Aggregator struct {

	// Public input channels that other things can use to send us information.
	KubernetesEvents chan<- thingkube.K8sEvent      // Kubernetes state
	ConsulEvents     chan<- thingconsul.ConsulEvent // Consul endpoints
	// contains filtered or unexported fields
}

func NewAggregator

func NewAggregator(snapshots chan<- string, k8sWatches chan<- []watchapi.KubernetesWatchSpec, consulWatches chan<- []watchapi.ConsulWatchSpec,
	requiredKinds []string, watchHook WatchHook, limiter limiter.Limiter, validator *kates.Validator) *Aggregator

func (*Aggregator) Work

func (a *Aggregator) Work(p *supervisor.Process) error

type WatchHook

type WatchHook func(p *supervisor.Process, snapshot string) watchapi.WatchSet

func ExecWatchHook

func ExecWatchHook(watchHooks []string) WatchHook

Jump to

Keyboard shortcuts

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