Documentation
¶
Index ¶
- type IPTables
- type IPTablesError
- type IPTablesManager
- func (iptm *IPTablesManager) CreateIP4Chain(table, chain string)
- func (iptm *IPTablesManager) CreateIP6Chain(table, chain string)
- func (iptm *IPTablesManager) Init(ctx context.Context, wg *sync.WaitGroup) error
- func (iptm *IPTablesManager) SetupAndEnsureForwardRules(ctx context.Context, flannelIPv4Network ip.IP4Net, ...)
- func (iptm *IPTablesManager) SetupAndEnsureMasqRules(ctx context.Context, flannelIPv4Net, prevSubnet, prevNetwork ip.IP4Net, ...) error
- type IPTablesRestore
- type IPTablesRestoreRuleSpec
- type IPTablesRestoreRules
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPTables ¶
type IPTables interface { AppendUnique(table string, chain string, rulespec ...string) error ChainExists(table, chain string) (bool, error) ClearChain(table, chain string) error Delete(table string, chain string, rulespec ...string) error Exists(table string, chain string, rulespec ...string) (bool, error) }
type IPTablesError ¶
type IPTablesManager ¶
type IPTablesManager struct {
// contains filtered or unexported fields
}
func (*IPTablesManager) CreateIP4Chain ¶
func (iptm *IPTablesManager) CreateIP4Chain(table, chain string)
func (*IPTablesManager) CreateIP6Chain ¶
func (iptm *IPTablesManager) CreateIP6Chain(table, chain string)
func (*IPTablesManager) SetupAndEnsureForwardRules ¶
type IPTablesRestore ¶
type IPTablesRestore interface { // ApplyWithoutFlush apply without flush chains ApplyWithoutFlush(rules IPTablesRestoreRules) error }
IPTablesRestore wrapper for iptables-restore
func NewIPTablesRestoreWithProtocol ¶
func NewIPTablesRestoreWithProtocol(protocol iptables.Protocol) (IPTablesRestore, error)
NewIPTablesRestoreWithProtocol build new IPTablesRestore for supplied proto
type IPTablesRestoreRuleSpec ¶
type IPTablesRestoreRuleSpec []string
IPTablesRestoreRuleSpec represents one rule spec delimited by space
type IPTablesRestoreRules ¶
type IPTablesRestoreRules map[string][]IPTablesRestoreRuleSpec
IPTablesRestoreRules represents iptables-restore table block
Click to show internal directories.
Click to hide internal directories.