objectstore

package
v0.15.5 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2021 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// ErrNotFound is returned when a requested object or hash is not found
	ErrNotFound = errors.Error("not found")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Getter

type Getter interface {
	Get(hash object.Hash) (*object.Object, error)
}

type Store

type Store interface {
	Get(hash object.Hash) (*object.Object, error)
	GetByType(string) (object.ReadCloser, error)
	GetByStream(object.Hash) (object.ReadCloser, error)
	Put(*object.Object) error
	PutWithTTL(*object.Object, time.Duration) error
	GetStreamLeaves(streamRootHash object.Hash) ([]object.Hash, error)
	// TODO GetPinned should be replaced with something "better"
	GetPinned() ([]object.Hash, error)
}

Jump to

Keyboard shortcuts

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