storage

package
v0.0.0-...-adb56df Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver interface {
	CreateFile(filePath string, data []byte) error
	CreateDir(dirPath string, perm os.FileMode) error
	Rename(old, file string) error
	ReadDir(dirPath string) ([]os.FileInfo, error)
	ReadFile(filePath string) ([]byte, error)
	Glob(pattern string) ([]string, error)
	Exist(filePath string) bool
	Stat(filePath string) (os.FileInfo, error)
	Delete(filePath string) error
	DeleteAll(path string) error
}

func NewLocalStorageDriver

func NewLocalStorageDriver(baseDir string) Driver

func NewPhotoThumbnailDriver

func NewPhotoThumbnailDriver() Driver

Jump to

Keyboard shortcuts

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