Documentation
¶
Index ¶
- func GetSetsStartingWith(name string) (map[string]*IPSet, error)
- type CreateOptions
- type IPSet
- func (i *IPSet) Add(entry string) error
- func (i *IPSet) Create(opts CreateOptions) error
- func (i *IPSet) DeleteEntry(entry string) error
- func (i *IPSet) Destroy() error
- func (i *IPSet) Exists() bool
- func (i *IPSet) Flush() error
- func (i *IPSet) Len() int
- func (i *IPSet) List() ([]string, error)
- func (i *IPSet) Name() string
- func (i *IPSet) Rename(toSetName string) error
- func (i *IPSet) Restore(filename string) error
- func (i *IPSet) Save() ([]string, error)
- func (i *IPSet) Swap(toSetName string) error
- func (i *IPSet) Test(entry string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreateOptions ¶
type IPSet ¶
type IPSet struct {
// contains filtered or unexported fields
}
func (*IPSet) Create ¶
func (i *IPSet) Create(opts CreateOptions) error
Wraps all the ipset commands.
func (*IPSet) DeleteEntry ¶
Click to show internal directories.
Click to hide internal directories.