Documentation ¶
Index ¶
- Constants
- func FailedToRetreiveHostNS() error
- func InvalidContextField(field string) error
- func InvalidEventArgument(argument string) error
- func InvalidEventName(event string) error
- func InvalidExpression(expression string) error
- func InvalidScope(filterScope string) error
- func InvalidValue(value string) error
- func UnsupportedOperator(op Operator) error
- type ArgFilter
- func (filter *ArgFilter) Disable()
- func (filter *ArgFilter) Enable()
- func (filter *ArgFilter) Enabled() bool
- func (filter *ArgFilter) Filter(eventID events.ID, args []trace.Argument) bool
- func (filter *ArgFilter) GetEventFilters(eventID events.ID) map[string]Filter
- func (filter *ArgFilter) Parse(filterName string, operatorAndValues string, ...) error
- type BPFBinaryFilter
- type BPFStringFilter
- type BPFUIntFilter
- type BinaryFilter
- type BoolFilter
- type ContainerFilter
- type ContextFilter
- type Filter
- type IntFilter
- type Operator
- type ProcessTreeFilter
- func (f *ProcessTreeFilter) Disable()
- func (f *ProcessTreeFilter) Enable()
- func (f *ProcessTreeFilter) Enabled() bool
- func (filter *ProcessTreeFilter) FilterOut() bool
- func (filter *ProcessTreeFilter) Parse(operatorAndValues string) error
- func (filter *ProcessTreeFilter) UpdateBPF(bpfModule *bpf.Module, filterScopeID uint) error
- type RetFilter
- type StringFilter
- func (f *StringFilter) Disable()
- func (f *StringFilter) Enable()
- func (f *StringFilter) Enabled() bool
- func (f *StringFilter) Equal() []string
- func (f *StringFilter) Filter(val interface{}) bool
- func (filter *StringFilter) FilterOut() bool
- func (f *StringFilter) NotEqual() []string
- func (f *StringFilter) Parse(operatorAndValues string) error
- type UIntFilter
- func (f *UIntFilter[T]) Disable()
- func (f *UIntFilter[T]) Enable()
- func (f *UIntFilter[T]) Enabled() bool
- func (f *UIntFilter[T]) Filter(val interface{}) bool
- func (filter *UIntFilter[T]) FilterOut() bool
- func (f UIntFilter[T]) InMinMaxRange(val T) bool
- func (f *UIntFilter[T]) Maximum() uint64
- func (f *UIntFilter[T]) Minimum() uint64
- func (filter *UIntFilter[T]) Parse(operatorAndValues string) error
Constants ¶
const ( MaxNotSetUInt uint64 = 0 MinNotSetUInt uint64 = math.MaxUint64 )
Variables ¶
This section is empty.
Functions ¶
func FailedToRetreiveHostNS ¶ added in v0.11.0
func FailedToRetreiveHostNS() error
func InvalidContextField ¶ added in v0.10.0
func InvalidEventArgument ¶ added in v0.9.0
func InvalidEventName ¶ added in v0.9.0
func InvalidExpression ¶ added in v0.9.0
func InvalidScope ¶ added in v0.11.0
func InvalidValue ¶ added in v0.9.0
func UnsupportedOperator ¶ added in v0.9.0
Types ¶
type ArgFilter ¶
type ArgFilter struct {
// contains filtered or unexported fields
}
func NewArgFilter ¶ added in v0.9.0
func NewArgFilter() *ArgFilter
func (*ArgFilter) GetEventFilters ¶ added in v0.9.0
GetEventFilters returns the argument filters map for a specific event writing to the map may have unintentional consenquences, avoid doing so
type BPFBinaryFilter ¶ added in v0.11.0
type BPFBinaryFilter struct { BinaryFilter // contains filtered or unexported fields }
func NewBPFBinaryFilter ¶ added in v0.11.0
func NewBPFBinaryFilter(binaryMapName, procInfoMap string) *BPFBinaryFilter
type BPFStringFilter ¶ added in v0.9.0
type BPFStringFilter struct { StringFilter // contains filtered or unexported fields }
func NewBPFStringFilter ¶ added in v0.9.0
func NewBPFStringFilter(mapName string) *BPFStringFilter
type BPFUIntFilter ¶ added in v0.9.0
type BPFUIntFilter[T constraints.Unsigned] struct { UIntFilter[T] // contains filtered or unexported fields }
func NewBPFUInt32Filter ¶ added in v0.9.0
func NewBPFUInt32Filter(mapName string) *BPFUIntFilter[uint32]
func NewBPFUIntFilter ¶ added in v0.9.0
func NewBPFUIntFilter(mapName string) *BPFUIntFilter[uint64]
type BinaryFilter ¶ added in v0.11.0
type BinaryFilter struct {
// contains filtered or unexported fields
}
func NewBinaryFilter ¶ added in v0.11.0
func NewBinaryFilter() *BinaryFilter
func (*BinaryFilter) Disable ¶ added in v0.11.0
func (f *BinaryFilter) Disable()
func (*BinaryFilter) Enable ¶ added in v0.11.0
func (f *BinaryFilter) Enable()
func (*BinaryFilter) Enabled ¶ added in v0.11.0
func (f *BinaryFilter) Enabled() bool
func (*BinaryFilter) FilterOut ¶ added in v0.11.0
func (f *BinaryFilter) FilterOut() bool
func (*BinaryFilter) Parse ¶ added in v0.11.0
func (f *BinaryFilter) Parse(operatorAndValues string) error
type BoolFilter ¶
type BoolFilter struct {
// contains filtered or unexported fields
}
func NewBoolFilter ¶ added in v0.9.0
func NewBoolFilter() *BoolFilter
func (*BoolFilter) Disable ¶ added in v0.9.0
func (f *BoolFilter) Disable()
func (*BoolFilter) Enable ¶ added in v0.9.0
func (f *BoolFilter) Enable()
func (*BoolFilter) Enabled ¶
func (f *BoolFilter) Enabled() bool
func (*BoolFilter) Filter ¶ added in v0.9.0
func (filter *BoolFilter) Filter(val interface{}) bool
func (*BoolFilter) FilterOut ¶
func (filter *BoolFilter) FilterOut() bool
func (*BoolFilter) Parse ¶
func (filter *BoolFilter) Parse(operatorAndValues string) error
BoolFilter can support the following expressions values in <> are ignored field -> field=true !field -> field=false field=true field=false field!=true field!=false
func (*BoolFilter) Value ¶
func (filter *BoolFilter) Value() bool
type ContainerFilter ¶ added in v0.9.0
type ContainerFilter struct {
*BPFStringFilter
}
func NewContainerFilter ¶ added in v0.9.0
func NewContainerFilter(mapName string) *ContainerFilter
func (*ContainerFilter) UpdateBPF ¶ added in v0.11.0
func (f *ContainerFilter) UpdateBPF(bpfModule *bpf.Module, containers *containers.Containers, filterScopeID uint) error
type ContextFilter ¶ added in v0.10.0
type ContextFilter struct {
// contains filtered or unexported fields
}
func NewContextFilter ¶ added in v0.10.0
func NewContextFilter() *ContextFilter
func (*ContextFilter) Disable ¶ added in v0.10.0
func (filter *ContextFilter) Disable()
func (*ContextFilter) Enable ¶ added in v0.10.0
func (filter *ContextFilter) Enable()
func (*ContextFilter) Enabled ¶ added in v0.10.0
func (filter *ContextFilter) Enabled() bool
type Filter ¶ added in v0.9.0
type Filter interface { Filter(val interface{}) bool Parse(string) error Enable() Disable() Enabled() bool }
This is a generic represantation which cannot be implemented With generics this may be a viable interface, with T replacing interface{} Filters can be enabled or disabled - if a filter is enabled it will be skipped
type IntFilter ¶
type IntFilter[T constraints.Signed] struct { // contains filtered or unexported fields }
func NewInt32Filter ¶ added in v0.9.0
func NewIntFilter ¶ added in v0.9.0
type ProcessTreeFilter ¶
type ProcessTreeFilter struct { PIDs map[uint32]bool // PIDs is a map where k=pid and v represents whether it and its descendents should be traced or not // contains filtered or unexported fields }
func NewProcessTreeFilter ¶ added in v0.9.0
func NewProcessTreeFilter(mapName string) *ProcessTreeFilter
func (*ProcessTreeFilter) Disable ¶ added in v0.9.0
func (f *ProcessTreeFilter) Disable()
func (*ProcessTreeFilter) Enable ¶ added in v0.9.0
func (f *ProcessTreeFilter) Enable()
func (*ProcessTreeFilter) Enabled ¶
func (f *ProcessTreeFilter) Enabled() bool
func (*ProcessTreeFilter) FilterOut ¶
func (filter *ProcessTreeFilter) FilterOut() bool
func (*ProcessTreeFilter) Parse ¶
func (filter *ProcessTreeFilter) Parse(operatorAndValues string) error
type RetFilter ¶
type RetFilter struct {
// contains filtered or unexported fields
}
func NewRetFilter ¶ added in v0.9.0
func NewRetFilter() *RetFilter
type StringFilter ¶
type StringFilter struct {
// contains filtered or unexported fields
}
func NewStringFilter ¶ added in v0.9.0
func NewStringFilter() *StringFilter
func (*StringFilter) Disable ¶ added in v0.9.0
func (f *StringFilter) Disable()
func (*StringFilter) Enable ¶ added in v0.9.0
func (f *StringFilter) Enable()
func (*StringFilter) Enabled ¶
func (f *StringFilter) Enabled() bool
func (*StringFilter) Equal ¶
func (f *StringFilter) Equal() []string
Equals returns all equality check values - direct, prefixed and suffixed
func (*StringFilter) Filter ¶ added in v0.9.0
func (f *StringFilter) Filter(val interface{}) bool
func (*StringFilter) FilterOut ¶
func (filter *StringFilter) FilterOut() bool
func (*StringFilter) NotEqual ¶
func (f *StringFilter) NotEqual() []string
NotEquals returns all non-equality check values - direct, prefixed and suffixed
func (*StringFilter) Parse ¶
func (f *StringFilter) Parse(operatorAndValues string) error
type UIntFilter ¶
type UIntFilter[T constraints.Unsigned] struct { // contains filtered or unexported fields }
func NewUInt32Filter ¶ added in v0.9.0
func NewUInt32Filter() *UIntFilter[uint32]
func NewUIntFilter ¶ added in v0.9.0
func NewUIntFilter() *UIntFilter[uint64]
func (*UIntFilter[T]) Disable ¶ added in v0.9.0
func (f *UIntFilter[T]) Disable()
func (*UIntFilter[T]) Enable ¶ added in v0.9.0
func (f *UIntFilter[T]) Enable()
func (*UIntFilter[T]) Enabled ¶
func (f *UIntFilter[T]) Enabled() bool
func (*UIntFilter[T]) Filter ¶ added in v0.9.0
func (f *UIntFilter[T]) Filter(val interface{}) bool
func (*UIntFilter[T]) FilterOut ¶
func (filter *UIntFilter[T]) FilterOut() bool
func (UIntFilter[T]) InMinMaxRange ¶ added in v0.11.0
func (f UIntFilter[T]) InMinMaxRange(val T) bool
func (*UIntFilter[T]) Maximum ¶ added in v0.9.0
func (f *UIntFilter[T]) Maximum() uint64
func (*UIntFilter[T]) Minimum ¶ added in v0.9.0
func (f *UIntFilter[T]) Minimum() uint64
func (*UIntFilter[T]) Parse ¶
func (filter *UIntFilter[T]) Parse(operatorAndValues string) error