vpn

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	OnLog func(string)
	// contains filtered or unexported fields
}

Client provides methods to interact with the Cisco AnyConnect CLI

func NewClient

func NewClient(credentials *config.Credentials) *Client

func (*Client) Connect

func (c *Client) Connect() (bool, error)

func (*Client) Disconnect

func (c *Client) Disconnect() (bool, error)

func (*Client) GetLogs

func (c *Client) GetLogs() string

GetLogs returns the current accumulated logs safely

func (*Client) IsConnected

func (c *Client) IsConnected() (bool, error)

IsConnected returns the cached connection state

func (*Client) Stop

func (c *Client) Stop()

Stop cleans up the background reconciliation goroutine

func (*Client) SyncStatus

func (c *Client) SyncStatus() (bool, error)

SyncStatus forces a CLI check and updates state

Jump to

Keyboard shortcuts

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