ssh

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts ...Option) *client

Types

type Option

type Option func(*Options)

func Auth

func Auth(username, password string) Option

func AuthPrivateKey

func AuthPrivateKey(username string, signer ssh.Signer) Option

func Host

func Host(addr string) Option

func Network

func Network(nw string) Option

func Timeout

func Timeout(t time.Duration) Option

type Options

type Options struct {
	ssh.ClientConfig
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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