objectStore

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInternal is returned when the db runs into an unexpected error.
	ErrInternal = errors.New("objectstore: internal error occurred")

	// ErrEntityNotFound is returned when a certain entity could not be located.
	ErrEntityNotFound = errors.New("objectstore: entity not found")

	// ErrEntityExists is returned when a certain entity was located but not meant to be.
	ErrEntityExists = errors.New("objectstore: entity already exists")

	// ErrPreconditionFailure is returned when there was a validation error with the parameters passed.
	ErrPreconditionFailure = errors.New("objectstore: parameters did not pass validation")
)

Functions

This section is empty.

Types

type Engine

type Engine interface {
	GetObject(key string) ([]byte, error)
	PutObject(key string, content []byte, force bool) error
	ListObjectKeys(prefix string) ([]string, error)
	DeleteObject(key string) error
}

type EngineType

type EngineType string
const (
	// EngineSqlite uses the sqlite db.
	EngineSqlite EngineType = "sqlite"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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