cli

package
v0.0.0-...-fef60ef Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

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 NewCli

func NewCli(cfg config.AppConfig) *Cli

NewCli - create new instance of Cli.

func (*Cli) AppendBlacklist

func (c *Cli) AppendBlacklist(clientIP string) (string, error)

AppendBlacklist add ip/subnet to blacklist.

func (*Cli) AppendWhitelist

func (c *Cli) AppendWhitelist(clientIP string) (string, error)

AppendWhitelist add ip/subnet to whitelist.

func (*Cli) DropBucketByIP

func (c *Cli) DropBucketByIP(key string) (string, error)

DropBucketByIP remove bucket by IP.

func (*Cli) DropBucketByLogin

func (c *Cli) DropBucketByLogin(key string) (string, error)

DropBucketByLogin remove bucket by login.

func (*Cli) DropBucketByPwd

func (c *Cli) DropBucketByPwd(key string) (string, error)

DropBucketByPwd remove bucket by password.

func (*Cli) RemoveBlacklist

func (c *Cli) RemoveBlacklist(clientIP string) (string, error)

RemoveBlacklist remove ip/subnet from blacklist.

func (*Cli) RemoveWhitelist

func (c *Cli) RemoveWhitelist(clientIP string) (string, error)

RemoveWhitelist - remove ip/subnet from whitelist.

func (*Cli) ShowBlacklist

func (c *Cli) ShowBlacklist() (string, error)

ShowBlacklist show blacklist.

func (*Cli) ShowWhitelist

func (c *Cli) ShowWhitelist() (string, error)

ShowWhitelist show whitelist.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL