backend-plugin-api: export service refs via single coreServices object
Co-authored-by: Johan Haals <johan.haals@gmail.com> Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Copyright 2022 The Backstage Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export { configServiceRef as config } from './configServiceRef';
|
||||
export { httpRouterServiceRef as httpRouter } from './httpRouterServiceRef';
|
||||
export { loggerServiceRef as logger } from './loggerServiceRef';
|
||||
export { urlReaderServiceRef as urlReader } from './urlReaderServiceRef';
|
||||
export { cacheServiceRef as cache } from './cacheServiceRef';
|
||||
export { databaseServiceRef as database } from './databaseServiceRef';
|
||||
export { discoveryServiceRef as discovery } from './discoveryServiceRef';
|
||||
export { tokenManagerServiceRef as tokenManager } from './tokenManagerServiceRef';
|
||||
export { permissionsServiceRef as permissions } from './permissionsServiceRef';
|
||||
export { schedulerServiceRef as scheduler } from './schedulerServiceRef';
|
||||
export { rootLoggerServiceRef as rootLogger } from './rootLoggerServiceRef';
|
||||
export { pluginMetadataServiceRef as pluginMetadata } from './pluginMetadataServiceRef';
|
||||
export { lifecycleServiceRef as lifecycle } from './lifecycleServiceRef';
|
||||
@@ -14,21 +14,11 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export { configServiceRef } from './configServiceRef';
|
||||
export { httpRouterServiceRef } from './httpRouterServiceRef';
|
||||
import * as coreServices from './coreServices';
|
||||
|
||||
export { coreServices };
|
||||
export type { HttpRouterService } from './httpRouterServiceRef';
|
||||
export { loggerServiceRef } from './loggerServiceRef';
|
||||
export type { Logger } from './loggerServiceRef';
|
||||
export { urlReaderServiceRef } from './urlReaderServiceRef';
|
||||
export { cacheServiceRef } from './cacheServiceRef';
|
||||
export { databaseServiceRef } from './databaseServiceRef';
|
||||
export { discoveryServiceRef } from './discoveryServiceRef';
|
||||
export { tokenManagerServiceRef } from './tokenManagerServiceRef';
|
||||
export { permissionsServiceRef } from './permissionsServiceRef';
|
||||
export { schedulerServiceRef } from './schedulerServiceRef';
|
||||
export { rootLoggerServiceRef } from './rootLoggerServiceRef';
|
||||
export { pluginMetadataServiceRef } from './pluginMetadataServiceRef';
|
||||
export { lifecycleServiceRef } from './lifecycleServiceRef';
|
||||
export type {
|
||||
BackendLifecycle,
|
||||
BackendLifecycleShutdownHook,
|
||||
|
||||
Reference in New Issue
Block a user