Refactor iptables usage in weave-npc to make it testable
This commit is contained in:
1 parent
90575278b0
commit
c33cd2657c
4 files changed
+16
-9
No files matched your search
@@ -0,0 +1,7 @@
|
||||
package iptables
|
||||
|
||||
type Interface interface {
|
||||
Append(table, chain string, rulespec ...string) error
|
||||
Delete(table, chain string, rulespec ...string) error
|
||||
Insert(table, chain string, pos int, rulespec ...string) error
|
||||
}
|
||||
Reference in new issue
Block a user