Documentation ¶
Index ¶
- func HandleConn(conn net.Conn, config *ssh.ServerConfig, pathMapper *PathMapper)
- func NewSimpleSftpServer(homePath, listenAddress string, listenPort int, username, password string, ...) (net.Listener, error)
- func VfsHandler(mapper *PathMapper) sftp.Handlers
- type FileTree
- type PathMapper
- type SftpFsContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleConn ¶
func HandleConn(conn net.Conn, config *ssh.ServerConfig, pathMapper *PathMapper)
func NewSimpleSftpServer ¶
func VfsHandler ¶
func VfsHandler(mapper *PathMapper) sftp.Handlers
Types ¶
type FileTree ¶
type FileTree struct {
// contains filtered or unexported fields
}
func NewFileTree ¶
func (*FileTree) SubIntegrate ¶
type PathMapper ¶
type PathMapper struct {
// contains filtered or unexported fields
}
func NewPathMapper ¶
func NewPathMapper(files []string, basePath string) *PathMapper
type SftpFsContext ¶
func NewSftpFsContext ¶
func NewSftpFsContext(user, password, host string) (*SftpFsContext, error)
func (*SftpFsContext) Disconnect ¶
func (ctx *SftpFsContext) Disconnect() error
Click to show internal directories.
Click to hide internal directories.