transform

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventFilterPredicate

type EventFilterPredicate func(event watch.Event) bool

type EventTransformer

type EventTransformer struct {
	RuleSelector RuleSelector
	Rules        map[string]Func
}

func (*EventTransformer) Output

func (et *EventTransformer) Output(input <-chan watch.Event) <-chan model.Record

type FilteredWatch

type FilteredWatch struct {
	// contains filtered or unexported fields
}

func NewFilteredWatch

func NewFilteredWatch(inputWatch watch.Interface, predicates ...EventFilterPredicate) *FilteredWatch

func (*FilteredWatch) ResultChan

func (fw *FilteredWatch) ResultChan() <-chan watch.Event

func (*FilteredWatch) Stop

func (fw *FilteredWatch) Stop()

type Func

type Func func(event watch.Event) model.Record

type RuleSelector

type RuleSelector func(event watch.Event) string

Jump to

Keyboard shortcuts

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