sftp

package
v0.0.0-...-b2b82d6 Latest Latest
Warning

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

Go to latest
Published: May 16, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientConfig

type ClientConfig struct {
	Username string
	Password string
	Host     string
	Port     string
}

type SFTP

type SFTP struct {
	*_sftp.Client
}

func NewClient

func NewClient(c *ClientConfig) (*SFTP, error)

func (*SFTP) GetFile

func (s *SFTP) GetFile(remotepath, remotefilename, localpath, localfilename string) (int64, error)

func (*SFTP) SendFile

func (s *SFTP) SendFile(localpath, localfilename, remotepath, remotefilename string) (int64, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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