Documentation
¶
Overview ¶
Package artifacts implements the Phase 72c `search.artifacts` runtime-side index — a server-enforced search over the artifact store's catalog, scoped to the caller's identity triple unless the `auth.ScopeAdmin` claim is present (D-079).
Every result row carries a populated `Ref` (artifacts are by-reference by construction per D-026); `Preview` is the redacted filename / mime summary.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Searcher ¶
type Searcher struct {
// contains filtered or unexported fields
}
Searcher serves the `search.artifacts` index.
func New ¶
func New(store artifactsubsys.ArtifactStore, deps search.Deps) (*Searcher, error)
New constructs a Searcher.
func (*Searcher) Index ¶
func (s *Searcher) Index() types.SearchIndex
Index implements search.Searcher.
func (*Searcher) Search ¶
func (s *Searcher) Search(ctx context.Context, req types.SearchRequest) (types.SearchResponse, error)
Search implements search.Searcher. The query matches against the artifact ID, Filename, MimeType, and Namespace. Facets honoured: `artifacts.mime` (exact prefix match — e.g. `image/`), `artifacts.namespace`.