sftp

package
v0.0.0-...-57e3cb4 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidHandle    = errors.New("invalid handle")
	ErrUnsupported      = errors.New("unsupported operation")
	ErrBadRead          = errors.New("bad read")
	ErrTooManyOpenFiles = errors.New("too many open files")
)

Functions

func Serve

func Serve(opt *Options, fs vfs.VFS, rw io.ReadWriter)

Types

type Options

type Options struct {
	Debug    bool
	MaxFiles int
	LogFunc  func(string, ...interface{})
}

type Session

type Session struct {
	Options *Options
	// contains filtered or unexported fields
}

func (*Session) Logf

func (s *Session) Logf(format string, args ...interface{})

func (*Session) Respond

func (s *Session) Respond(resp protosftp.Packet)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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