ipset

package
v0.0.0-...-365054f Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Exec = defaultExec

Exec activates given args

View Source
var (
	// SetTypeHashIP set type uses a hash to store IP addresses where clashing is resolved by storing the clashing elements in an array and, as a last resort, by dynamically growing the hash.
	SetTypeHashIP = SetType("hash:ip")
)

Functions

func OpCreate

func OpCreate(setName string, setType SetType, timeout time.Duration, netMask net.IPMask, hashSize int) []string

OpCreate is an operation which creates a new set.

func OpDelete

func OpDelete(setName string) []string

OpDelete is an operation which destroys a named set.

func OpIPAdd

func OpIPAdd(setName string, ip net.IP, ignoreExisting bool) []string

OpIPAdd is an operation which adds IP entry to the named set.

func OpIPRemove

func OpIPRemove(setName string, ip net.IP) []string

OpIPRemove is an operation which deletes IP entry from the named set.

func OpVersion

func OpVersion() []string

OpVersion is an operation which prints version information.

Types

type SetType

type SetType string

SetType defines type of IP set.

Jump to

Keyboard shortcuts

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