tailscale

package
v0.21.2 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: Apache-2.0 Imports: 9 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecCommand added in v0.21.0

func ExecCommand(config ExecConfig) error

func ForwardRemoteUnixSock

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

func GetConnection

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

Types

type ExecConfig added in v0.21.0

type ExecConfig struct {
	Ctx       context.Context
	TsnetConn *tsnet.Server
	Hostname  string
	SshPort   int
	LogWriter io.Writer
	Command   string
}

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