Expand description
The objects module: the declarative objects of the repository’s layer, listed, read
and searched, and the one resolution of a majordomus:// URI that objects.get and
the MCP resource read share.
Structs§
- Answer
View - A URI a query projects (
majordomus://repository), answered: the same fields a client reads on anObjectViewwhere they apply, the answer itself as data, and the textresources/readreturns for the URI. - Drifted
Object - One file of the layer that is no longer what the index read.
- GetInput
- The input of
objects.get: which object. - List
Input - Filters; both optional.
- Object
List - The answer of
objects.list: the matching objects, summarised, in URI order. - Search
Hit - One search hit: the object, summarised, and the first matching line of its content.
- Search
Input - The input of
objects.search: what to look for, where, how much. - Search
Result - The answer of
objects.search. - Verify
Input - The input of
objects.verify. - Verify
Report - The answer of
objects.verify.
Enums§
- Comparison
- How closely a file could be compared with what the index holds.
- Object
Standing - How one file stands against what the index read from it.
- Resolved
- What a
majordomus://URI names, resolved through the registry. This is the one ruleobjects.getand the MCPresources/readshare, so that the tool, the HTTP route and the resource cannot answer one URI differently. - Resource
View - The answer of
objects.get: what the URI resolved to, tagged bysourcethe way a capability’s provenance is.
Constants§
- SEARCH_
DEFAULT_ LIMIT - Hits returned by
objects.searchwhen no limit is given. - SEARCH_
MAX_ LIMIT - The most hits
objects.searchreturns; a larger limit is clamped to this.
Functions§
- module
- The module.
- resolve
- Resolve a URI: the capability the registry projects at it, then the object behind a
resource or the answer of a query. An unknown URI is
NotFound; a registry naming an object the index does not hold isInternal; a query that refuses passes its refusal through, and any other failure of the query isInternal, naming the capability.