v0.2.0 #3

Merged
kor-elf merged 22 commits from develop into main 2026-04-26 16:50:47 +05:00

22 Commits

Author SHA1 Message Date
kor-elf 7ae37d00ae Add batch commands support and usage example in README 2026-04-26 16:48:51 +05:00
kor-elf 692ba5fba0 Add Command method to BatchBuilder interface and implementation 2026-04-26 16:27:46 +05:00
kor-elf 2037ac6034 Add rule implementation with Add, Insert, Replace, and Delete methods 2026-04-26 16:13:09 +05:00
kor-elf 8d9c3e7f7b Refactor rule commands to use nftCommand utilities for improved code reuse 2026-04-26 16:12:24 +05:00
kor-elf bc00e46865 Add chain implementation with Add, Create, Delete, Clear, and Rename methods 2026-04-26 16:05:58 +05:00
kor-elf 7dc8436ad8 Refactor chain commands to use nftCommand utilities for improved code reuse 2026-04-26 16:05:16 +05:00
kor-elf 8fdecbcd8d Add table implementation with Add, Delete, and Clear methods 2026-04-26 15:59:53 +05:00
kor-elf a56dcc2952 Switch to fmt.Sprintf for appending a newline in CommandRun for consistency 2026-04-26 15:58:38 +05:00
kor-elf fedf0966bc Refactor table commands to use nftCommand utilities for improved code reuse 2026-04-26 15:47:48 +05:00
kor-elf 04b70ce5ec BatchBuilder implements the Clear method 2026-04-26 15:40:47 +05:00
kor-elf 7d6dcf1ece Refactor Clear method to use nftCommand.Clear for improved code reuse 2026-04-26 15:38:05 +05:00
kor-elf 8fb0306b1b Switch from fmt.Sprintf to strings.Join for writing arguments in CommandRun 2026-04-26 15:37:17 +05:00
kor-elf 9cd17572b2 Add BatchBuilder for constructing and managing nftables batch commands 2026-04-26 15:28:17 +05:00
kor-elf 6d62b280a1 Add Batch implementation with Args, Check, Close, and MoveFile methods 2026-04-26 15:27:31 +05:00
kor-elf 53d8854ab4 Add CommandRun implementation for executing batch commands 2026-04-26 15:27:11 +05:00
kor-elf 321f24e915 Add File utility to create, write, move, and remove temporary files 2026-04-26 15:26:47 +05:00
kor-elf b36479c0ae Extend Batch interface with Close, Check, and MoveFile methods for enhanced functionality 2026-04-26 15:26:15 +05:00
kor-elf c4bd51d9bc Refactor Command interface to embed CommandRun for improved structure and consistency 2026-04-26 15:25:50 +05:00
kor-elf 94405fbb53 Add ExecuteBatchAfterCheck method to NFT interface for pre-checking and executing batch commands 2026-04-26 15:25:15 +05:00
kor-elf 70e6335e59 Add ExecuteBatch method to NFT interface for batch command execution 2026-04-22 23:35:19 +05:00
kor-elf a7ec170096 Add Batch API for building and executing batched nftables commands. 2026-04-22 23:34:43 +05:00
kor-elf 3c47e7566b Refactor to consolidate APIs into contract package and introduce NFT interface for better modularity and maintainability. 2026-04-22 21:54:59 +05:00