base_ip

package
v5.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	IPs    []string `yaml:"ips"`
	IPSets []string `yaml:"ip_sets"`
	Files  []string `yaml:"files"`
}

func ParseQuickSetupArgs

func ParseQuickSetupArgs(s string) *Args

ParseQuickSetupArgs parses expressions and "ip_set"s to args. Format: "([ip] | [$ip_set_tag] | [&ip_list_file])..."

type MatchFunc

type MatchFunc func(qCtx *query_context.Context, m netlist.Matcher) (bool, error)

type Matcher

type Matcher struct {
	// contains filtered or unexported fields
}

func NewMatcher

func NewMatcher(bq sequence.BQ, args *Args, f MatchFunc) (m *Matcher, err error)

func (*Matcher) Match

func (m *Matcher) Match(_ context.Context, qCtx *query_context.Context) (matched bool, err error)

Jump to

Keyboard shortcuts

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