Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesFromRules ¶
func GetSaveLines ¶
GetSaveLines parses the iptables-save as a string and puts it into a map[string]*kubeRules Modifications were made from the Kube codebase to support iptables save/restore
func NewMetrics ¶
func NewMetrics(lbKind, configKey string) *metrics
Types ¶
type IPTables ¶
type IPTables interface { Save() (map[string]*RuleSet, error) Restore(map[string]*RuleSet) error Flush() error GenerateRules(config *types.ClusterConfig) (rules map[string]*RuleSet, err error) GenerateRulesForNode(node types.Node, config *types.ClusterConfig, useWeightedService bool) (map[string]*RuleSet, error) Merge(subset, wholeset map[string]*RuleSet) (rules map[string]*RuleSet, removals int, err error) BaseChain() string }
func NewIPTables ¶
Click to show internal directories.
Click to hide internal directories.