Documentation ¶
Index ¶
- func ParseFieldFilterList(filters string) ([]*tetragon.FieldFilter, error)
- type FieldFilter
- func FieldFilterFromProto(filter *tetragon.FieldFilter) (*FieldFilter, error)
- func FieldFiltersFromGetEventsRequest(request *tetragon.GetEventsRequest) ([]*FieldFilter, error)
- func NewExcludeFieldFilter(eventSet []tetragon.EventType, fields []string, invertEventSet bool) (*FieldFilter, error)
- func NewFieldFilter(eventSet []tetragon.EventType, fields []string, ...) (*FieldFilter, error)
- func NewIncludeFieldFilter(eventSet []tetragon.EventType, fields []string, invertEventSet bool) (*FieldFilter, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseFieldFilterList ¶
func ParseFieldFilterList(filters string) ([]*tetragon.FieldFilter, error)
Types ¶
type FieldFilter ¶
type FieldFilter struct {
// contains filtered or unexported fields
}
FieldFilter is a helper for filtering fields in events
func FieldFilterFromProto ¶
func FieldFilterFromProto(filter *tetragon.FieldFilter) (*FieldFilter, error)
FieldFilterFromProto constructs a new FieldFilter from a Tetragon API field filter.
func FieldFiltersFromGetEventsRequest ¶
func FieldFiltersFromGetEventsRequest(request *tetragon.GetEventsRequest) ([]*FieldFilter, error)
FieldFiltersFromGetEventsRequest returns a list of EventFieldFilter for a GetEventsRequest.
nolint:revive // revive complains about stutter
func NewExcludeFieldFilter ¶
func NewExcludeFieldFilter(eventSet []tetragon.EventType, fields []string, invertEventSet bool) (*FieldFilter, error)
NewExcludeFieldFilter constructs a new exclusion FieldFilter from a set of fields.
func NewFieldFilter ¶
func NewFieldFilter(eventSet []tetragon.EventType, fields []string, action tetragon.FieldFilterAction, invertEventSet bool) (*FieldFilter, error)
NewFieldFilter constructs a new FieldFilter from a set of fields.
func NewIncludeFieldFilter ¶
func NewIncludeFieldFilter(eventSet []tetragon.EventType, fields []string, invertEventSet bool) (*FieldFilter, error)
NewIncludeFieldFilter constructs a new inclusion FieldFilter from a set of fields.
func (*FieldFilter) Filter ¶
func (f *FieldFilter) Filter(event *tetragon.GetEventsResponse) (*tetragon.GetEventsResponse, error)
Filter filters the fields in the GetEventsResponse, keeping fields specified in the inclusion filter and discarding fields specified in the exclusion filter. Exclusion takes precedence over inclusion and an empty filter set will keep all remaining fields.