lib

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthState

type AuthState struct {
	Conn         *tls.Conn
	BufR         *bufio.Reader
	WebVPNCookie string
	ReqHeaders   map[string]string
}

func NewAuthState

func NewAuthState() *AuthState

type Profile

type Profile struct {
	Host      string `json:"host"`
	Username  string `json:"username"`
	Password  string `json:"password"`
	Group     string `json:"group"`
	SecretKey string `json:"secret"`

	Initialized bool
	AppVersion  string

	HostWithPort string
	Scheme       string
	BasePath     string
	AuthPath     string

	TunnelGroup string
	AuthMethod  string
	GroupAlias  string
	ConfigHash  string
	GroupAccess string
	DeviceID    string
}

func NewProfile

func NewProfile() *Profile

type VPNContext

type VPNContext struct {
	Cfg            *base.ClientConfig
	LocalInterface *base.Interface
	Logger         *base.Logger
	Profile        *Profile
	Session        *session.Session
	Auth           *AuthState
	TLSCert        *tls.Certificate
	RootCAs        *x509.CertPool
}

func NewVPNContext

func NewVPNContext() *VPNContext

Jump to

Keyboard shortcuts

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