Improve documentation for Clear and AddTable methods in NFT interface.

This commit is contained in:
2025-10-19 19:55:42 +05:00
parent f5b1888420
commit 7cd41f8491

6
nft.go
View File

@@ -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
} }