Версия 0.1.0 #1
6
nft.go
6
nft.go
@@ -7,9 +7,15 @@ import (
|
|||||||
// NFT A client for working with nftables
|
// NFT A client for working with nftables
|
||||||
type NFT interface {
|
type NFT interface {
|
||||||
// Clear clears all rules.
|
// Clear clears all rules.
|
||||||
|
//
|
||||||
|
// This command is equivalent to:
|
||||||
|
// nft flush ruleset
|
||||||
Clear() error
|
Clear() error
|
||||||
|
|
||||||
// AddTable adds a new table.
|
// AddTable adds a new table.
|
||||||
|
//
|
||||||
|
// This command is equivalent to:
|
||||||
|
// nft add table (ip|ip6|inet|arp|bridge) {name}
|
||||||
AddTable(family FamilyType, name string) error
|
AddTable(family FamilyType, name string) error
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user