Documentation ¶
Index ¶
- type Local
- func (l *Local) Close() error
- func (l *Local) CreateDir(project string, req *model.CreateFileRequest) error
- func (l *Local) CreateFile(project string, req *model.CreateFileRequest, file io.Reader) error
- func (l *Local) DeleteDir(project, path string) error
- func (l *Local) DeleteFile(project, path string) error
- func (l *Local) GetStoreType() utils.FileStoreType
- func (l *Local) ListDir(project string, req *model.ListFilesRequest) ([]*model.ListFilesResponse, error)
- func (l *Local) ReadFile(project, path string) (*model.File, error)
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 (*Local) CreateDir ¶
func (l *Local) CreateDir(project string, req *model.CreateFileRequest) error
CreateDir creates a directory in the path provided
func (*Local) CreateFile ¶
CreateFile creates a file in the path provided
func (*Local) DeleteFile ¶
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
Click to show internal directories.
Click to hide internal directories.