readonly

package
v0.9.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package readonly implements wrapper around readonlyStorage that prevents all mutations.

Index

Constants

This section is empty.

Variables

View Source
var ErrReadonly = errors.Errorf("storage is read-only")

ErrReadonly returns an error indicating that storage is read only.

Functions

func NewWrapper

func NewWrapper(wrapped blob.Storage) blob.Storage

NewWrapper returns a readonly Storage wrapper that prevents any mutations to the underlying storage.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL