ssh

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client added in v0.16.0

type Client struct {
	// contains filtered or unexported fields
}

func New added in v0.16.0

func New(addr string, options ...Option) *Client

func (*Client) Run added in v0.16.0

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

type Option added in v0.16.0

type Option func(*Client)

func WithCommand added in v0.16.0

func WithCommand(command string) Option

func WithLocalPortForward added in v0.16.0

func WithLocalPortForward(p PortForward) Option

func WithRemotePortForward added in v0.16.0

func WithRemotePortForward(p PortForward) Option

func WithStderr added in v0.16.0

func WithStderr(w io.Writer) Option

func WithStdin added in v0.16.0

func WithStdin(r io.Reader) Option

func WithStdout added in v0.16.0

func WithStdout(w io.Writer) Option

func WithUsername added in v0.16.0

func WithUsername(username string) Option

type PortForward added in v0.16.0

type PortForward struct {
	LocalAddr string
	LocalPort int

	RemoteAddr string
	RemotePort int
}

Jump to

Keyboard shortcuts

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