ssh

package
v0.0.0-...-9be1521 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*ssh.Client
}

func (*Client) Dial

func (c *Client) Dial(ctx context.Context, protocol, address string) (net.Conn, error)

type Config

type Config struct {
	Host         string
	Port         string
	Username     string
	Password     string
	IdentityFile string
}

type DialerFunc

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

func NewDialerFunc

func NewDialerFunc(cfg *Config) (DialerFunc, error)

func (DialerFunc) Dial

func (d DialerFunc) Dial(network, addr string) (c net.Conn, err error)

Jump to

Keyboard shortcuts

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