Improve documentation for Clear and AddTable methods in NFT interface.
This commit is contained in:
6
nft.go
6
nft.go
@@ -7,9 +7,15 @@ import (
|
||||
// NFT A client for working with nftables
|
||||
type NFT interface {
|
||||
// Clear clears all rules.
|
||||
//
|
||||
// This command is equivalent to:
|
||||
// nft flush ruleset
|
||||
Clear() error
|
||||
|
||||
// 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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user