Documentation
¶
Index ¶
- type Failing
- func (Failing) Allow(mesh.Machine) error
- func (Failing) Block(mesh.Machine) error
- func (Failing) Connect(netip.Addr, string) error
- func (Failing) ConnectionStatus() (networker.ConnectionStatus, error)
- func (Failing) DenyIPv6() error
- func (Failing) DisableFirewall() error
- func (Failing) DisableRouting()
- func (Failing) Disconnect() error
- func (Failing) EnableFirewall() error
- func (Failing) EnableRouting()
- func (Failing) GetConnectionParameters() (vpn.ServerData, bool)
- func (Failing) IsMeshnetActive() bool
- func (Failing) IsNetworkSet() bool
- func (Failing) IsVPNActive() bool
- func (Failing) LastServerName() string
- func (Failing) PermitIPv6() error
- func (Failing) Refresh(mesh.MachineMap) error
- func (Failing) SetAllowlist(config.Allowlist) error
- func (Failing) SetDNS([]string) error
- func (Failing) SetKillSwitch(config.Allowlist) error
- func (Failing) SetLanDiscovery(bool)
- func (Failing) SetLanDiscoveryAndResetMesh(bool, mesh.MachinePeers)
- func (Failing) SetVPN(vpn.VPN)
- func (Failing) Start(context.Context, vpn.Credentials, vpn.ServerData, config.Allowlist, config.DNS, ...) error
- func (Failing) Stop() error
- func (Failing) UnSetMesh() error
- func (Failing) UnsetAllowlist() error
- func (Failing) UnsetDNS() error
- func (Failing) UnsetFirewall() error
- func (Failing) UnsetKillSwitch() error
- type Mock
- func (*Mock) ConnectionStatus() (networker.ConnectionStatus, error)
- func (*Mock) DenyIPv6() error
- func (*Mock) DisableFirewall() error
- func (*Mock) DisableRouting()
- func (*Mock) EnableFirewall() error
- func (*Mock) EnableRouting()
- func (*Mock) GetConnectionParameters() (vpn.ServerData, bool)
- func (m *Mock) IsMeshnetActive() bool
- func (*Mock) IsNetworkSet() bool
- func (m *Mock) IsVPNActive() bool
- func (*Mock) LastServerName() string
- func (*Mock) PermitIPv6() error
- func (m *Mock) SetAllowlist(allowlist config.Allowlist) error
- func (m *Mock) SetDNS(nameservers []string) error
- func (*Mock) SetKillSwitch(config.Allowlist) error
- func (m *Mock) SetLanDiscovery(enabled bool)
- func (m *Mock) SetLanDiscoveryAndResetMesh(enabled bool, peers mesh.MachinePeers)
- func (*Mock) SetVPN(vpn.VPN)
- func (Mock) Start(context.Context, vpn.Credentials, vpn.ServerData, config.Allowlist, config.DNS, ...) error
- func (*Mock) Stop() error
- func (*Mock) UnSetMesh() error
- func (m *Mock) UnsetAllowlist() error
- func (*Mock) UnsetDNS() error
- func (*Mock) UnsetFirewall() error
- func (*Mock) UnsetKillSwitch() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Failing ¶
type Failing struct{}
func (Failing) ConnectionStatus ¶
func (Failing) ConnectionStatus() (networker.ConnectionStatus, error)
func (Failing) DisableFirewall ¶
func (Failing) DisableRouting ¶
func (Failing) DisableRouting()
func (Failing) Disconnect ¶
func (Failing) EnableFirewall ¶
func (Failing) EnableRouting ¶
func (Failing) EnableRouting()
func (Failing) GetConnectionParameters ¶
func (Failing) GetConnectionParameters() (vpn.ServerData, bool)
func (Failing) IsMeshnetActive ¶
func (Failing) IsNetworkSet ¶
func (Failing) IsVPNActive ¶
func (Failing) LastServerName ¶
func (Failing) PermitIPv6 ¶
func (Failing) SetLanDiscovery ¶
func (Failing) SetLanDiscoveryAndResetMesh ¶
func (Failing) SetLanDiscoveryAndResetMesh(bool, mesh.MachinePeers)
func (Failing) UnsetAllowlist ¶
func (Failing) UnsetFirewall ¶
func (Failing) UnsetKillSwitch ¶
type Mock ¶
type Mock struct { Dns []string Allowlist config.Allowlist VpnActive bool MeshActive bool ConnectRetries int LanDiscovery bool MeshPeers mesh.MachinePeers MeshnetRetries int SetDNSErr error SetAllowlistErr error UnsetAllowlistErr error }
func (*Mock) ConnectionStatus ¶
func (*Mock) ConnectionStatus() (networker.ConnectionStatus, error)
func (*Mock) DisableFirewall ¶
func (*Mock) DisableRouting ¶
func (*Mock) DisableRouting()
func (*Mock) EnableFirewall ¶
func (*Mock) EnableRouting ¶
func (*Mock) EnableRouting()
func (*Mock) GetConnectionParameters ¶
func (*Mock) GetConnectionParameters() (vpn.ServerData, bool)
func (*Mock) IsMeshnetActive ¶
func (*Mock) IsNetworkSet ¶
func (*Mock) IsVPNActive ¶
func (*Mock) LastServerName ¶
func (*Mock) PermitIPv6 ¶
func (*Mock) SetLanDiscovery ¶
func (*Mock) SetLanDiscoveryAndResetMesh ¶
func (m *Mock) SetLanDiscoveryAndResetMesh(enabled bool, peers mesh.MachinePeers)
func (*Mock) UnsetAllowlist ¶
func (*Mock) UnsetFirewall ¶
func (*Mock) UnsetKillSwitch ¶
Click to show internal directories.
Click to hide internal directories.