Documentation ¶
Index ¶
- type Cli
- func (c *Cli) AppendBlacklist(clientIP string) (string, error)
- func (c *Cli) AppendWhitelist(clientIP string) (string, error)
- func (c *Cli) DropBucketByIP(key string) (string, error)
- func (c *Cli) DropBucketByLogin(key string) (string, error)
- func (c *Cli) DropBucketByPwd(key string) (string, error)
- func (c *Cli) RemoveBlacklist(clientIP string) (string, error)
- func (c *Cli) RemoveWhitelist(clientIP string) (string, error)
- func (c *Cli) ShowBlacklist() (string, error)
- func (c *Cli) ShowWhitelist() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cli ¶
type Cli struct {
// contains filtered or unexported fields
}
Cli - cli api.
func (*Cli) AppendBlacklist ¶
AppendBlacklist add ip/subnet to blacklist.
func (*Cli) AppendWhitelist ¶
AppendWhitelist add ip/subnet to whitelist.
func (*Cli) DropBucketByIP ¶
DropBucketByIP remove bucket by IP.
func (*Cli) DropBucketByLogin ¶
DropBucketByLogin remove bucket by login.
func (*Cli) DropBucketByPwd ¶
DropBucketByPwd remove bucket by password.
func (*Cli) RemoveBlacklist ¶
RemoveBlacklist remove ip/subnet from blacklist.
func (*Cli) RemoveWhitelist ¶
RemoveWhitelist - remove ip/subnet from whitelist.
func (*Cli) ShowBlacklist ¶
ShowBlacklist show blacklist.
func (*Cli) ShowWhitelist ¶
ShowWhitelist show whitelist.
Click to show internal directories.
Click to hide internal directories.