Expand description
Manages the catalogue of features provided by plugins
Structs§
- Catalogue
Entry - Catalogue entry
Enums§
- Catalogue
Entry Provider Type - Provider of the catalogue entry
- Catalogue
Entry Type - Type of catalogue entry
- Resolved
Capability - Where a resolved catalogue entry’s capability should be dispatched. Shared by every transport
that lets a plugin call back into a capability by catalogue entry key - the gRPC
PluginHostservice, and the Lua/WASM host functions - so there is exactly one place that decides “who provides this entry”. See proposal 007 (“One resolver, [multiple] call directions”).
Functions§
- all_
entries - Returns a copy of all catalogue entries
- core_
entries - Returns catalogue entries provided by the core host framework (excludes plugin entries)
- find_
content_ generator - Find a content generator in the global catalogue for the provided content type
- find_
content_ matcher - Find a content matcher in the global catalogue for the provided content type
- lookup_
entry - Lookup an entry in the catalogue by the key, matched the same way
resolve_capabilitydoes: by name - the whole catalogue key, or a trailing run of its/-separated components. - register_
core_ entries - Register the core Pact framework entries in the global catalogue
- register_
plugin_ entries - Register the entries in the global catalogue
- remove_
plugin_ entries - Remove all entries for a plugin given the plugin name
- resolve_
capability - Resolve a callback’s catalogue entry key to a dispatch target, the same way
crate::content::ContentMatcher::is_core/crate::content::ContentGenerator::is_coredo for the driver’s own outbound calls. - resolve_
capability_ entry - Resolve a catalogue entry key to the entry itself, matching it the same way
resolve_capabilitydocuments. Callers that need the entry rather than a dispatch target -crate::field::find_field_matcherandcrate::field::find_field_generator, which wrap it in a matcher/generator - use this directly.