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
Click to show internal directories.
Click to hide internal directories.