Back to godoc.org

Package storageos

v0.20.5
Latest Go to latest

The latest major version is .

Published: Jul 24, 2020 | License: Apache-2.0 | Module: github.com/bufbuild/buf

Overview

Package storageos implements an os-backed storage Bucket.

Index

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