vpn

package
v0.6.23 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterNode added in v0.6.22

func RegisterNode(store ServiceMeshStore) error

func UseDarwinDNS added in v0.6.22

func UseDarwinDNS(tailscaleDNSIP string, searchDomain string) (func() error, error)

Types

type ServiceMeshStore added in v0.6.22

type ServiceMeshStore interface {
	VPNStore
	GetCurrentWorkspaceID() string
	GetWorkspace(workspaceID string) (*entity.Workspace, error)
}

type Tailscale

type Tailscale struct {
	// contains filtered or unexported fields
}

func NewTailscale

func NewTailscale(store VPNStore) *Tailscale

func (Tailscale) ApplyConfig

func (t Tailscale) ApplyConfig(hostName string, loginServerURL string) error

func (Tailscale) Start

func (t Tailscale) Start() error

func (*Tailscale) WithSockProxyPort

func (t *Tailscale) WithSockProxyPort(sockProxyPort int) *Tailscale

func (*Tailscale) WithUserspaceNetworking

func (t *Tailscale) WithUserspaceNetworking(shouldUseUserspaceNetworking bool) *Tailscale

type VPN

type VPN interface {
	ApplyConfig(hostName string, loginServerURL string) error
	Start() error
}

type VPNDaemon added in v0.6.22

type VPNDaemon struct {
	Store ServiceMeshStore
}

func (VPNDaemon) GetTaskSpec added in v0.6.22

func (vpnd VPNDaemon) GetTaskSpec() tasks.TaskSpec

func (VPNDaemon) Run added in v0.6.22

func (vpnd VPNDaemon) Run() error

type VPNStore

type VPNStore interface {
	RegisterNode(publicKey string) error
	GetOrCreateFile(path string) (afero.File, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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