Refactor iptables usage in weave-npc to make it testable

This commit is contained in:
Mike Bryant committed 2017-07-14 14:45:41 +01:00
1 parent 90575278b0
commit c33cd2657c
4 files changed
+16 -9

No files matched your search

+7
View File
@@ -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
}