openvpn

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const ErrorSsoNotSupported = "OpenVPN Client does not support SSO authentication via webauth"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client added in v1.0.0

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

func NewClient added in v1.0.0

func NewClient(logger *slog.Logger, conf *config.Config) *Client

func (*Client) Connect added in v1.0.0

func (c *Client) Connect() error

func (*Client) SendCommand added in v1.0.0

func (c *Client) SendCommand(format string, a ...any) string

SendCommand passes command to a given connection (adds logging and EOL character) and returns the response

func (*Client) Shutdown added in v1.3.0

func (c *Client) Shutdown()

Shutdown shutdowns the client connection

type ClientConnection added in v1.0.0

type ClientConnection struct {
	Kid    uint64
	Cid    uint64
	Reason string
	Env    map[string]string
}

func NewClientConnection added in v1.0.0

func NewClientConnection(message string) (*ClientConnection, error)

Jump to

Keyboard shortcuts

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