objectstore

package
v0.11.3 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2020 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
	PutWithTimeout(object.Object, time.Duration) error
}

Jump to

Keyboard shortcuts

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