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 InvalidPolicy(policy string) error
- func InvalidValue(value string) error
- func UnsupportedOperator(op Operator) error
- type ArgFilter
- func (filter *ArgFilter) Clone() utils.Cloner
- 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 BinaryFilter
- func (f *BinaryFilter) Clone() utils.Cloner
- func (f *BinaryFilter) Disable()
- func (f *BinaryFilter) Enable()
- func (f *BinaryFilter) Enabled() bool
- func (f *BinaryFilter) Equalities() BinaryFilterEqualities
- func (f *BinaryFilter) FilterOut() bool
- func (f *BinaryFilter) Parse(operatorAndValues string) error
- type BinaryFilterEqualities
- type BoolFilter
- func (f *BoolFilter) Clone() utils.Cloner
- func (f *BoolFilter) Disable()
- func (f *BoolFilter) Enable()
- func (f *BoolFilter) Enabled() bool
- func (f *BoolFilter) Filter(val interface{}) bool
- func (f *BoolFilter) FilterOut() bool
- func (f *BoolFilter) Parse(operatorAndValues string) error
- func (f *BoolFilter) Value() bool
- type ContextFilter
- func (filter *ContextFilter) Clone() utils.Cloner
- func (filter *ContextFilter) Disable()
- func (filter *ContextFilter) Enable()
- func (filter *ContextFilter) Enabled() bool
- func (filter *ContextFilter) Filter(event trace.Event) bool
- func (filter *ContextFilter) Parse(filterName string, operatorAndValues string) error
- type Filter
- type IntFilter
- func (f *IntFilter[T]) Clone() utils.Cloner
- func (f *IntFilter[T]) Disable()
- func (f *IntFilter[T]) Enable()
- func (f *IntFilter[T]) Enabled() bool
- func (f *IntFilter[T]) Filter(val interface{}) bool
- func (f *IntFilter[T]) Maximum() int64
- func (f *IntFilter[T]) Minimum() int64
- func (f *IntFilter[T]) Parse(operatorAndValues string) error
- type NSBinary
- type Operator
- type ProcessTreeFilter
- func (f *ProcessTreeFilter) Clone() utils.Cloner
- func (f *ProcessTreeFilter) Disable()
- func (f *ProcessTreeFilter) Enable()
- func (f *ProcessTreeFilter) Enabled() bool
- func (f *ProcessTreeFilter) Equalities() ProcessTreeFilterEqualities
- func (f *ProcessTreeFilter) FilterOut() bool
- func (f *ProcessTreeFilter) Parse(operatorAndValues string) error
- type ProcessTreeFilterEqualities
- type RetFilter
- func (filter *RetFilter) Clone() utils.Cloner
- func (filter *RetFilter) Disable()
- func (filter *RetFilter) Enable()
- func (filter *RetFilter) Enabled() bool
- func (filter *RetFilter) Filter(eventID events.ID, retVal int64) bool
- func (filter *RetFilter) Parse(filterName string, operatorAndValues string, ...) error
- type StringFilter
- func (f *StringFilter) Clone() utils.Cloner
- func (f *StringFilter) Disable()
- func (f *StringFilter) Enable()
- func (f *StringFilter) Enabled() bool
- func (f *StringFilter) Equal() []string
- func (f *StringFilter) Equalities() StringFilterEqualities
- func (f *StringFilter) Filter(val interface{}) bool
- func (f *StringFilter) FilterOut() bool
- func (f *StringFilter) NotEqual() []string
- func (f *StringFilter) Parse(operatorAndValues string) error
- type StringFilterEqualities
- type UIntFilter
- func (f *UIntFilter[T]) Clone() utils.Cloner
- func (f *UIntFilter[T]) Disable()
- func (f *UIntFilter[T]) Enable()
- func (f *UIntFilter[T]) Enabled() bool
- func (f *UIntFilter[T]) Equalities() UIntFilterEqualities
- func (f *UIntFilter[T]) Filter(val interface{}) bool
- func (f *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 (f *UIntFilter[T]) Parse(operatorAndValues string) error
- type UIntFilterEqualities
Constants ¶
const ( MaxNotSetUInt uint64 = 0 MinNotSetUInt uint64 = math.MaxUint64 )
Variables ¶
This section is empty.
Functions ¶
func FailedToRetreiveHostNS ¶
func FailedToRetreiveHostNS() error
func InvalidContextField ¶
func InvalidEventArgument ¶
func InvalidEventName ¶
func InvalidExpression ¶
func InvalidPolicy ¶
func InvalidValue ¶
func UnsupportedOperator ¶
Types ¶
type ArgFilter ¶
type ArgFilter struct {
// contains filtered or unexported fields
}
func NewArgFilter ¶
func NewArgFilter() *ArgFilter
func (*ArgFilter) GetEventFilters ¶
GetEventFilters returns the argument filters map for a specific event writing to the map may have unintentional consequences, avoid doing so
type BinaryFilter ¶
type BinaryFilter struct {
// contains filtered or unexported fields
}
func NewBinaryFilter ¶
func NewBinaryFilter() *BinaryFilter
func (*BinaryFilter) Clone ¶
func (f *BinaryFilter) Clone() utils.Cloner
func (*BinaryFilter) Disable ¶
func (f *BinaryFilter) Disable()
func (*BinaryFilter) Enable ¶
func (f *BinaryFilter) Enable()
func (*BinaryFilter) Enabled ¶
func (f *BinaryFilter) Enabled() bool
func (*BinaryFilter) Equalities ¶
func (f *BinaryFilter) Equalities() BinaryFilterEqualities
func (*BinaryFilter) FilterOut ¶
func (f *BinaryFilter) FilterOut() bool
func (*BinaryFilter) Parse ¶
func (f *BinaryFilter) Parse(operatorAndValues string) error
type BinaryFilterEqualities ¶
type BoolFilter ¶
type BoolFilter struct {
// contains filtered or unexported fields
}
func NewBoolFilter ¶
func NewBoolFilter() *BoolFilter
func (*BoolFilter) Clone ¶
func (f *BoolFilter) Clone() utils.Cloner
func (*BoolFilter) Disable ¶
func (f *BoolFilter) Disable()
func (*BoolFilter) Enable ¶
func (f *BoolFilter) Enable()
func (*BoolFilter) Enabled ¶
func (f *BoolFilter) Enabled() bool
func (*BoolFilter) Filter ¶
func (f *BoolFilter) Filter(val interface{}) bool
func (*BoolFilter) FilterOut ¶
func (f *BoolFilter) FilterOut() bool
func (*BoolFilter) Parse ¶
func (f *BoolFilter) Parse(operatorAndValues string) error
BoolFilter can support the following expressions values in <> are ignored field -> field=true not-field -> field=false field=true field=false field!=true field!=false
func (*BoolFilter) Value ¶
func (f *BoolFilter) Value() bool
type ContextFilter ¶
type ContextFilter struct {
// contains filtered or unexported fields
}
func NewContextFilter ¶
func NewContextFilter() *ContextFilter
func (*ContextFilter) Clone ¶
func (filter *ContextFilter) Clone() utils.Cloner
func (*ContextFilter) Disable ¶
func (filter *ContextFilter) Disable()
func (*ContextFilter) Enable ¶
func (filter *ContextFilter) Enable()
func (*ContextFilter) Enabled ¶
func (filter *ContextFilter) Enabled() bool
type Filter ¶
type Filter interface { utils.Cloner Filter(val interface{}) bool Parse(string) error Enable() Disable() Enabled() bool }
This is a generic representation 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 ¶
func NewIntFilter ¶
type ProcessTreeFilter ¶
type ProcessTreeFilter struct {
// contains filtered or unexported fields
}
func NewProcessTreeFilter ¶
func NewProcessTreeFilter() *ProcessTreeFilter
func (*ProcessTreeFilter) Clone ¶
func (f *ProcessTreeFilter) Clone() utils.Cloner
func (*ProcessTreeFilter) Disable ¶
func (f *ProcessTreeFilter) Disable()
func (*ProcessTreeFilter) Enable ¶
func (f *ProcessTreeFilter) Enable()
func (*ProcessTreeFilter) Enabled ¶
func (f *ProcessTreeFilter) Enabled() bool
func (*ProcessTreeFilter) Equalities ¶
func (f *ProcessTreeFilter) Equalities() ProcessTreeFilterEqualities
func (*ProcessTreeFilter) FilterOut ¶
func (f *ProcessTreeFilter) FilterOut() bool
func (*ProcessTreeFilter) Parse ¶
func (f *ProcessTreeFilter) Parse(operatorAndValues string) error
type RetFilter ¶
type RetFilter struct {
// contains filtered or unexported fields
}
func NewRetFilter ¶
func NewRetFilter() *RetFilter
type StringFilter ¶
type StringFilter struct {
// contains filtered or unexported fields
}
func NewStringFilter ¶
func NewStringFilter() *StringFilter
func (*StringFilter) Clone ¶
func (f *StringFilter) Clone() utils.Cloner
func (*StringFilter) Disable ¶
func (f *StringFilter) Disable()
func (*StringFilter) Enable ¶
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) Equalities ¶
func (f *StringFilter) Equalities() StringFilterEqualities
func (*StringFilter) Filter ¶
func (f *StringFilter) Filter(val interface{}) bool
func (*StringFilter) FilterOut ¶
func (f *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 StringFilterEqualities ¶
type UIntFilter ¶
type UIntFilter[T constraints.Unsigned] struct { // contains filtered or unexported fields }
func NewUInt32Filter ¶
func NewUInt32Filter() *UIntFilter[uint32]
func NewUIntFilter ¶
func NewUIntFilter() *UIntFilter[uint64]
func (*UIntFilter[T]) Clone ¶
func (f *UIntFilter[T]) Clone() utils.Cloner
func (*UIntFilter[T]) Disable ¶
func (f *UIntFilter[T]) Disable()
func (*UIntFilter[T]) Enable ¶
func (f *UIntFilter[T]) Enable()
func (*UIntFilter[T]) Enabled ¶
func (f *UIntFilter[T]) Enabled() bool
func (*UIntFilter[T]) Equalities ¶
func (f *UIntFilter[T]) Equalities() UIntFilterEqualities
func (*UIntFilter[T]) Filter ¶
func (f *UIntFilter[T]) Filter(val interface{}) bool
func (*UIntFilter[T]) FilterOut ¶
func (f *UIntFilter[T]) FilterOut() bool
func (UIntFilter[T]) InMinMaxRange ¶
func (f UIntFilter[T]) InMinMaxRange(val T) bool
func (*UIntFilter[T]) Maximum ¶
func (f *UIntFilter[T]) Maximum() uint64
func (*UIntFilter[T]) Minimum ¶
func (f *UIntFilter[T]) Minimum() uint64
func (*UIntFilter[T]) Parse ¶
func (f *UIntFilter[T]) Parse(operatorAndValues string) error