tailscale

package
v0.48.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 11 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForwardRemoteUnixSock

func ForwardRemoteUnixSock(config ForwardConfig) (chan bool, chan error)

func GetConnection

func GetConnection(config *TsnetConnConfig) (*tsnet.Server, error)

func NewSshClient added in v0.22.0

func NewSshClient(tsnetConn *tsnet.Server, sessionConfig *ssh.SessionConfig) (*ssh.Client, error)

Types

type ForwardConfig

type ForwardConfig struct {
	Ctx        context.Context
	TsnetConn  *tsnet.Server
	Hostname   string
	SshPort    int
	LocalSock  string
	RemoteSock string
}

type TsnetConnConfig

type TsnetConnConfig struct {
	AuthKey    string
	ControlURL string
	Dir        string
	Logf       func(format string, args ...any)
	Hostname   string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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