ssh

package
v0.0.287-pre-3 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: Apache-2.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	DefaultHeight = 40
	DefaultWidth  = 80
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Addr string
	User string

	Dial func(ctx context.Context, network, addr string) (net.Conn, error)

	PrivateKey, Certificate string
	// contains filtered or unexported fields
}

func (*Client) Close

func (c *Client) Close() error

func (*Client) Connect

func (c *Client) Connect(ctx context.Context) error

func (*Client) Shell

func (c *Client) Shell(ctx context.Context, term *Terminal, cmd string) error

type FdReader added in v0.0.251

type FdReader interface {
	io.Reader
	Fd() uintptr
}

FdReader is an io.Reader with an Fd function

type FdWriteCloser added in v0.0.251

type FdWriteCloser interface {
	io.WriteCloser
	Fd() uintptr
}

FdWriteCloser is an io.WriteCloser with an Fd function

type Terminal

type Terminal struct {
	Stdin  io.Reader
	Stdout io.WriteCloser
	Stderr io.WriteCloser

	Mode string
}

Notes

Bugs

  • this is a temporary hack to work around a windows terminal handling problem that is probably trivial to fix, but winch isn't handled yet there anyways

Jump to

Keyboard shortcuts

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