Documentation ¶
Index ¶
- func Add(setName, entry string, opts ...Option) (err error)
- func AddAddr(setName string, ip netip.Addr, opts ...Option) (err error)
- func AddPrefix(setName string, cidr netip.Prefix, opts ...Option) (err error)
- func Create(setName string, opts ...Option) (err error)
- func Del(setName, entry string) (err error)
- func DelAddr(setName string, ip netip.Addr) (err error)
- func DelPrefix(setName string, cidr netip.Prefix) (err error)
- func Destroy(setName string) (err error)
- func Flush(setName string) (err error)
- func Init() (err error)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Add ¶
Add adds an entry to the named set. entry could be: "1.1.1.1" or "192.168.1.0/24" or "2022::1" or "2022::1/32".
func Del ¶
Del deletes an entry from the named set. entry could be: "1.1.1.1" or "192.168.1.0/24" or "2022::1" or "2022::1/32".
Types ¶
Click to show internal directories.
Click to hide internal directories.