strongswan

package
v0.0.0-...-4c55f7e Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package strongswan provides an i3 barista module for strongSwan VPNs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	// Error is set if an error was encountered when retrieving the
	// information.
	Error error

	IKE       string
	Child     string
	VirtualIP string
	// contains filtered or unexported fields
}

Info contains information about the strongSwan VPN.

func (*Info) Connected

func (i *Info) Connected() bool

Connected returns true if the IKE and Child SAs are UP.

func (*Info) Connecting

func (i *Info) Connecting() bool

Connecting returns true if one, but not both of, the IKE and Child SAs are up.

func (*Info) Enabled

func (i *Info) Enabled() bool

Enabled returns true if the module is enabled, i.e. it is able to communicate with a charon daemon.

type Module

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

Module implements bar.Module.

func New

func New() *Module

New returns a new default strongswan Module.

func NewWithSocket

func NewWithSocket(socket string) *Module

NewWithSocket returns a new strongswan Module with with a specified vici socket.

func (*Module) Close

func (m *Module) Close() error

func (*Module) Output

func (m *Module) Output(outputFunc func(Info) bar.Output) *Module

Output configures a module to display the output of a user-defined function.

func (*Module) Stream

func (m *Module) Stream(sink bar.Sink)

Stream implements the bar.Module Stream method.

Jump to

Keyboard shortcuts

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