sftp

package
v0.0.0-...-fcc4a6d Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: ISC Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	Host     string
	Username string
	Password string
	// contains filtered or unexported fields
}

func New

func New(host, username, password string) *Service

func (*Service) Close

func (s *Service) Close() error

func (*Service) Fetch

func (s *Service) Fetch(remoteFile string) (localfile []byte, err error)

func (*Service) Upload

func (s *Service) Upload(localFile []byte, remoteFile string) (err error)

Upload file to sftp server

Jump to

Keyboard shortcuts

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