Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PolicyRoutingConfigSet = Set{ false, "PolicyRouting", nil, }
PolicyRoutingConfigSet defines the Policy Routing rules
Functions ¶
This section is empty.
Types ¶
type IPRouteConfig ¶
IPRouteConfig defines route config
func (IPRouteConfig) Ensure ¶
func (r IPRouteConfig) Ensure(enabled bool) error
Ensure IPRouteConfig
type IPRuleConfig ¶
type IPRuleConfig struct { Rule netlink.Rule RuleAdd ruleAdder RuleDel ruleDeler RuleList ruleLister }
IPRuleConfig defines the config for ip rule
type IPTablesChainSpec ¶ added in v0.1.2
type IPTablesChainSpec struct {
TableName, ChainName string
IsDefaultChain bool // Is a System default chain, if yes, we won't delete it.
IPT iptabler
}
IPTablesChainSpec defines iptable chain
type IPTablesRuleConfig ¶
type IPTablesRuleConfig struct { Spec IPTablesChainSpec RuleSpecs []IPTablesRuleSpec IPT iptabler }
IPTablesRuleConfig defines iptable rule
func (IPTablesRuleConfig) Ensure ¶
func (r IPTablesRuleConfig) Ensure(enabled bool) error
Ensure IPTablesRuleConfig
type IPTablesRuleSpec ¶ added in v0.1.2
type IPTablesRuleSpec []string
IPTablesRuleSpec defines the config for ip table rule
type SysctlConfig ¶
type SysctlConfig struct {
Key, Value, DefaultValue string
SysctlFunc sysctler
}
SysctlConfig defines sysctl config
Click to show internal directories.
Click to hide internal directories.