uploadassets

package
v1.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileData

type FileData struct {
	*utils.FileEntry
	Text        []byte
	User        *db.User
	Bucket      storage.Bucket
	BucketQuota uint64
}

type UploadAssetHandler

type UploadAssetHandler struct {
	DBPool  db.DB
	Cfg     *shared.ConfigSite
	Storage storage.ObjectStorage
}

func NewUploadAssetHandler

func NewUploadAssetHandler(dbpool db.DB, cfg *shared.ConfigSite, storage storage.ObjectStorage) *UploadAssetHandler

func (*UploadAssetHandler) GetLogger added in v1.3.0

func (h *UploadAssetHandler) GetLogger() *zap.SugaredLogger

func (*UploadAssetHandler) List

func (h *UploadAssetHandler) List(s ssh.Session, fpath string, isDir bool, recursive bool) ([]os.FileInfo, error)

func (*UploadAssetHandler) Read

func (*UploadAssetHandler) Validate

func (h *UploadAssetHandler) Validate(s ssh.Session) error

func (*UploadAssetHandler) Write

func (h *UploadAssetHandler) Write(s ssh.Session, entry *utils.FileEntry) (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL