strongswan

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CertsDir

func CertsDir(path string) option

func DpdAction added in v0.6.0

func DpdAction(action string) option

func DpdDelay added in v0.6.0

func DpdDelay(delay string) option

func InterfaceID

func InterfaceID(id *uint) option

func SocketFile

func SocketFile(path string) option

func StartAction

func StartAction(startAction string) option

Types

type Options

type Options []option

type StrongSwanManager

type StrongSwanManager struct {
	// contains filtered or unexported fields
}

func New

func New(opts ...option) (*StrongSwanManager, error)

func (StrongSwanManager) InitiateConn

func (m StrongSwanManager) InitiateConn(name string) error

func (StrongSwanManager) IsActive

func (m StrongSwanManager) IsActive() (bool, error)

func (StrongSwanManager) ListConnNames

func (m StrongSwanManager) ListConnNames() ([]string, error)

func (StrongSwanManager) LoadConn

func (m StrongSwanManager) LoadConn(cnf tunnel.ConnConfig) error

func (StrongSwanManager) UnloadConn

func (m StrongSwanManager) UnloadConn(name string) error

Jump to

Keyboard shortcuts

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