1234567891011121314151617181920212223242526272829303132333435363738394041 |
- package network
- import (
- "github.com/flannel-io/flannel/pkg/ip"
- "github.com/flannel-io/flannel/subnet"
- )
- type IPTables interface {
- AppendUnique(table string, chain string, rulespec ...string) error
- Delete(table string, chain string, rulespec ...string) error
- Exists(table string, chain string, rulespec ...string) (bool, error)
- }
- type IPTablesRule struct {
- table string
- chain string
- rulespec []string
- }
- func MasqRules(ipn ip.IP4Net, lease *subnet.Lease) []IPTablesRule { return nil }
- func ForwardRules(flannelNetwork string) []IPTablesRule { return nil }
- func SetupAndEnsureIPTables(rules []IPTablesRule, resyncPeriod int) {}
- func DeleteIPTables(rules []IPTablesRule) error { return nil }
- func teardownIPTables(ipt IPTables, rules []IPTablesRule) {}
- func SetupAndEnsureIP6Tables(rules []IPTablesRule, resyncPeriod int) {}
- func MasqIP6Rules(ipn ip.IP6Net, lease *subnet.Lease) []IPTablesRule { return nil }
- func DeleteIP6Tables(rules []IPTablesRule) error { return nil }
|