update to just config reading-based
Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
This commit is contained in:
+13
-13
@@ -14,19 +14,19 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { Observable } from '@backstage/types';
|
||||
|
||||
/**
|
||||
* @public
|
||||
*/
|
||||
export interface BackstageInstance {
|
||||
internalUrl: string;
|
||||
externalUrl: string;
|
||||
/** @public */
|
||||
export interface RootSystemMetadataServicePluginInfo {
|
||||
readonly pluginId: string;
|
||||
readonly hosts: (string | { external: string; internal: string })[];
|
||||
}
|
||||
|
||||
/**
|
||||
* @public
|
||||
*/
|
||||
export interface SystemMetadataService {
|
||||
instances(): Observable<BackstageInstance[]>;
|
||||
/** @public */
|
||||
export interface RootSystemMetadataService {
|
||||
getInstalledPlugins: () => Promise<
|
||||
ReadonlyArray<RootSystemMetadataServicePluginInfo>
|
||||
>;
|
||||
|
||||
getHosts: () => Promise<
|
||||
ReadonlyArray<string | { external: string; internal: string }>
|
||||
>;
|
||||
}
|
||||
@@ -289,15 +289,15 @@ export namespace coreServices {
|
||||
id: 'core.rootInstanceMetadata',
|
||||
scope: 'root',
|
||||
});
|
||||
|
||||
|
||||
/**
|
||||
* Read information about your current Backstage deployment.
|
||||
* @public
|
||||
*/
|
||||
export const systemMetadata = createServiceRef<
|
||||
import('./SystemMetadataService').SystemMetadataService
|
||||
export const rootSystemMetadata = createServiceRef<
|
||||
import('./RootSystemMetadataService').RootSystemMetadataService
|
||||
>({
|
||||
id: 'core.systemMetadata',
|
||||
id: 'core.rootSystemMetadata',
|
||||
scope: 'root',
|
||||
});
|
||||
}
|
||||
|
||||
@@ -73,9 +73,9 @@ export type {
|
||||
SchedulerServiceTaskScheduleDefinitionConfig,
|
||||
} from './SchedulerService';
|
||||
export type {
|
||||
BackstageInstance,
|
||||
SystemMetadataService,
|
||||
} from './SystemMetadataService';
|
||||
RootSystemMetadataServicePluginInfo,
|
||||
RootSystemMetadataService,
|
||||
} from './RootSystemMetadataService';
|
||||
export type {
|
||||
UrlReaderService,
|
||||
UrlReaderServiceReadTreeOptions,
|
||||
|
||||
Reference in New Issue
Block a user