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