Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArgType ¶
type ArgType uint8
ArgType is the type alias for the argument value type.
const ( // String represents the string argument type. String ArgType = iota // IP represents the IP argument type. IP // Field represents the argument type that is derived // from the field literal. Field literal values can // be simple primitive types. Field // Unknown is the unknown argument type. Unknown )
type CIDRContains ¶
type CIDRContains struct{}
CIDRContains determines if the specified IP is contained within the block referenced by the given CIDR mask. The first argument in the slice represents the IP address and the rest of the args represents IP addresses in CIDR notation.
func (CIDRContains) Call ¶
func (f CIDRContains) Call(args []interface{}) (interface{}, bool)
func (CIDRContains) Desc ¶
func (f CIDRContains) Desc() FunctionDesc
func (CIDRContains) Name ¶
func (f CIDRContains) Name() Fn
type FunctionArgDesc ¶
FunctionArgDesc described each function argument.
func (FunctionArgDesc) ContainsType ¶
func (arg FunctionArgDesc) ContainsType(typ ArgType) bool
ContainsType returns true if the argument satisfies the given argument type.
type FunctionDesc ¶
type FunctionDesc struct { Name Fn Args []FunctionArgDesc }
FunctionDesc contains the function signature that particular filter function has to satisfy.
func (FunctionDesc) RequiredArgs ¶
func (f FunctionDesc) RequiredArgs() int
RequiredArgs returns the number of the required function args.
Click to show internal directories.
Click to hide internal directories.