processor

package
v10.40.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2018 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 Processor

type Processor interface {

	// Start processes PU start events
	Start(ctx context.Context, eventInfo *common.EventInfo) error

	// Event processes PU stop events
	Stop(ctx context.Context, eventInfo *common.EventInfo) error

	// Create process a PU create event
	Create(ctx context.Context, eventInfo *common.EventInfo) error

	// Event process a PU destroy event
	Destroy(ctx context.Context, eventInfo *common.EventInfo) error

	// Event processes a pause event
	Pause(ctx context.Context, eventInfo *common.EventInfo) error

	// Resync resyncs all PUs handled by this processor
	Resync(ctx context.Context, EventInfo *common.EventInfo) error
}

Processor is a generic interface that processes monitor events using a normalized event structure.

Directories

Path Synopsis
Package mockprocessor is a generated GoMock package.
Package mockprocessor is a generated GoMock package.

Jump to

Keyboard shortcuts

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