commoneventer

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// CommonEventGeneratedDiagnosisPrefix is the name prefix for diagnoses generated by common event.
	CommonEventGeneratedDiagnosisPrefix = "common-event"
	// CommonEventAnnotation is the annotation used to store the common event that triggers a diagnosis.
	CommonEventAnnotation = util.KubeDiagPrefix + CommonEventGeneratedDiagnosisPrefix
)

Functions

This section is empty.

Types

type CommonEventer

type CommonEventer interface {
	// Handler handles http requests.
	Handler(http.ResponseWriter, *http.Request)
}

CommonEventer can handle valid common events.

func NewCommonEventer

func NewCommonEventer(
	ctx context.Context,
	logger logr.Logger,
	cli client.Client,
	cache cache.Cache,
	commonEventEnabled bool,
) CommonEventer

NewCommonEventer creates a new CommonEvent.

Jump to

Keyboard shortcuts

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