storage

package
v0.1.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: May 26, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrKeyHasNoContent = errors.New("specified key has no contents")

ErrKeyHasNoContent is an error for file key that has no contents

View Source
var ErrKeyIsEmpty = errors.New("specified key is empty")

ErrKeyIsEmpty is an error for key is empty

View Source
var ErrRootKeyInvalid = errors.New("root key is invalid")

ErrRootKeyInvalid is an error for root key is invalid

View Source
var ErrStorageAccessConflict = errors.New("specified key is under accessing")

ErrStorageAccessConflict is an error for accessing key conflict

View Source
var ErrStorageNotFound = errors.New("specified key is not found")

ErrStorageNotFound is an error for not found accessing key

Functions

This section is empty.

Types

type Store

type Store interface {
	Create(key string, contents []byte) error
	Delete(key string) error
	Get(key string) ([]byte, error)
	ListKeys(key string) ([]string, error)
	List(key string) ([][]byte, error)
	Update(key string, contents []byte) error
	Replace(rootKey string, contents map[string][]byte) error
	DeleteCollection(rootKey string) error
}

Store is an interface for caching data into backend storage

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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