Documentation ¶
Index ¶
- type PostMetaData
- type ScpFileHooks
- type ScpUploadHandler
- func (h *ScpUploadHandler) List(s ssh.Session, filename string) ([]os.FileInfo, error)
- func (h *ScpUploadHandler) Read(s ssh.Session, filename string) (os.FileInfo, io.ReaderAt, 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(data *PostMetaData) (bool, error) FileMeta(data *PostMetaData) error }
type ScpUploadHandler ¶
type ScpUploadHandler struct { DBPool db.DB Cfg *shared.ConfigSite Hooks ScpFileHooks ImgClient *imgs.ImgsAPI }
func NewScpPostHandler ¶
func NewScpPostHandler(dbpool db.DB, cfg *shared.ConfigSite, hooks ScpFileHooks, st storage.ObjectStorage) *ScpUploadHandler
Click to show internal directories.
Click to hide internal directories.