filter

package
v1.16.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFilters

func GetFilters() map[string]Filter

GetFilters gets filter map

func IsBelongToSameGroup

func IsBelongToSameGroup(targetNodeName string, epNodeName string) bool

func MessageFilter

func MessageFilter(content interface{}, targetNode string)

MessageFilter filter message according to specify policy

func Register

func Register(f Filter)

Register register filter

Types

type Filter

type Filter interface {
	Name() string
	NeedFilter(content interface{}) bool
	FilterResource(targetNode string, obj runtime.Object)
}

Filter interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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