config

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2018 License: Apache-2.0 Imports: 9 Imported by: 1

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 Config

type Config interface {
	Ensure(enabled bool) error
}

type IPRouteConfig

type IPRouteConfig struct {
	Route netlink.Route
}

func (IPRouteConfig) Ensure

func (r IPRouteConfig) Ensure(enabled bool) error

type IPRuleConfig

type IPRuleConfig struct {
	Rule netlink.Rule
}

func (IPRuleConfig) Ensure

func (r IPRuleConfig) Ensure(enabled bool) error

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.
}

type IPTablesRuleConfig

type IPTablesRuleConfig struct {
	Spec      IPTablesChainSpec
	RuleSpecs []IPTablesRuleSpec
}

func (IPTablesRuleConfig) Ensure

func (r IPTablesRuleConfig) Ensure(enabled bool) error

type IPTablesRuleSpec added in v0.1.2

type IPTablesRuleSpec []string

type Set added in v0.1.2

type Set struct {
	Enabled     bool
	FeatureName string
	Configs     []Config
}

type SysctlConfig

type SysctlConfig struct {
	Key, Value, DefaultValue string
}

func (SysctlConfig) Ensure

func (s SysctlConfig) Ensure(enabled bool) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL