Documentation ¶
Overview ¶
Package storageos implements an os-backed storage Bucket.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewReadWriteBucket ¶ added in v0.19.0
func NewReadWriteBucket(rootPath string) (storage.ReadWriteBucket, error)
NewReadWriteBucket returns a new OS bucket.
Only regular files are handled, that is Exists should only be called for regular files, Get and Put only work for regular files, Put automatically calls Mkdir, and Walk only calls f on regular files.
The root path is expected to be normalized, however the root path can be absolute or jump context.
Not thread-safe.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.