Documentation ¶
Index ¶
- type Client
- func (c *Client) AddEntry(name string, entry string) error
- func (c *Client) CreateIPSet(name string, setType SetType, isIPv6 bool) error
- func (c *Client) DelEntry(name string, entry string) error
- func (c *Client) DestroyIPSet(name string) error
- func (c *Client) ListEntries(name string) ([]string, error)
- type Interface
- type SetType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v1.7.3
type Client struct{}
func (*Client) AddEntry ¶ added in v1.7.3
AddEntry adds a new entry to the set, it will ignore error when the entry already exists.
func (*Client) CreateIPSet ¶ added in v1.7.3
CreateIPSet creates a new set, it will ignore error when the set already exists.
func (*Client) DelEntry ¶ added in v1.7.3
DelEntry deletes the entry from the set, it will ignore error when the entry doesn't exist.
func (*Client) DestroyIPSet ¶ added in v1.15.0
Click to show internal directories.
Click to hide internal directories.