conf

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListerFromConn

func ListerFromConn(c *nftlib.Conn) listerFromConn

ListerFromConn -

Types

type Lister

type Lister interface {
	ListTables() ([]*nftlib.Table, error)
	ListChains() ([]*nftlib.Chain, error)
	GetSets(*nftlib.Table) ([]*nftlib.Set, error)
	GetObjects(*nftlib.Table) ([]nftlib.Obj, error)
	GetSetElements(*nftlib.Set) ([]nftlib.SetElement, error)
	GetRules(*nftlib.Chain) ([]*nftlib.Rule, error)
}

Lister -

type NfChain

type NfChain struct {
	*nftlib.Chain
	Rules []*nftlib.Rule
}

NfChain -

type NfChainKey

type NfChainKey struct {
	ChainType nftlib.ChainType
	Name      string
}

NfChainKey -

func (NfChainKey) String

func (k NfChainKey) String() string

String -

type NfSet

type NfSet struct {
	*nftlib.Set
	Elements []nftlib.SetElement
}

NfSet -

type NfTableKey

type NfTableKey struct {
	nftlib.TableFamily
	Name string
}

NfTableKey -

func (NfTableKey) String

func (k NfTableKey) String() string

String -

type StateOfNFTables

type StateOfNFTables struct {
	Tables  dkt.HDict[NfTableKey, *nftlib.Table]
	Sets    dkt.HDict[NfTableKey, dkt.HDict[string, NfSet]]
	Chains  dkt.HDict[NfTableKey, dkt.HDict[NfChainKey, NfChain]]
	Objects dkt.HDict[NfTableKey, []nftlib.Obj]
}

StateOfNFTables -

func LoadState

func LoadState(lst Lister) (cnf StateOfNFTables, err error)

LoadState -

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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