Documentation
¶
Index ¶
- type ChainNamer
- type NetIn
- type NetOut
- func (m *NetOut) BulkInsertRules(containerHandle string, netOutRules []garden.NetOutRule, containerIP string) error
- func (m *NetOut) Cleanup(containerHandle string) error
- func (m *NetOut) Initialize(logger lager.Logger, containerHandle string, containerIP net.IP, ...) error
- func (m *NetOut) InsertRule(containerHandle string, rule garden.NetOutRule, containerIP string) error
- type NetOutRuleConverter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainNamer ¶
type ChainNamer struct {
MaxLength int
}
func (*ChainNamer) Postfix ¶ added in v0.7.0
func (n *ChainNamer) Postfix(body, suffix string) (string, error)
func (*ChainNamer) Prefix ¶ added in v0.7.0
func (n *ChainNamer) Prefix(prefix, body string) string
type NetIn ¶
type NetIn struct { ChainNamer chainNamer IPTables rules.IPTablesAdapter }
func (*NetIn) Initialize ¶
type NetOut ¶
type NetOut struct { ChainNamer chainNamer IPTables rules.IPTablesAdapter Converter netOutRuleConverter }
func (*NetOut) BulkInsertRules ¶ added in v0.7.0
func (*NetOut) Initialize ¶
func (*NetOut) InsertRule ¶
type NetOutRuleConverter ¶ added in v0.7.0
type NetOutRuleConverter struct { }
func (*NetOutRuleConverter) BulkConvert ¶ added in v0.7.0
func (c *NetOutRuleConverter) BulkConvert(netOutRules []garden.NetOutRule, containerIP, logChainName string) []rules.IPTablesRule
func (*NetOutRuleConverter) Convert ¶ added in v0.7.0
func (c *NetOutRuleConverter) Convert(rule garden.NetOutRule, containerIP, logChainName string) []rules.IPTablesRule
Click to show internal directories.
Click to hide internal directories.