Documentation ¶
Index ¶
- Variables
- func OpCreate(setName string, setType SetType, timeout time.Duration, netMask net.IPMask, ...) []string
- func OpDelete(setName string) []string
- func OpIPAdd(setName string, ip net.IP, ignoreExisting bool) []string
- func OpIPRemove(setName string, ip net.IP) []string
- func OpVersion() []string
- type SetType
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 OpIPRemove ¶
OpIPRemove is an operation which deletes IP entry from the named set.
Types ¶
Click to show internal directories.
Click to hide internal directories.