Documentation ¶
Index ¶
- type PostMetaData
- type ScpFileHooks
- type ScpUploadHandler
- func (h *ScpUploadHandler) GetLogger() *zap.SugaredLogger
- func (h *ScpUploadHandler) List(s ssh.Session, fpath string, isDir bool, recursive bool) ([]os.FileInfo, error)
- func (h *ScpUploadHandler) Read(s ssh.Session, entry *utils.FileEntry) (os.FileInfo, utils.ReaderAtCloser, error)
- func (h *ScpUploadHandler) Validate(s ssh.Session) error
- func (h *ScpUploadHandler) Write(s ssh.Session, entry *utils.FileEntry) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostMetaData ¶
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 ImgClient *uploadimgs.ImgsAPI }
func NewScpPostHandler ¶
func NewScpPostHandler(dbpool db.DB, cfg *shared.ConfigSite, hooks ScpFileHooks, st storage.ObjectStorage) *ScpUploadHandler
func (*ScpUploadHandler) GetLogger ¶ added in v1.3.0
func (h *ScpUploadHandler) GetLogger() *zap.SugaredLogger
Click to show internal directories.
Click to hide internal directories.