event

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2020 License: Apache-2.0 Imports: 2 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplyEvent

type ApplyEvent struct {
	Operation string
	Object    runtime.Object
}

type ErrorEvent

type ErrorEvent struct {
	Err error
}

type Event

type Event struct {
	// Type is the type of event.
	Type Type

	// ErrorEvent contains information about any errors encountered.
	ErrorEvent ErrorEvent

	// ApplyEvent contains information about progress pertaining to
	// applying a resource to the cluster.
	ApplyEvent ApplyEvent

	// StatusEvents contains information about the status of one of
	// the applied resources.
	StatusEvent wait.Event

	// PruneEvent contains information about objects that have been
	// pruned.
	PruneEvent PruneEvent
}

Event is the type of the objects that will be returned through the channel that is returned from a call to Run. It contains information about progress and errors encountered during the process of doing apply, waiting for status and doing a prune.

type PruneEvent

type PruneEvent struct {
	Object runtime.Object
}

type Type

type Type string

Type determines the type of events that are available.

const (
	ErrorEventType  Type = "error"
	ApplyEventType  Type = "apply"
	StatusEventType Type = "status"
	PruneEventType  Type = "prune"
)

Jump to

Keyboard shortcuts

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