uploadassets

package
v1.13.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 18 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        sst.Bucket
	StorageSize   uint64
	FeatureFlag   *db.FeatureFlag
	DeltaFileSize int64
}

type UploadAssetHandler

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

func NewUploadAssetHandler

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

func (*UploadAssetHandler) GetLogger added in v1.3.0

func (h *UploadAssetHandler) GetLogger() *slog.Logger

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