Commit Graph

12 Commits

Author SHA1 Message Date
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 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 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
kor-elf 2ac9272293 Add Rule API for managing nftables rules, including Add, Insert, Replace, and Delete operations 2025-10-22 22:43:33 +05:00
kor-elf 90b232aa05 Add Command method to NFT interface and RunWithOutput support to command package 2025-10-22 20:59:49 +05:00
kor-elf e7e53fc123 Add Chain API for managing nftables chains, including Add, Create, Delete, Clear, and Rename operations. 2025-10-22 20:56:46 +05:00
kor-elf 9210448f16 Add Version method to NFT interface and implementation
Include `RunWithOutput` support in the command package and introduce version parsing logic, enabling retrieval of the nftables version and options.
2025-10-20 22:44:40 +05:00
kor-elf c3a513f92c Improve documentation for API interface in table package. 2025-10-19 22:54:04 +05:00
kor-elf 5b19993343 Refactor table management to use a dedicated API and improve command handling. 2025-10-19 22:50:14 +05:00