Documentation
¶
Overview ¶
Package sftpd is the agent's built-in SFTP server. Users sign in with their panel email and password (the agent asks the panel over the link; nothing is stored on the node) and land in one service's data directory. Every operation goes through an os.Root, so paths and symlinks cannot reach outside that directory. Only the "sftp" subsystem is offered: no shell, exec or port forwarding.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
Authenticator checks a username/password and returns where the user may go.
type Login ¶
type Login struct {
ServiceID string
DataDir string // the service's data directory on this node
UID int // owner for files created over SFTP (the container user)
// CheckWrite refuses uploads once the service is at its disk limit (optional).
CheckWrite func() error
}
Login is the result of a successful authentication.
Click to show internal directories.
Click to hide internal directories.