filters

package
v0.17.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// NodeNotReady EventReason when Node is NotReady
	NodeNotReady string = "NodeNotReady"
	// NodeReady EventReason when Node is Ready
	NodeReady string = "NodeReady"
)
View Source
const (
	// DisableAnnotation is the object disable annotation.
	DisableAnnotation string = "botkube.io/disable"
	// ChannelAnnotation is the multichannel support annotation.
	ChannelAnnotation string = "botkube.io/channel"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeEventsChecker added in v0.13.0

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

NodeEventsChecker checks job status and adds message in the events structure

func NewNodeEventsChecker added in v0.13.0

func NewNodeEventsChecker(log logrus.FieldLogger) *NodeEventsChecker

NewNodeEventsChecker creates a new NodeEventsChecker instance

func (*NodeEventsChecker) Describe added in v0.13.0

func (f *NodeEventsChecker) Describe() string

Describe describes the filter

func (*NodeEventsChecker) Name added in v0.13.0

func (f *NodeEventsChecker) Name() string

Name returns the filter's name

func (*NodeEventsChecker) Run added in v0.13.0

func (f *NodeEventsChecker) Run(_ context.Context, event *event.Event) error

Run filers and modifies event struct

type ObjectAnnotationChecker added in v0.13.0

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

ObjectAnnotationChecker forwards events to specific channels based on a special annotation if it is set on a given K8s resource.

func NewObjectAnnotationChecker added in v0.13.0

func NewObjectAnnotationChecker(log logrus.FieldLogger, dynamicCli dynamic.Interface, mapper meta.RESTMapper) *ObjectAnnotationChecker

NewObjectAnnotationChecker creates a new ObjectAnnotationChecker instance.

func (*ObjectAnnotationChecker) Describe added in v0.13.0

func (f *ObjectAnnotationChecker) Describe() string

Describe describes the filter.

func (*ObjectAnnotationChecker) Name added in v0.13.0

func (f *ObjectAnnotationChecker) Name() string

Name returns the filter's name.

func (*ObjectAnnotationChecker) Run added in v0.13.0

Run filters and modifies event struct.

Jump to

Keyboard shortcuts

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