Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NULL = []byte{'\x00'}
NULL is an array with a single NULL byte.
Functions ¶
func ErrorHandler ¶
Types ¶
type CopyFromClientHandler ¶
type CopyFromClientHandler interface {
// Write should write the given file.
Write(ssh.Session, *FileEntry) (string, error)
Validate(ssh.Session) error
}
CopyFromClientHandler is a handler that can be implemented to handle files being copied from the client to the server.
type FileEntry ¶
type FileEntry struct {
Name string
Filepath string
Mode fs.FileMode
Size int64
Reader io.Reader
Atime int64
Mtime int64
}
FileEntry is an Entry that reads from a Reader, defining a file and its contents.
type LimitReader ¶
type LimitReader struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.