Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MasqueradeConfigSet = Set{ false, "Masquerade", nil, }
View Source
var PolicyRoutingConfigSet = Set{ false, "PolicyRouting", nil, }
Functions ¶
This section is empty.
Types ¶
type IPRouteConfig ¶
type IPRouteConfig struct {
Route netlink.Route
RouteAdd RouteAdder
RouteDel RouteDeler
}
func (IPRouteConfig) Ensure ¶
func (r IPRouteConfig) Ensure(enabled bool) error
type IPRuleConfig ¶
type IPRuleConfig struct {
Rule netlink.Rule
RuleAdd RuleAdder
RuleDel RuleDeler
RuleList RuleLister
}
func (IPRuleConfig) Ensure ¶
func (r IPRuleConfig) Ensure(enabled bool) error
type IPTablesChainSpec ¶ added in v0.1.2
type IPTablesRuleConfig ¶
type IPTablesRuleConfig struct {
Spec IPTablesChainSpec
RuleSpecs []IPTablesRuleSpec
IPT IPTabler
}
func (IPTablesRuleConfig) Ensure ¶
func (r IPTablesRuleConfig) Ensure(enabled bool) error
type IPTablesRuleSpec ¶ added in v0.1.2
type IPTablesRuleSpec []string
type RouteAdder ¶ added in v0.1.3
type RouteDeler ¶ added in v0.1.3
type SysctlConfig ¶
func (SysctlConfig) Ensure ¶
func (s SysctlConfig) Ensure(enabled bool) error
Click to show internal directories.
Click to hide internal directories.