objectstore

package
v0.17.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// ErrNotFound is returned when a requested object or cid 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(cid object.CID) (*object.Object, error)
}

type Store

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

Jump to

Keyboard shortcuts

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