mssh

package
v0.0.2-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cli

type Cli struct {
	User string
	Pwd  string

	Addr   string
	Signer string

	LastResult string
	// contains filtered or unexported fields
}

func (*Cli) Close

func (c *Cli) Close() error

func (*Cli) Connect

func (c *Cli) Connect() (*Cli, error)

func (*Cli) DownloadFile

func (c *Cli) DownloadFile(remotePath string, localDir string, localFileName string) error

func (*Cli) GetAuth

func (c *Cli) GetAuth() ([]gossh.AuthMethod, error)

func (Cli) Run

func (c Cli) Run(command string) (string, error)

func (Cli) UploadFile

func (c Cli) UploadFile(localFilePath string, remotePath string) error

func (Cli) UploadFileAndProgress

func (c Cli) UploadFileAndProgress(srcFile io.Reader, remoteFile string, ch chan<- int64) (err error)

Jump to

Keyboard shortcuts

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