events

package
v0.0.0-...-527e8a9 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Predicate

type Predicate func(event watch.Event) (bool, error)

func AllOf

func AllOf(predicates ...Predicate) Predicate

func AnyOf

func AnyOf(predicates ...Predicate) Predicate

func IsObjectName

func IsObjectName(name string) Predicate

func IsType

func IsType(eventType watch.EventType) Predicate

type Tracer

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

func NewTracer

func NewTracer(watch watch.Interface, invariants ...Predicate) *Tracer

func (*Tracer) Stop

func (wt *Tracer) Stop() error

func (*Tracer) TestCleanupFunc

func (wt *Tracer) TestCleanupFunc(t *testing.T) func()

func (*Tracer) WaitUntil

func (wt *Tracer) WaitUntil(ctx context.Context, predicate Predicate) error

Jump to

Keyboard shortcuts

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