How to use the @f5devcentral/f5-cloud-libs.cloudProvider.FEATURE_MESSAGING function in @f5devcentral/f5-cloud-libs

To help you get started, we’ve selected a few @f5devcentral/f5-cloud-libs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github F5Networks / f5-cloud-libs-gce / lib / gceCloudProvider.js View on Github external
function GceCloudProvider(options) {
    GceCloudProvider.super_.call(this, options);

    this.features[CloudProvider.FEATURE_MESSAGING] = true;
    this.features[CloudProvider.FEATURE_ENCRYPTION] = true;

    this.loggerOptions = options ? options.loggerOptions : undefined;

    logger = options ? options.logger : undefined;

    if (logger) {
        this.logger = logger;
        cloudUtil.setLogger(logger);
        cryptoUtil.setLogger(logger);
    } else if (this.loggerOptions) {
        this.loggerOptions.module = module;
        logger = Logger.getLogger(this.loggerOptions);
        cloudUtil.setLoggerOptions(this.loggerOptions);
        cryptoUtil.setLoggerOptions(this.loggerOptions);
        this.logger = logger;