Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chest ¶
type Chest interface { Open(path string) (fs.File, error) Glob(pattern string) ([]FileStat, error) ReadDir(name string) ([]fs.DirEntry, error) ReplaceFile(oldpath, newpath string) error ReplaceDir(oldpath, newpath string) error MkdirAll(path string) error RmdirAll(path string) error WriteFile(path string, contents []byte) error }
func New ¶
New returns a Chest given the configuration provided. It can also wrap that Chest in an encryption routine on each operation.
func NewFilesystem ¶
type Config ¶
type Config struct { Filesystem FilesystemConfig Encryption EncryptionConfig }
type EncryptionConfig ¶
type FilesystemConfig ¶
type FilesystemConfig struct {
Directory string
}
Click to show internal directories.
Click to hide internal directories.