Documentation
¶
Index ¶
- type IPSet
- type IPSetLinux
- func (i *IPSetLinux) AddAddr(name string, addr netip.Addr, ttl time.Duration) error
- func (i *IPSetLinux) AddPrefix(name string, prefix netip.Prefix, ttl time.Duration) error
- func (i *IPSetLinux) Close() error
- func (i *IPSetLinux) Create(name string, ttl time.Duration) error
- func (i *IPSetLinux) DelAddr(name string, addr netip.Addr) error
- func (i *IPSetLinux) DelPrefix(name string, prefix netip.Prefix) error
- func (i *IPSetLinux) Destroy(name string) error
- func (i *IPSetLinux) Flushall(name string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPSet ¶
type IPSet interface {
Create(name string, ttl time.Duration) error
Close() error
AddAddr(name string, addr netip.Addr, ttl time.Duration) error
AddPrefix(name string, prefix netip.Prefix, ttl time.Duration) error
DelAddr(name string, addr netip.Addr) error
DelPrefix(name string, prefix netip.Prefix) error
Flushall(name string) error
Destroy(name string) error
}
type IPSetLinux ¶
type IPSetLinux struct {
// contains filtered or unexported fields
}
func (*IPSetLinux) Close ¶
func (i *IPSetLinux) Close() error
func (*IPSetLinux) DelPrefix ¶
func (i *IPSetLinux) DelPrefix(name string, prefix netip.Prefix) error
func (*IPSetLinux) Destroy ¶
func (i *IPSetLinux) Destroy(name string) error
func (*IPSetLinux) Flushall ¶
func (i *IPSetLinux) Flushall(name string) error
Click to show internal directories.
Click to hide internal directories.