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
}
Click to show internal directories.
Click to hide internal directories.