local

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2019 License: Apache-2.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 Local

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

Local is the file store driver for the local filesystem

func Init

func Init(path string) (*Local, error)

Init initialises the local filestore driver

func (*Local) Close

func (l *Local) Close() error

Close gracefully closed the local filestore module

func (*Local) CreateDir

func (l *Local) CreateDir(project string, req *model.CreateFileRequest) error

CreateDir creates a directory in the path provided

func (*Local) CreateFile

func (l *Local) CreateFile(project string, req *model.CreateFileRequest, file io.Reader) error

CreateFile creates a file in the path provided

func (*Local) DeleteDir

func (l *Local) DeleteDir(project, path string) error

DeleteDir deletes a directory if it exists

func (*Local) DeleteFile

func (l *Local) DeleteFile(project, path string) error

DeleteFile deletes a directory if it exists

func (*Local) GetStoreType

func (l *Local) GetStoreType() utils.FileStoreType

GetStoreType returns the file store type

func (*Local) ListDir

func (l *Local) ListDir(project string, req *model.ListFilesRequest) ([]*model.ListFilesResponse, error)

ListDir lists the directory

func (*Local) ReadFile

func (l *Local) ReadFile(project, path string) (*model.File, error)

ReadFile reads a file from the path provided

Jump to

Keyboard shortcuts

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