fail2ban_client

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BanEntry

type BanEntry struct {
	Address       string
	BannedAt      time.Time
	CurrenPenalty string
	BanEndsAt     time.Time
	JailName      string
	CountryCode   string
}

type Fail2BanClient

type Fail2BanClient struct {
	// contains filtered or unexported fields
}

func NewFail2BanClient

func NewFail2BanClient(address string) (*Fail2BanClient, error)

func (*Fail2BanClient) GetBanned

func (f2bc *Fail2BanClient) GetBanned(jailName string) (*JailEntry, error)

func (*Fail2BanClient) GetJailInfo added in v0.5.0

func (f2bc *Fail2BanClient) GetJailInfo(jailName string) (*JailInfo, error)

func (*Fail2BanClient) GetJailNames

func (f2bc *Fail2BanClient) GetJailNames() ([]string, error)

func (*Fail2BanClient) GetVersion

func (f2bc *Fail2BanClient) GetVersion() (string, error)

type JailEntry

type JailEntry struct {
	Name          string
	BannedEntries []*BanEntry
}

type JailInfo added in v0.5.0

type JailInfo struct {
	CurrentlyFailed int
	TotalFailed     int
	CurrentlyBanned int
	TotalBanned     int
}

type Py_builtins_str

type Py_builtins_str struct{}

func (Py_builtins_str) Call

func (c Py_builtins_str) Call(args ...interface{}) (interface{}, error)

Jump to

Keyboard shortcuts

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