Documentation
¶
Index ¶
- type Chain
- type Conn
- func (cc *Conn) AddChain(c *Chain) *Chain
- func (cc *Conn) AddRule(r *Rule) *Rule
- func (cc *Conn) AddSet(s *Set, elems []nftables.SetElement) error
- func (cc *Conn) AddTable(t *Table) *Table
- func (c *Conn) CloseLasting() error
- func (cc *Conn) DelChain(c *Chain)
- func (cc *Conn) DelRule(r *Rule) error
- func (cc *Conn) DelSet(s *Set)
- func (c *Conn) Flush() error
- func (cc *Conn) FlushTable(t *Table)
- func (cc *Conn) InsertRule(r *Rule) *Rule
- func (cc *Conn) SetAddElements(s *Set, vals []nftables.SetElement) error
- func (cc *Conn) SetDeleteElements(s *Set, vals []nftables.SetElement) error
- type Rule
- type Set
- type Table
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func (*Conn) CloseLasting ¶
func (*Conn) FlushTable ¶
func (*Conn) InsertRule ¶
func (*Conn) SetAddElements ¶
func (cc *Conn) SetAddElements(s *Set, vals []nftables.SetElement) error
func (*Conn) SetDeleteElements ¶
func (cc *Conn) SetDeleteElements(s *Set, vals []nftables.SetElement) error
type Set ¶
type Set struct { Table *Table Name string Anonymous bool Constant bool Interval bool IsMap bool HasTimeout bool Counter bool // Can be updated per evaluation path, per `nft list ruleset` // indicates that set contains "flags dynamic" // https://git.netfilter.org/libnftnl/tree/include/linux/netfilter/nf_tables.h?id=84d12cfacf8ddd857a09435f3d982ab6250d250c#n298 Dynamic bool // Indicates that the set contains a concatenation // https://git.netfilter.org/nftables/tree/include/linux/netfilter/nf_tables.h?id=d1289bff58e1878c3162f574c603da993e29b113#n306 Concatenation bool Timeout time.Duration KeyType nftables.SetDatatype KeyType6 nftables.SetDatatype DataType nftables.SetDatatype DataType6 nftables.SetDatatype // Either host (binaryutil.NativeEndian) or big (binaryutil.BigEndian) endian as per // https://git.netfilter.org/nftables/tree/include/datatype.h?id=d486c9e626405e829221b82d7355558005b26d8a#n109 KeyByteOrder binaryutil.ByteOrder // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.