Versions in this module Expand all Collapse all v0 v0.10.3 Apr 26, 2024 v0.10.2 Mar 22, 2024 v0.10.1 Nov 7, 2023 v0.10.0 Oct 31, 2023 Changes in this version + const DefaultPortRange + const IPSetCmd + const ProtocolFamilyIPV4 + const ProtocolFamilyIPV6 + const ProtocolSCTP + const ProtocolTCP + const ProtocolUDP + var EntryMemberPattern = "(?m)^(.*\n)*Members:\n" + var ValidIPSetTypes = []Type + var VersionPattern = "v[0-9]+\\.[0-9]+" + func IsNotFoundError(err error) bool + type Entry struct + IP string + IP2 string + Net string + Port int + Protocol string + SetType Type + func (e *Entry) String() string + func (e *Entry) Validate(set *IPSet) bool + type IPSet struct + Comment string + HashFamily string + HashSize int + MaxElem int + Name string + PortRange string + SetType Type + func (set *IPSet) Validate() error + type Interface interface + AddEntry func(entry string, set *IPSet, ignoreExistErr bool) error + CreateSet func(set *IPSet, ignoreExistErr bool) error + DelEntry func(entry string, set string) error + DestroyAllSets func() error + DestroySet func(set string) error + FlushSet func(set string) error + GetVersion func() (string, error) + ListEntries func(set string) ([]string, error) + ListSets func() ([]string, error) + TestEntry func(entry string, set string) (bool, error) + func New(exec utilexec.Interface) Interface + type Type string + const BitmapPort + const HashIP + const HashIPPort + const HashIPPortIP + const HashIPPortNet