sftp

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 3, 2017 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRequestPrefix added in v1.1.0

func CreateRequestPrefix(prefix string) sftp.Handlers

func CreateVirtualFs added in v1.1.0

func CreateVirtualFs(prefix string) sftp.FileSystem

func HandleConn

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

func PrintDiscardRequests

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

func Run

func Run()

Types

type PrefixFileSystem added in v1.1.0

type PrefixFileSystem struct {
	sftp.FileSystem
	// contains filtered or unexported fields
}

func (PrefixFileSystem) Chmod added in v1.1.0

func (fs PrefixFileSystem) Chmod(path string, mode os.FileMode) error

func (PrefixFileSystem) Chown added in v1.1.0

func (fs PrefixFileSystem) Chown(path string, uid, gid int) error

func (PrefixFileSystem) Chtimes added in v1.1.0

func (fs PrefixFileSystem) Chtimes(path string, aTime, mTime time.Time) error

func (PrefixFileSystem) Lstat added in v1.1.0

func (fs PrefixFileSystem) Lstat(path string) (os.FileInfo, error)

func (PrefixFileSystem) Mkdir added in v1.1.0

func (fs PrefixFileSystem) Mkdir(path string, mode os.FileMode) error

func (PrefixFileSystem) OpenFile added in v1.1.0

func (fs PrefixFileSystem) OpenFile(path string, flag int, mode os.FileMode) (*os.File, error)
func (fs PrefixFileSystem) Readlink(path string) (string, error)

func (PrefixFileSystem) Remove added in v1.1.0

func (fs PrefixFileSystem) Remove(path string) error

func (PrefixFileSystem) Rename added in v1.1.0

func (fs PrefixFileSystem) Rename(oldPath string, newPath string) error

func (PrefixFileSystem) Stat added in v1.1.0

func (fs PrefixFileSystem) Stat(path string) (os.FileInfo, error)
func (fs PrefixFileSystem) Symlink(target string, link string) error

func (PrefixFileSystem) Truncate added in v1.1.0

func (fs PrefixFileSystem) Truncate(path string, size int64) error

Jump to

Keyboard shortcuts

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