Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dialer ¶
type Dialer interface { DialContext(ctx context.Context, n, addr string) (net.Conn, error) Dial(n, addr string) (net.Conn, error) Close() error PowerShell(ctx context.Context, opts *powershell.CreateOptions, interaction func(ctx context.Context, ps *powershell.PowerShell) error) error Copy(ctx context.Context, src io.Reader, dst string) (int64, error) }
Dialer specifies a closable dialer.
func SSH ¶
func SSH(opts SSHOptions) (Dialer, error)
DialSSH creates a dialer over SSH, which is inspired by rancher/rke tunnel.
Click to show internal directories.
Click to hide internal directories.