local

package
v0.0.0-...-5e8511f Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	FullPath string
	// contains filtered or unexported fields
}

func (*File) Close

func (f *File) Close() error

func (*File) Read

func (f *File) Read(p []byte) (int, error)

func (*File) Write

func (f *File) Write(p []byte) (int, error)

type StorageProvider

type StorageProvider struct {
	RootPath string `yaml:"path"`
}

func NewStorageProvider

func NewStorageProvider(dir string) *StorageProvider

func (*StorageProvider) Delete

func (s *StorageProvider) Delete(ctx context.Context, user *models.User, fullpath string) error

func (*StorageProvider) File

func (s *StorageProvider) File(ctx context.Context, user *models.User, fullpath string) (storage.File, error)

func (*StorageProvider) InitUser

func (s *StorageProvider) InitUser(ctx context.Context, user *models.User) error

func (*StorageProvider) ListDirectory

func (s *StorageProvider) ListDirectory(ctx context.Context, user *models.User, dir string) (<-chan storage.FileInfo, error)

func (*StorageProvider) Mkdir

func (s *StorageProvider) Mkdir(ctx context.Context, user *models.User, dir string) error

func (*StorageProvider) Move

func (s *StorageProvider) Move(ctx context.Context, user *models.User, src, dst string) error

Jump to

Keyboard shortcuts

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