Версия 0.1.0 #1

Merged
kor-elf merged 15 commits from develop into main 2025-10-22 23:10:42 +05:00
2 changed files with 11 additions and 0 deletions
Showing only changes of commit 90b232aa05 - Show all commits

View File

@@ -6,7 +6,10 @@ import (
)
type NFT interface {
// Run nft command.
Run(arg ...string) error
// RunWithOutput Run nft command with output.
RunWithOutput(arg ...string) (string, error)
}

8
nft.go
View File

@@ -12,6 +12,10 @@ import (
// NFT A client for working with nftables
type NFT interface {
// Command returns the command used to execute nft.
// You can execute your raw request.
Command() command.NFT
// Clear clears all rules.
//
// This command is equivalent to:
@@ -111,3 +115,7 @@ func (n *nft) Table() table.API {
func (n *nft) Chain() chain.API {
return n.chain
}
func (n *nft) Command() command.NFT {
return n.command
}