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 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) }
Click to show internal directories.
Click to hide internal directories.