lib

package
v2.3.0+incompatible Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Delegator

type Delegator interface {
	DelegateAdd(delegatePlugin string, netconf []byte) (types.Result, error)
	DelegateDel(delegatePlugin string, netconf []byte) error
}

func NewDelegator

func NewDelegator() Delegator

type PluginController

type PluginController struct {
	Delegator Delegator
	IPTables  rules.IPTablesAdapter
}

func (*PluginController) AddIPMasq

func (c *PluginController) AddIPMasq(ip, noMasqueradeCIDRRange, deviceName string) error

func (*PluginController) DelIPMasq

func (c *PluginController) DelIPMasq(ip, noMasqueradeCIDRRange, deviceName string) error

func (*PluginController) DelegateAdd

func (c *PluginController) DelegateAdd(netconf map[string]interface{}) (types.Result, error)

func (*PluginController) DelegateDel

func (c *PluginController) DelegateDel(netconf map[string]interface{}) error

type RuntimeConfig

type RuntimeConfig struct {
	PortMappings []garden.NetIn      `json:"portMappings"`
	NetOutRules  []garden.NetOutRule `json:"netOutRules"`
}

type WrapperConfig

type WrapperConfig struct {
	Datastore                       string                 `json:"datastore"`
	IPTablesLockFile                string                 `json:"iptables_lock_file"`
	Delegate                        map[string]interface{} `json:"delegate"`
	InstanceAddress                 string                 `json:"instance_address"`
	NoMasqueradeCIDRRange           string                 `json:"no_masquerade_cidr_range"`
	DNSServers                      []string               `json:"dns_servers"`
	HostTCPServices                 []string               `json:"host_tcp_services"`
	UnderlayIPs                     []string               `json:"underlay_ips"`
	TemporaryUnderlayInterfaceNames []string               `json:"temporary_underlay_interface_names"`
	IPTablesASGLogging              bool                   `json:"iptables_asg_logging"`
	IPTablesC2CLogging              bool                   `json:"iptables_c2c_logging"`
	IPTablesDeniedLogsPerSec        int                    `json:"iptables_denied_logs_per_sec" validate:"min=1"`
	IPTablesAcceptedUDPLogsPerSec   int                    `json:"iptables_accepted_udp_logs_per_sec" validate:"min=1"`
	IngressTag                      string                 `json:"ingress_tag"`
	VTEPName                        string                 `json:"vtep_name"`
	RuntimeConfig                   RuntimeConfig          `json:"runtimeConfig,omitempty"`
}

func LoadWrapperConfig

func LoadWrapperConfig(bytes []byte) (*WrapperConfig, error)

Jump to

Keyboard shortcuts

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