Documentation ¶
Index ¶
- type FileHandlerRouter
- func (r *FileHandlerRouter) GetLogger() *slog.Logger
- func (r *FileHandlerRouter) List(s ssh.Session, fpath string, isDir bool, recursive bool) ([]os.FileInfo, error)
- func (r *FileHandlerRouter) Read(s ssh.Session, entry *utils.FileEntry) (os.FileInfo, utils.ReaderAtCloser, error)
- func (r *FileHandlerRouter) Validate(s ssh.Session) error
- func (r *FileHandlerRouter) Write(s ssh.Session, entry *utils.FileEntry) (string, error)
- type PostMetaData
- type ReadWriteHandler
- type ScpFileHooks
- type ScpUploadHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileHandlerRouter ¶ added in v1.10.0
type FileHandlerRouter struct { FileMap map[string]ReadWriteHandler Cfg *shared.ConfigSite DBPool db.DB Spaces []string }
func NewFileHandlerRouter ¶ added in v1.10.0
func NewFileHandlerRouter(cfg *shared.ConfigSite, dbpool db.DB, mapper map[string]ReadWriteHandler) *FileHandlerRouter
func (*FileHandlerRouter) GetLogger ¶ added in v1.10.0
func (r *FileHandlerRouter) GetLogger() *slog.Logger
func (*FileHandlerRouter) Read ¶ added in v1.10.0
func (r *FileHandlerRouter) Read(s ssh.Session, entry *utils.FileEntry) (os.FileInfo, utils.ReaderAtCloser, error)
type PostMetaData ¶
type ReadWriteHandler ¶ added in v1.10.0
type ScpFileHooks ¶
type ScpFileHooks interface { FileValidate(s ssh.Session, data *PostMetaData) (bool, error) FileMeta(s ssh.Session, data *PostMetaData) error }
type ScpUploadHandler ¶
type ScpUploadHandler struct { DBPool db.DB Cfg *shared.ConfigSite Hooks ScpFileHooks }
func NewScpPostHandler ¶
func NewScpPostHandler(dbpool db.DB, cfg *shared.ConfigSite, hooks ScpFileHooks, st storage.StorageServe) *ScpUploadHandler
Click to show internal directories.
Click to hide internal directories.