Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentInfo ¶
type AgentInfo struct { XMLName xml.Name `xml:"agent_info"` Type string `xml:"type"` Version string `xml:"version"` Platform string `xml:"platform"` CPU string `xml:"cpu"` JavaScript Bool `xml:"javascript"` ActiveX Bool `xml:"activex"` Plugin Bool `xml:"plugin"` LandingURI string `xml:"landinguri"` Model string `xml:"model,omitempty"` PlatformVersion string `xml:"platform_version,omitempty"` MACAddress string `xml:"mac_address,omitempty"` UniqueID string `xml:"unique_id,omitempty"` SerialNumber string `xml:"serial_number,omitempty"` AppID string `xml:"app_id,omitempty"` AppVersion string `xml:"app_version,omitempty"` JailBreak *Bool `xml:"jailbreak,omitempty"` VPNScope string `xml:"vpn_scope,omitempty"` VPNStartType string `xml:"vpn_start_type,omitempty"` LockedMode Bool `xml:"lockedmode"` VPNTunnelType string `xml:"vpn_tunnel_type,omitempty"` Hostname Hostname `xml:"hostname"` BiometricFingerprint *Bool `xml:"biometric_fingerprint,omitempty"` DevicePasscodeSet *Bool `xml:"device_passcode_set,omitempty"` }
type ClientData ¶
type Config ¶
type Config struct { Debug bool `yanl:"-"` Driver string `yaml:"driver"` ListenDNS net.IP `yaml:"-"` DNS []string `yaml:"dns"` Routes *netaddr.IPSet `yaml:"-"` PPPdArgs []string `yaml:"pppdArgs"` InsecureTLS bool `yaml:"insecureTLS"` DTLS bool `yaml:"dtls"` IPv6 bool `yaml:"ipv6"` // completely disable DNS servers handling DisableDNS bool `yaml:"disableDNS"` // rewrite /etc/resolv.conf instead of renaming // required in ChromeOS, where /etc/resolv.conf cannot be renamed RewriteResolv bool `yaml:"rewriteResolv"` // list of detected local DNS servers DNSServers []net.IP `yaml:"-"` // config path Path string `yaml:"-"` // current user or sudo user UID Uid int `yaml:"-"` // current user or sudo user GID Gid int `yaml:"-"` // Config, returned by F5 F5Config *Favorite `yaml:"-"` }
func ReadConfig ¶
func (*Config) UnmarshalYAML ¶
type FavoriteItem ¶
type Object ¶
type Object struct { SessionID string `xml:"Session_ID"` IPv4 Bool `xml:"IPV4_0"` IPv6 Bool `xml:"IPV6_0"` UrZ string `xml:"ur_Z"` HDLCFraming Bool `xml:"-"` Host string `xml:"host0"` Port string `xml:"port0"` TunnelHost string `xml:"tunnel_host0"` TunnelPort string `xml:"tunnel_port0"` Add2Hosts string `xml:"Add2Hosts0"` DNSRegisterConnection int `xml:"DNSRegisterConnection0"` DNSUseDNSSuffixForRegistration int `xml:"DNSUseDNSSuffixForRegistration0"` SplitTunneling int `xml:"SplitTunneling0"` DNSSPlit string `xml:"DNS_SPLIT0"` TunnelDTLS bool `xml:"tunnel_dtls"` TunnelPortDTLS string `xml:"tunnel_port_dtls"` AllowLocalSubnetAccess bool `xml:"AllowLocalSubnetAccess0"` AllowLocalDNSServersAccess bool `xml:"AllowLocalDNSServersAccess0"` AllowLocalDHCPAccess bool `xml:"AllowLocalDHCPAccess0"` DNS []net.IP `xml:"-"` DNS6 []net.IP `xml:"-"` ExcludeSubnets []*net.IPNet `xml:"-"` Routes *netaddr.IPSet `xml:"-"` ExcludeSubnets6 []*net.IPNet `xml:"-"` Routes6 *netaddr.IPSet `xml:"-"` TrafficControl TrafficControl `xml:"-"` DNSSuffix []string `xml:"-"` }
func (*Object) UnmarshalXML ¶
type PasswordPolicy ¶
type PreConfigProfile ¶
type Profiles ¶
type Profiles struct { Type string `xml:"type,attr"` Limited string `xml:"limited,attr"` Favorites []FavoriteItem `xml:"favorite"` }
Profiles list
type TrafficControl ¶
type TrafficControl struct {
Flow []Flow `xml:"flow"`
}
Click to show internal directories.
Click to hide internal directories.