Documentation ¶
Index ¶
- type LStorage
- func (ls *LStorage) Delete(fpath string) error
- func (ls *LStorage) Get(fpath string) (io.ReadCloser, error)
- func (ls *LStorage) List(dir string, maxSize int) ([]string, error)
- func (ls *LStorage) Lock(fpath string) error
- func (ls *LStorage) Put(fpath string, data []byte) error
- func (ls *LStorage) PutReader(fpath string, reader io.Reader) error
- func (ls *LStorage) Unlock(fpath string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LStorage ¶
type LStorage struct {
// contains filtered or unexported fields
}
LStorage implements the strata.Storage interface using a locally mounted file system as its storage backing
func NewLStorage ¶
NewLStorage initializes the LStorage
func (*LStorage) Get ¶
func (ls *LStorage) Get(fpath string) (io.ReadCloser, error)
Get returns a reader to the specified path
func (*LStorage) List ¶
List returns a list of files (up to maxSize) in the given directory. Recursively search for files. If the directory does not exist, return an empty list.
Click to show internal directories.
Click to hide internal directories.