Documentation ¶
Index ¶
- type LookupOption
- type LookupOptions
- type Store
- func (st *Store) Close() error
- func (st *Store) Filter(lookupOptions ...LookupOption) (object.ReadCloser, error)
- func (st *Store) Get(hash object.Hash) (object.Object, error)
- func (st *Store) GetByStream(streamRootHash object.Hash) (object.ReadCloser, error)
- func (st *Store) GetByType(objectType string) (object.ReadCloser, error)
- func (st *Store) GetPinned() ([]object.Hash, error)
- func (st *Store) GetRelations(parent object.Hash) ([]object.Hash, error)
- func (st *Store) Put(obj object.Object) error
- func (st *Store) PutWithTimeout(obj object.Object, ttl time.Duration) error
- func (st *Store) Remove(hash object.Hash) error
- func (st *Store) UpdateTTL(hash object.Hash, minutes int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LookupOption ¶
type LookupOption func(*LookupOptions)
LookupOptions
func FilterByHash ¶
func FilterByHash(h object.Hash) LookupOption
func FilterByObjectType ¶
func FilterByObjectType(typePatterns ...string) LookupOption
func FilterByOwner ¶
func FilterByOwner(h crypto.PublicKey) LookupOption
func FilterByStreamHash ¶
func FilterByStreamHash(h object.Hash) LookupOption
type LookupOptions ¶
type LookupOptions struct { // Lookups are used to perform db queries for these filters // TODO find a better name for this Lookups struct { ObjectHashes []object.Hash StreamHashes []object.Hash ContentTypes []string Owners []crypto.PublicKey } }
LookupOptions
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) Filter ¶
func (st *Store) Filter( lookupOptions ...LookupOption, ) (object.ReadCloser, error)
func (*Store) GetByStream ¶ added in v0.11.0
func (*Store) GetByType ¶ added in v0.11.0
func (st *Store) GetByType( objectType string, ) (object.ReadCloser, error)
func (*Store) GetRelations ¶
func (*Store) PutWithTimeout ¶ added in v0.11.0
Click to show internal directories.
Click to hide internal directories.