sftp

package
v0.0.0-...-20155fc Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2018 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PACKET_SIZE = 1 << 17
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SftpClient

type SftpClient struct {
	// contains filtered or unexported fields
}

func NewSftpClient

func NewSftpClient(client *ssh.Client, opts ...sftp.ClientOption) (*SftpClient, error)

func (*SftpClient) Close

func (c *SftpClient) Close() error

func (*SftpClient) Fetch

func (c *SftpClient) Fetch(remote, local string) (int64, error)

download file

func (*SftpClient) Put

func (c *SftpClient) Put(local, remote string) (int64, error)

upload file

Jump to

Keyboard shortcuts

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