ipsec

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// DefaultReplayWindowSize specifies the replay window size for charon
	DefaultReplayWindowSize = "1024"

	// DefaultIkeSaRekeyInterval specifies the default rekey interval for IKE_SA
	DefaultIkeSaRekeyInterval = "4h"

	// DefaultChildSaRekeyInterval specifies the default rekey interval for CHILD_SA
	DefaultChildSaRekeyInterval = "1h"
)

Variables

This section is empty.

Functions

func Test

func Test() error

Types

type Engine

type Engine struct {
	sync.Mutex

	LocalSubnets              []string
	LocalCluster              types.SubmarinerCluster
	LocalEndpoint             types.SubmarinerEndpoint
	SecretKey                 string
	ReplayWindowSize          string
	IPSecIkeSaRekeyInterval   string
	IPSecChildSaRekeyInterval string

	Debug   bool
	LogFile string
}

func NewEngine

func NewEngine(localSubnets []string, localCluster types.SubmarinerCluster, localEndpoint types.SubmarinerEndpoint) *Engine

func (*Engine) InstallCable

func (i *Engine) InstallCable(endpoint types.SubmarinerEndpoint) error

func (*Engine) PrintConns

func (i *Engine) PrintConns()

func (*Engine) ReloadEngine

func (i *Engine) ReloadEngine() error

func (*Engine) RemoveCable

func (i *Engine) RemoveCable(cableId string) error

func (*Engine) StartEngine

func (i *Engine) StartEngine(ignition bool) error

func (*Engine) StopEngine

func (i *Engine) StopEngine() error

func (*Engine) SyncCables

func (i *Engine) SyncCables(clusterId string, endpoints []types.SubmarinerEndpoint) error

type IPSecSpecification

type IPSecSpecification struct {
	PSK     string
	Debug   bool
	LogFile string
}

Jump to

Keyboard shortcuts

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