ipset

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ListSet = Type("list:set")
	HashIP  = Type("hash:ip")
	HashNet = Type("hash:net")

	DestroyRetrySleepMs = 100
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Create(ipsetName Name, ipsetType Type) error
	AddEntry(user UID, ipsetName Name, entry string, comment string) error
	DelEntry(user UID, ipsetName Name, entry string) error
	EntryExists(user UID, ipsetName Name, entry string) bool
	Exists(ipsetName Name) (bool, error)
	Flush(ipsetName Name) error
	Destroy(ipsetName Name) error

	List(prefix string) ([]Name, error)

	FlushAll() error
	DestroyAll() error
}

func New

func New(logger *log.Logger, maxListSize int) Interface

type Name

type Name string

type Type

type Type string

type UID

type UID string

Jump to

Keyboard shortcuts

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