Documentation
¶
Index ¶
- func CreateRequestPrefix(prefix string) sftp.Handlers
- func CreateVirtualFs(prefix string) sftp.FileSystem
- func HandleConn(conn net.Conn, config *ssh.ServerConfig)
- func PrintDiscardRequests(in <-chan *ssh.Request)
- func Run()
- type PrefixFileSystem
- func (fs PrefixFileSystem) Chmod(path string, mode os.FileMode) error
- func (fs PrefixFileSystem) Chown(path string, uid, gid int) error
- func (fs PrefixFileSystem) Chtimes(path string, aTime, mTime time.Time) error
- func (fs PrefixFileSystem) Lstat(path string) (os.FileInfo, error)
- func (fs PrefixFileSystem) Mkdir(path string, mode os.FileMode) error
- func (fs PrefixFileSystem) OpenFile(path string, flag int, mode os.FileMode) (*os.File, error)
- func (fs PrefixFileSystem) Readlink(path string) (string, error)
- func (fs PrefixFileSystem) Remove(path string) error
- func (fs PrefixFileSystem) Rename(oldPath string, newPath string) error
- func (fs PrefixFileSystem) Stat(path string) (os.FileInfo, error)
- func (fs PrefixFileSystem) Symlink(target string, link string) error
- func (fs PrefixFileSystem) Truncate(path string, size int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRequestPrefix ¶ added in v1.1.0
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 ¶
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) Readlink ¶ added in v1.1.0
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)
Click to show internal directories.
Click to hide internal directories.