rulemanager

package
v0.2.206 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RuleManagerClient

type RuleManagerClient interface {
	ContainerCallback(notif containercollection.PubSubEvent)
	RegisterPeekFunc(peek func(mntns uint64) ([]string, error))
	ReportEvent(eventType utils.EventType, event utils.K8sEvent)
	HasApplicableRuleBindings(namespace, name string) bool
	HasFinalApplicationProfile(pod *v1.Pod) bool
	IsContainerMonitored(k8sContainerID string) bool
	IsPodMonitored(namespace, pod string) bool
	EvaluateRulesForEvent(eventType utils.EventType, event utils.K8sEvent) []string
}

type RuleManagerMock

type RuleManagerMock struct {
}

func CreateRuleManagerMock

func CreateRuleManagerMock() *RuleManagerMock

func (*RuleManagerMock) ContainerCallback

func (r *RuleManagerMock) ContainerCallback(_ containercollection.PubSubEvent)

func (*RuleManagerMock) EvaluateRulesForEvent added in v0.2.178

func (r *RuleManagerMock) EvaluateRulesForEvent(_ utils.EventType, _ utils.K8sEvent) []string

func (*RuleManagerMock) HasApplicableRuleBindings

func (r *RuleManagerMock) HasApplicableRuleBindings(_, _ string) bool

func (*RuleManagerMock) HasFinalApplicationProfile

func (r *RuleManagerMock) HasFinalApplicationProfile(_ *v1.Pod) bool

func (*RuleManagerMock) IsContainerMonitored

func (r *RuleManagerMock) IsContainerMonitored(_ string) bool

func (*RuleManagerMock) IsPodMonitored

func (r *RuleManagerMock) IsPodMonitored(_, _ string) bool

func (*RuleManagerMock) RegisterPeekFunc

func (r *RuleManagerMock) RegisterPeekFunc(_ func(mntns uint64) ([]string, error))

func (*RuleManagerMock) ReportEvent added in v0.2.145

func (r *RuleManagerMock) ReportEvent(_ utils.EventType, _ utils.K8sEvent)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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