readonly

package
v0.11.3 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: Apache-2.0 Imports: 3 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