sftp

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2017 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleConn

func HandleConn(conn net.Conn, config *ssh.ServerConfig)

func PrintDiscardRequests

func PrintDiscardRequests(in <-chan *ssh.Request)

func Run

func Run()

Types

type VirtualFS

type VirtualFS struct {
	sftpd.EmptyFS
	Prefix string
}

func (VirtualFS) Mkdir

func (fs VirtualFS) Mkdir(name string, attr *sftpd.Attr) error

func (VirtualFS) OpenDir

func (fs VirtualFS) OpenDir(path string) (sftpd.Dir, error)

func (VirtualFS) OpenFile

func (fs VirtualFS) OpenFile(path string, mode uint32, a *sftpd.Attr) (sftpd.File, error)

func (VirtualFS) Remove

func (fs VirtualFS) Remove(name string) error

func (VirtualFS) Rename

func (fs VirtualFS) Rename(oldName string, newName string, mode uint32) error

func (VirtualFS) Rmdir

func (fs VirtualFS) Rmdir(name string) error

func (VirtualFS) SetStat

func (fs VirtualFS) SetStat(path string, attr *sftpd.Attr) error

func (VirtualFS) Stat

func (fs VirtualFS) Stat(name string, islstat bool) (*sftpd.Attr, error)

Jump to

Keyboard shortcuts

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