tunnel

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnConfig

type ConnConfig struct {
	Name string // must be unique

	LocalID          string
	LocalAddress     []string
	LocalSubnets     []string
	LocalNodeSubnets []string
	LocalCerts       []string
	LocalType        apis.EndpointType

	RemoteID          string
	RemoteAddress     []string
	RemoteSubnets     []string
	RemoteNodeSubnets []string
	RemoteType        apis.EndpointType
	RemotePort        *uint

	// Whether this connection is used for mediation
	Mediation bool

	// whether is connection need mediation
	NeedMediation bool
	// check https://docs.strongswan.org/docs/5.9/swanctl/swanctlConf.html
	// for detailed explanation for MediatedBy and MediationPeer
	MediatedBy    string
	MediationPeer string
}

type Manager

type Manager interface {
	IsRunning() bool
	ListConnNames() ([]string, error)
	LoadConn(conn ConnConfig) error
	InitiateConn(name string) error
	UnloadConn(name string) error
	IsActive() (bool, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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