strongswan

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: 12 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 InitTimeout added in v0.8.0

func InitTimeout(timeout uint) option

InitTimeout set timeout for SA/child-SA initiation. 0 means blocking initiation unit: second.

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) IsRunning added in v0.8.0

func (m StrongSwanManager) IsRunning() bool

func (StrongSwanManager) IsSAInitiated added in v0.8.0

func (m StrongSwanManager) IsSAInitiated(ike string) (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