Versions in this module Expand all Collapse all v1 v1.21.6 Jul 21, 2024 Changes in this version + const SchemeTCP + const SchemeUnix + var ErrConnectionTerminated = errors.New("OpenVPN management interface connection terminated") + var ErrEmptyResponse = errors.New("empty response") + var ErrErrorResponse = errors.New("error response") + var ErrInvalidPassword = errors.New("invalid password") + var ErrTimeout = errors.New("timeout") + var ErrUnknownProtocol = errors.New("unknown protocol") + type Client struct + func New(ctx context.Context, logger *slog.Logger, conf config.Config, ...) *Client + func (c *Client) AcceptClient(logger *slog.Logger, client state.ClientIdentifier, username string) + func (c *Client) Connect() error + func (c *Client) DenyClient(logger *slog.Logger, client state.ClientIdentifier, reason string) + func (c *Client) SendCommand(cmd string, passthrough bool) (string, error) + func (c *Client) SendCommandf(format string, a ...any) (string, error) + func (c *Client) Shutdown()