10 строки
380 B
Go
10 строки
380 B
Go
package network
|
|
|
|
type ipTablesClient interface {
|
|
InsertIptableRule(version, tableName, chainName, match, target string) error
|
|
AppendIptableRule(version, tableName, chainName, match, target string) error
|
|
DeleteIptableRule(version, tableName, chainName, match, target string) error
|
|
CreateChain(version, tableName, chainName string) error
|
|
RunCmd(version, params string) error
|
|
}
|