Help us shape the future of Go! Take the 2026 Go Developer Survey

toolbox

package
v1.9.6 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fail2ban

type Fail2ban struct{}

func NewFail2Ban

func NewFail2Ban() (*Fail2ban, error)

func (*Fail2ban) ListBanned

func (f *Fail2ban) ListBanned() ([]string, error)

func (*Fail2ban) ListIgnore

func (f *Fail2ban) ListIgnore() ([]string, error)

func (*Fail2ban) Operate

func (f *Fail2ban) Operate(operate string) error

func (*Fail2ban) ReBanIPs

func (f *Fail2ban) ReBanIPs(ips []string) error

func (*Fail2ban) Status

func (f *Fail2ban) Status() (bool, bool, bool)

func (*Fail2ban) Version

func (f *Fail2ban) Version() string

type FirewallClient

type FirewallClient interface {
	Status() (bool, bool, bool, error)
	Version() (string, error)
	Operate(operate string) error
	OperateSSHD(operate, ip string) error
}

Jump to

Keyboard shortcuts

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