Documentation ¶
Index ¶
- type LocalFileStore
- func (lfs *LocalFileStore) Delete(charmID string, path string) error
- func (lfs *LocalFileStore) Get(charmID string, path string) (fs.File, error)
- func (lfs *LocalFileStore) Put(charmID string, path string, r io.Reader, mode fs.FileMode) error
- func (lfs *LocalFileStore) Stat(charmID, path string) (fs.FileInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalFileStore ¶
type LocalFileStore struct {
Path string
}
LocalFileStore is a FileStore implementation that stores files locally in a folder.
func NewLocalFileStore ¶
func NewLocalFileStore(path string) (*LocalFileStore, error)
NewLocalFileStore creates a FileStore locally in the provided path. Files will be encrypted client-side and stored as regular file system files and folders.
func (*LocalFileStore) Delete ¶
func (lfs *LocalFileStore) Delete(charmID string, path string) error
Delete deletes the file at the given path for the provided Charm ID.
Click to show internal directories.
Click to hide internal directories.