sinks

package
v0.0.0-...-c1fcc63 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sink

type Sink interface {
	events.EventHandler

	OnList(*api_v1.EventList)

	Run(stopCh <-chan struct{})
}

Sink interface represents a generic sink that is responsible for handling actions upon the event objects and filter the initial events list. Note, that OnAdd method from the EventHandler interface will only receive objects that were added during watching phase, not before. If sink wishes to process the latter additions, it should implement additional logic in the OnList method.

type SinkFactory

type SinkFactory interface {
	CreateNew(opts []string) (Sink, error)
}

SinkFactory creates a new sink, using user-provided parameters.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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