sshcontrol

package
v0.149.5 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package sshcontrol connects to an already running wing using authenticated OpenSSH stream-local forwarding. It never provisions or starts remote software.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	Client *controlsocket.Client
	// contains filtered or unexported fields
}

func (*Connection) Close

func (c *Connection) Close() error

func (*Connection) Done

func (c *Connection) Done() <-chan struct{}

type Metadata

type Metadata struct {
	WingID        string `json:"wing_id"`
	Version       string `json:"version"`
	WingthingDir  string `json:"wingthing_dir"`
	ControlSocket string `json:"control_socket"`
}

func InspectLocal

func InspectLocal(ctx context.Context, dir, client string) (Metadata, error)

InspectLocal performs only a handshake against the selected, existing wing.

type Transport

type Transport struct {
	// SSHPath is supplied only by fixtures; the CLI uses the user's OpenSSH.
	SSHPath   string
	SocketDir string
	Timeout   time.Duration
}

func (Transport) Dial

func (t Transport) Dial(ctx context.Context, remote config.Remote, hello controlsocket.Hello) (*Connection, error)

func (Transport) Inspect

func (t Transport) Inspect(ctx context.Context, host, dir, binary, client string) (config.Remote, error)

Jump to

Keyboard shortcuts

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