storagemem

package
v1.40.1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: Apache-2.0 Imports: 13 Imported by: 11

Documentation

Overview

Package storagemem implements an in-memory storage Bucket.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyReadBucket added in v1.32.0

func CopyReadBucket(ctx context.Context, inputBucket storage.ReadBucket) (storage.ReadBucket, error)

CopyReadBucket will copy the input ReadBucket into an in-memory ReadBucket, if the input ReadBucket is not already an in-memory ReadBucket.

func NewReadBucket

func NewReadBucket(pathToData map[string][]byte) (storage.ReadBucket, error)

NewReadBucket returns a new ReadBucket.

func NewReadWriteBucket added in v1.0.0

func NewReadWriteBucket() storage.ReadWriteBucket

NewReadWriteBucket returns a new in-memory ReadWriteBucket.

Types

This section is empty.

Directories

Path Synopsis
Package internal splits out ImmutableObject into a separate package from storagemem to make it impossible to modify ImmutableObject via direct field access.
Package internal splits out ImmutableObject into a separate package from storagemem to make it impossible to modify ImmutableObject via direct field access.

Jump to

Keyboard shortcuts

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