Sha256: 8ba792a76b835474c2ba2bfa45fde4da89b29e4da2fba36a4fdcc2c2e2dcbe2c

Contents?: true

Size: 1.41 KB

Versions: 167

Compression:

Stored size: 1.41 KB

Contents

/**
 * @ngdoc service
 * @name  Bastion.product.service:ContainerRegistry
 *
 * @requires translate
 *
 * @description
 *   Provides a list of container registries
 */
angular.module('Bastion.products').service('ContainerRegistries',
    ['translate', function () {

        this.registries = {
            'redhat': { name: 'Red Hat Registry (registry.redhat.io)', url: "https://registry.redhat.io" },
            'dockerhub': { name: 'Docker Hub', url: "https://index.docker.io",
                                                createUrl: "https://registry-1.docker.io" },
            'quay': { name: 'Quay', url: "https://quay.io" },
            'custom': { name: 'Custom' }
        };

        this.urlFor = function (registryType, customUrl) {
            if (registryType === "custom") {
                return customUrl;
            } else if (angular.isDefined(this.registries[registryType])) {
                return this.registries[registryType].url;
            }
        };

        this.createUrlFor = function (registryType, customUrl) {
            if (registryType === "custom") {
                return customUrl;
            } else if (angular.isDefined(this.registries[registryType])) {
                if (this.registries[registryType].createUrl) {
                    return this.registries[registryType].createUrl;
                }
                return this.registries[registryType].url;
            }
        };
    }]
);

Version data entries

167 entries across 167 versions & 1 rubygems

Version Path
katello-4.14.3 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/container-registries.service.js
katello-4.14.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/container-registries.service.js
katello-4.15.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/container-registries.service.js
katello-4.15.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/container-registries.service.js
katello-4.15.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/container-registries.service.js
katello-4.14.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/container-registries.service.js
katello-4.14.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/container-registries.service.js
katello-4.14.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/container-registries.service.js
katello-4.14.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/container-registries.service.js
katello-4.14.0.rc1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/container-registries.service.js
katello-4.14.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/container-registries.service.js
katello-4.13.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/container-registries.service.js
katello-4.13.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/container-registries.service.js
katello-4.12.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/container-registries.service.js
katello-4.13.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/container-registries.service.js
katello-4.12.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/container-registries.service.js
katello-4.12.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/container-registries.service.js
katello-4.12.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/container-registries.service.js
katello-4.12.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/container-registries.service.js
katello-4.11.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/container-registries.service.js