filter

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFilter

func NewFilter(fs ...Filter) (f *protocol.Filter, err error)

NewFilter creates a new filter based on the supplied string representations

func ParseFactFilterString

func ParseFactFilterString(f string) (pf *protocol.FactFilter, err error)

ParseFactFilterString parses a fact filter string as typically typed on the CLI

Types

type Filter

type Filter func(f *protocol.Filter) error

Filter is a function that represents a specific filter in string form

func AgentFilter

func AgentFilter(f ...string) Filter

AgentFilter processes a series of strings as agent filters

func ClassFilter

func ClassFilter(f ...string) Filter

ClassFilter processes a series of strings as agent filters

func CombinedFilter

func CombinedFilter(f ...string) Filter

CombinedFilter processes a series of strings as combined fact and class filters

func CompoundFilter

func CompoundFilter(f ...string) Filter

CompoundFilter processes a series of strings as compound filters

func FactFilter

func FactFilter(f ...string) Filter

FactFilter processes a series of strings as fact filters

func IdentityFilter

func IdentityFilter(f ...string) Filter

IdentityFilter processes a series of strings as identity filters

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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