config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MasqueradeConfig []Config
View Source
var PolicyRoutingConfig []Config

Functions

This section is empty.

Types

type Config

type Config interface {
	Ensure() error
}

type IPRouteConfig

type IPRouteConfig struct {
	Route netlink.Route
}

func (IPRouteConfig) Ensure

func (r IPRouteConfig) Ensure() error

type IPRuleConfig

type IPRuleConfig struct {
	Rule netlink.Rule
}

func (IPRuleConfig) Ensure

func (r IPRuleConfig) Ensure() error

type IPTablesChainConfig

type IPTablesChainConfig struct {
	ChainName, TableName string
}

func (IPTablesChainConfig) Ensure

func (c IPTablesChainConfig) Ensure() error

type IPTablesRuleConfig

type IPTablesRuleConfig struct {
	ChainName, TableName string
	RuleSpec             []string
}

func (IPTablesRuleConfig) Ensure

func (r IPTablesRuleConfig) Ensure() error

type SysctlConfig

type SysctlConfig struct {
	Key, Value string
}

func (SysctlConfig) Ensure

func (s SysctlConfig) Ensure() error

Jump to

Keyboard shortcuts

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