ruleinformers

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RuleInformer

type RuleInformer struct {
	Rule              *rules.Rule
	InformerStartTime time.Time
	// contains filtered or unexported fields
}

RuleInformer holds information related to a rule in runtime along with the informer that is responsible for listening to the events for a specific rule. Closing the stopChan channel will stop the informer which prevents events for the specific rule from being collected.

func (*RuleInformer) Start

func (ri *RuleInformer) Start()

Start starts the informer for the rule. It will start all relevant kubernetes informers in all configured namespaces. Blocks until all informer caches are synced. Closing the stopChan channel by calling the Stop function will all the informers.

func (*RuleInformer) Stop

func (ri *RuleInformer) Stop()

Stop stops the informer for the rule.

type RuleInformerFactory

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

RuleInformerFactory is a helper struct to facilitate creation of RuleInformers

func NewRuleInformerFactory

func NewRuleInformerFactory(dynamicClientSet dynamic.Interface, sensorName string, queue *eventqueue.EventQueue) *RuleInformerFactory

NewRuleInformerFactory creates a new RuleInformerFactory.

func (*RuleInformerFactory) CreateRuleInformer

func (rif *RuleInformerFactory) CreateRuleInformer(rule *rules.Rule) *RuleInformer

CreateRuleInformer creates a new informer for the provide rule. Informers filters will be configured according to the rule. Label rules with <SensorName>=ignore for the event to be ignored. TODO: Add namespace wide ignore by adding <SensorName>=ignore to the

namespace label.

Jump to

Keyboard shortcuts

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