event

package
v0.28.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2022 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 Printer added in v0.28.0

type Printer struct {
	IOStreams genericclioptions.IOStreams
}

Printer implements the Printer interface and outputs the resource status information as a list of events as they happen.

func NewPrinter added in v0.28.0

func NewPrinter(ioStreams genericclioptions.IOStreams) *Printer

NewPrinter returns a new instance of the eventPrinter.

func (*Printer) Print added in v0.28.0

func (ep *Printer) Print(ch <-chan pollevent.Event, identifiers object.ObjMetadataSet,
	cancelFunc collector.ObserverFunc) error

Print takes an event channel and outputs the status events on the channel until the channel is closed. The provided cancelFunc is consulted on every event and is responsible for stopping the poller when appropriate. This function will block.

Jump to

Keyboard shortcuts

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