localfs

package
Version: v0.0.0-...-caf6f44 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2021 License: Apache-2.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 LocalFSStorage

type LocalFSStorage struct {
	// contains filtered or unexported fields
}

func CreateLocalFSStorage

func CreateLocalFSStorage(cfg config.Config) (localFS *LocalFSStorage, fcerr *fcerror.Error)

func (*LocalFSStorage) Close

func (*LocalFSStorage) Close() *fcerror.Error

func (*LocalFSStorage) CopyFileFromUpload

func (fs *LocalFSStorage) CopyFileFromUpload(node *models.Node, uploadPath string) (fcerr *fcerror.Error)

func (*LocalFSStorage) CreateEmptyFileOrFolder

func (fs *LocalFSStorage) CreateEmptyFileOrFolder(node *models.Node) (fcerr *fcerror.Error)

func (*LocalFSStorage) CreateUserRootFolder

func (fs *LocalFSStorage) CreateUserRootFolder(userID models.UserID) (fcerr *fcerror.Error)

func (*LocalFSStorage) DownloadFile

func (fs *LocalFSStorage) DownloadFile(node *models.Node) (reader io.ReadCloser, size int64, fcerr *fcerror.Error)

Source Files

Jump to

Keyboard shortcuts

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