filestore

package
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filestore

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

Filestore contains the values for the filestore instance

func New

func New(config *config.Config) *Filestore

New initializes the filestore module

func (*Filestore) CreateFolder

func (f *Filestore) CreateFolder(path, name string) (*types.Response, error)

todo implement this

func (*Filestore) DeleteFile

func (f *Filestore) DeleteFile(path string, meta interface{}) (*types.Response, error)

func (*Filestore) DoesFileOrFolderExists

func (f *Filestore) DoesFileOrFolderExists(path string) (*types.Response, error)

func (*Filestore) DownloadFile

func (f *Filestore) DownloadFile(path string, writer io.Writer) error

func (*Filestore) ListFiles

func (f *Filestore) ListFiles(listWhat, path string) (*types.Response, error)

func (*Filestore) UploadFile

func (f *Filestore) UploadFile(path, name string, meta interface{}, reader io.Reader) (*types.Response, error)

Jump to

Keyboard shortcuts

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