Documentation
¶
Index ¶
- type Local
- func (l *Local) Close() error
- func (l *Local) CreateDir(ctx context.Context, req *model.CreateFileRequest) error
- func (l *Local) CreateFile(ctx context.Context, req *model.CreateFileRequest, file io.Reader) error
- func (l *Local) DeleteDir(ctx context.Context, path string) error
- func (l *Local) DeleteFile(ctx context.Context, path string) error
- func (l *Local) DoesExists(ctx context.Context, path string) error
- func (l *Local) GetState(ctx context.Context) error
- func (l *Local) GetStoreType() utils.FileStoreType
- func (l *Local) ListDir(ctx context.Context, req *model.ListFilesRequest) ([]*model.ListFilesResponse, error)
- func (l *Local) ReadFile(ctx context.Context, 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) CreateFile ¶
CreateFile creates a file in the path provided
func (*Local) DeleteFile ¶
DeleteFile deletes a file if it exists
func (*Local) DoesExists ¶
DoesExists checks if the path exists
func (*Local) GetStoreType ¶
func (l *Local) GetStoreType() utils.FileStoreType
GetStoreType returns the file store type
func (*Local) ListDir ¶
func (l *Local) ListDir(ctx context.Context, req *model.ListFilesRequest) ([]*model.ListFilesResponse, error)
ListDir lists the directory
Click to show internal directories.
Click to hide internal directories.