UNPKG

@backstage/integration

Version:

Helpers for managing integrations towards external systems

23 lines (20 loc) 648 B
'use strict'; 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 }; } exports.GOOGLE_GCS_HOST = GOOGLE_GCS_HOST; exports.readGoogleGcsIntegrationConfig = readGoogleGcsIntegrationConfig; //# sourceMappingURL=config.cjs.js.map