UNPKG

@backstage/integration

Version:

Helpers for managing integrations towards external systems

20 lines (18 loc) 577 B
const GOOGLE_GCS_HOST = "storage.cloud.google.com"; function readGoogleGcsIntegrationConfig(config) { if (!config) { return { host: GOOGLE_GCS_HOST }; } if (!config.has("clientEmail") && !config.has("privateKey")) { return { host: GOOGLE_GCS_HOST }; } const privateKey = config.getString("privateKey").split("\\n").join("\n"); const clientEmail = config.getString("clientEmail"); return { host: GOOGLE_GCS_HOST, clientEmail, privateKey }; } export { GOOGLE_GCS_HOST, readGoogleGcsIntegrationConfig }; //# sourceMappingURL=config.esm.js.map