astissh

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthMethodPublicKey

func AuthMethodPublicKey(paths ...string) (m ssh.AuthMethod, err error)

AuthMethodPublicKey creates a public key auth method

func Copy

func Copy(ctx context.Context, src, dst string, fn SessionFunc) (err error)

Copy is a cancellable copy If src is a file, dst must be the full path to file once copied If src is a dir, dst must be the full path to the dir once copied

Types

type SessionFunc

type SessionFunc func() (*ssh.Session, *astidefer.Closer, error)

SessionFunc represents a function that can create a new ssh session

Jump to

Keyboard shortcuts

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