adds function documentation for catalog extension points

Signed-off-by: Brian Fletcher <brian@roadie.io>
This commit is contained in:
Brian Fletcher
2025-04-03 12:07:02 +01:00
parent 7885e01b62
commit 2c5598cb6d
2 changed files with 33 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog-node': patch
---
Adds documentation for the CatalogProcessingExtensionPoint functions.
+28
View File
@@ -54,13 +54,41 @@ export const catalogLocationsExtensionPoint =
* @alpha
*/
export interface CatalogProcessingExtensionPoint {
/**
* Adds entity processors. These are responsible for reading, parsing, and
* processing entities before they are persisted in the catalog.
*
* This function also can replace a Default processor if the provided processor
* matches the process name.
*
* @param processors - One or more processors
*/
addProcessor(
...processors: Array<CatalogProcessor | Array<CatalogProcessor>>
): void;
/**
* Adds or replaces entity providers. These are responsible for bootstrapping
* the list of entities out of original data sources. For example, there is
* one entity source for the config locations, and one for the database
* stored locations. If you ingest entities out of a third party system, you
* may want to implement that in terms of an entity provider as well.
*
* @param providers - One or more entity providers
*/
addEntityProvider(
...providers: Array<EntityProvider | Array<EntityProvider>>
): void;
/**
* Adds, or overwrites, a handler for placeholders (e.g. $file) in entity
* definition files.
*
* @param key - The key that identifies the placeholder, e.g. "file"
* @param resolver - The resolver that gets values for this placeholder
*/
addPlaceholderResolver(key: string, resolver: PlaceholderResolver): void;
setOnProcessingErrorHandler(
handler: (event: {
unprocessedEntity: Entity;