clean up PR following review
Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
This commit is contained in:
@@ -26,17 +26,6 @@ export { actionsRegistryServiceRef, actionsServiceRef } from './refs';
|
||||
|
||||
import { createServiceRef } from '@backstage/backend-plugin-api';
|
||||
|
||||
/**
|
||||
* EXPERIMENTAL: System metadata service.
|
||||
* @alpha
|
||||
*/
|
||||
export const systemMetadataServiceRef = createServiceRef<
|
||||
import('./services/definitions/SystemMetadataService').SystemMetadataService
|
||||
>({
|
||||
id: 'core.systemMetadata',
|
||||
scope: 'root',
|
||||
});
|
||||
|
||||
export type {
|
||||
BackstageInstance,
|
||||
SystemMetadataService,
|
||||
|
||||
@@ -26,5 +26,5 @@ export interface BackstageInstance {
|
||||
* @alpha
|
||||
*/
|
||||
export interface SystemMetadataService {
|
||||
listInstances(): Promise<BackstageInstance[]>;
|
||||
introspect(): Promise<{ instances: BackstageInstance[] }>;
|
||||
}
|
||||
|
||||
@@ -289,4 +289,15 @@ export namespace coreServices {
|
||||
id: 'core.rootInstanceMetadata',
|
||||
scope: 'root',
|
||||
});
|
||||
|
||||
/**
|
||||
* Read information about your current Backstage deployment.
|
||||
* @alpha
|
||||
*/
|
||||
export const systemMetadataServiceRef = createServiceRef<
|
||||
import('./SystemMetadataService').SystemMetadataService
|
||||
>({
|
||||
id: 'core.systemMetadata',
|
||||
scope: 'root',
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user