Documentation ¶
Index ¶
Constants ¶
View Source
const ( ListSet = Type("list:set") HashIP = Type("hash:ip") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { Create(ipsetName Name, ipsetType Type) error AddEntry(ipsetName Name, entry string, comment string) error AddEntryIfNotExist(ipsetName Name, entry string, comment string) error DelEntry(ipsetName Name, entry string) error DelEntryIfExists(ipsetName Name, entry string) error Exist(ipsetName Name, entry string) bool Flush(ipsetName Name) error Destroy(ipsetName Name) error List(prefix string) ([]Name, error) FlushAll() error DestroyAll() error }
Click to show internal directories.
Click to hide internal directories.