Back to

Package storageos

Latest Go to latest

The latest major version is .

Published: Jul 24, 2020 | License: Apache-2.0 | Module:


Package storageos implements an os-backed storage Bucket.


func NewReadWriteBucket

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.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier