Documentation ¶
Index ¶
- Constants
- type Bitmask3
- func (b *Bitmask3) CanStartVPN() bool
- func (b *Bitmask3) CanUpgrade() bool
- func (b *Bitmask3) Close()
- func (b *Bitmask3) DoLogin(username, password string) (bool, error)
- func (b *Bitmask3) GetBestLocation(transport string) string
- func (b *Bitmask3) GetCurrentCountry() string
- func (b *Bitmask3) GetCurrentGateway() string
- func (b *Bitmask3) GetCurrentLocation() string
- func (b *Bitmask3) GetMotd() string
- func (b *Bitmask3) GetSnowflakeCh() <-chan *snowflake.StatusEvent
- func (b *Bitmask3) GetStatus() (string, error)
- func (b *Bitmask3) GetStatusCh() <-chan string
- func (b *Bitmask3) GetTransport() string
- func (b *Bitmask3) InstallHelpers() error
- func (b *Bitmask3) IsManualLocation() bool
- func (b *Bitmask3) ListLocationFullness(transport string) map[string]float64
- func (b *Bitmask3) ListLocationLabels(transport string) map[string][]string
- func (b *Bitmask3) NeedsCredentials() bool
- func (b *Bitmask3) OffersUDP() bool
- func (b *Bitmask3) Reconnect() error
- func (b *Bitmask3) ReloadFirewall() error
- func (b *Bitmask3) SetProvider(p string)
- func (b *Bitmask3) SetTransport(t string) error
- func (b *Bitmask3) StartVPN(provider string) error
- func (b *Bitmask3) StopVPN() error
- func (b *Bitmask3) UseAutomaticGateway()
- func (b *Bitmask3) UseGateway(label string)
- func (b *Bitmask3) UseSnowflake(s bool) error
- func (b *Bitmask3) UseUDP(udp bool) error
- func (b *Bitmask3) VPNCheck() (helpers bool, privilege bool, err error)
- func (b *Bitmask3) Version() (string, error)
Constants ¶
View Source
const ( On = "on" Off = "off" Starting = "starting" Stopping = "stopping" Failed = "failed" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bitmask3 ¶
type Bitmask3 struct {
// contains filtered or unexported fields
}
Bitmask3 holds the bitmask client data Bitmask3 implements Bitmask interface (api version v3)
func (*Bitmask3) CanStartVPN ¶
func (*Bitmask3) CanUpgrade ¶
func (*Bitmask3) Close ¶
func (b *Bitmask3) Close()
Close the connection to bitmask, and does cleanup of temporal files
func (*Bitmask3) GetBestLocation ¶
func (*Bitmask3) GetCurrentCountry ¶
func (*Bitmask3) GetCurrentGateway ¶
func (*Bitmask3) GetCurrentLocation ¶
func (*Bitmask3) GetSnowflakeCh ¶
func (b *Bitmask3) GetSnowflakeCh() <-chan *snowflake.StatusEvent
func (*Bitmask3) GetStatusCh ¶
GetStatusCh returns a channel that will recieve VPN status changes
func (*Bitmask3) GetTransport ¶
GetTransport gets the obfuscation transport to use. Only obfs4 available for now.
func (*Bitmask3) InstallHelpers ¶
func (*Bitmask3) IsManualLocation ¶
func (*Bitmask3) ListLocationFullness ¶
func (*Bitmask3) ListLocationLabels ¶
func (*Bitmask3) NeedsCredentials ¶
func (*Bitmask3) ReloadFirewall ¶
ReloadFirewall restarts the firewall
func (*Bitmask3) SetProvider ¶
func (*Bitmask3) SetTransport ¶
SetTransport selects an obfuscation transport to use
func (*Bitmask3) UseAutomaticGateway ¶
func (b *Bitmask3) UseAutomaticGateway()
UseAutomaticGateway sets the gateway to be selected automatically best gateway will be used
func (*Bitmask3) UseGateway ¶
UseGateway selects a gateway, by label, as the default gateway
func (*Bitmask3) UseSnowflake ¶
Click to show internal directories.
Click to hide internal directories.