@backstage/integration
Version:
Helpers for managing integrations towards external systems
40 lines (36 loc) • 977 B
JavaScript
;
var helpers = require('../helpers.cjs.js');
var config = require('./config.cjs.js');
class GoogleGcsIntegration {
constructor(integrationConfig) {
this.integrationConfig = integrationConfig;
}
static factory = ({
config: config$1
}) => {
const gcsConfig = config$1.has("integrations.googleGcs") ? config.readGoogleGcsIntegrationConfig(
config$1.getConfig("integrations.googleGcs")
) : { host: config.GOOGLE_GCS_HOST };
return helpers.basicIntegrations(
[new GoogleGcsIntegration(gcsConfig)],
(i) => i.config.host
);
};
get type() {
return "googleGcs";
}
get title() {
return this.integrationConfig.host;
}
get config() {
return this.integrationConfig;
}
resolveUrl(options) {
return helpers.defaultScmResolveUrl(options);
}
resolveEditUrl(url) {
return url;
}
}
exports.GoogleGcsIntegration = GoogleGcsIntegration;
//# sourceMappingURL=GoogleGcsIntegration.cjs.js.map