ip_set

package
v5.0.0-alpha.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const PluginType = "ip_set"

Variables

This section is empty.

Functions

func Init

func Init(bp *coremain.BP, args interface{}) (coremain.Plugin, error)

func LoadFromFile

func LoadFromFile(f FileArgs, l *netlist.List) error

func LoadFromFiles

func LoadFromFiles(fs []FileArgs, l *netlist.List) error

func LoadFromIPs

func LoadFromIPs(ips []string, l *netlist.List) error

func LoadFromIPsAndFiles

func LoadFromIPsAndFiles(ips []string, fs []FileArgs, l *netlist.List) error

Types

type Args

type Args struct {
	IPs   []string   `yaml:"ips"`
	Sets  []string   `yaml:"sets"`
	Files []FileArgs `yaml:"files"`
}

type FileArgs

type FileArgs struct {
	Path string `yaml:"path"`
	Type string `yaml:"type"`
	Args string `yaml:"args"`
}

type IPSet

type IPSet struct {
	*coremain.BP
	// contains filtered or unexported fields
}

func NewIPSet

func NewIPSet(bp *coremain.BP, args *Args) (*IPSet, error)

func (*IPSet) GetIPSet

func (d *IPSet) GetIPSet() netlist.Matcher

type IPSetProvider

type IPSetProvider interface {
	GetIPSet() netlist.Matcher
}

Jump to

Keyboard shortcuts

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