Versions in this module Expand all Collapse all v0 v0.2.0 Aug 6, 2026 Changes in this version + var ErrMissingDocument = errors.New("document not found") + var ErrObjectNotExist = errors.New("object does not exist") + type Backend struct + func NewBackend(store ObjectStore, prefix string) *Backend + func (backend *Backend) FindDocumentIDsByHash(ctx context.Context, algorithm sbom.HashAlgorithm, value string) ([]string, error) + func (backend *Backend) FindDocumentIDsByIdentifier(ctx context.Context, value string) ([]string, error) + func (backend *Backend) FindDocumentIDsByName(ctx context.Context, name string) ([]string, error) + func (backend *Backend) Retrieve(ctx context.Context, id string) (*sbom.Document, error) + func (backend *Backend) Store(ctx context.Context, doc *sbom.Document, opts *storage.StoreOptions) error + type Dimension string + const DimensionHash + const DimensionIdentifier + const DimensionName + type Indexer struct + func NewIndexer(store ObjectStore, prefix string) *Indexer + func (indexer *Indexer) FindDocumentIDs(ctx context.Context, dimension Dimension, value string) ([]string, error) + func (indexer *Indexer) Index(ctx context.Context, docID string, doc *sbom.Document) error + type ObjectStore interface + Exists func(ctx context.Context, key string) (bool, error) + Get func(ctx context.Context, key string) ([]byte, error) + List func(ctx context.Context, prefix string) ([]string, error) + Put func(ctx context.Context, key string, data []byte) error