ssh

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts ...Opt) (it.Transport, error)

New takes zero or more functional options and return a new transport.

func WithContext

func WithContext(ctx context.Context) func(*transport)

WithContext sets the context to use when initializing the resources.

func WithHost

func WithHost(h string) func(*transport)

WithHost sets the host.

func WithKey

func WithKey(k string) func(*transport)

WithKey sets the key.

func WithKeyPath

func WithKeyPath(p string) func(*transport)

WithKeyPath sets the key path.

func WithPassphrase

func WithPassphrase(p string) func(*transport)

WithPassphrase sets the key passphrase.

func WithPassphrasePath

func WithPassphrasePath(p string) func(*transport)

WithPassphrasePath sets the key passphrase path.

func WithPassword

func WithPassword(p string) func(*transport)

WithPassword sets the password.

func WithPort

func WithPort(p string) func(*transport)

WithPort sets the port.

func WithUser

func WithUser(u string) func(*transport)

WithUser sets the user.

Types

type Opt

type Opt func(*transport)

Opt is a functional option for the SSH transport.

Jump to

Keyboard shortcuts

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