Sha256: fc7f59f5b7ca40d53efb5f679647cb118771c7a04e0dcb876b6d7e6ec0bc1bea

Contents?: true

Size: 1.84 KB

Versions: 77

Compression:

Stored size: 1.84 KB

Contents

/**
 * @ngdoc service
 * @name  Bastion.repositories.factory:Repository
 *
 * @requires BastionResource
 * @requires CurrentOrganization
 *
 * @description
 *   Provides a BastionResource for product or list of repositories.
 */
angular.module('Bastion.repositories').factory('Repository',
    ['BastionResource', 'CurrentOrganization',
    function (BastionResource, CurrentOrganization) {

        return BastionResource('katello/api/v2/repositories/:id/:action',
            {id: '@id', 'organization_id': CurrentOrganization},
            {
                update: { method: 'PUT' },
                sync: { method: 'POST', params: { action: 'sync' } },
                removePackages: { method: 'PUT', params: { action: 'remove_packages'}},
                removeContent: { method: 'PUT', params: { action: 'remove_content'}},
                autocomplete: {method: 'GET', isArray: true, params: {id: 'auto_complete_search'}},
                repositoryTypes: {method: 'GET', isArray: true, params: {id: 'repository_types'}},
                republish: {method: 'PUT', params: { action: 'republish' }}
            }
        );

    }]
);

/**
 * @ngdoc service
 * @name  Bastion.repositories.factory:RepositoryBulkAction
 *
 * @requires BastionResource
 * @requires CurrentOrganization
 *
 * @description
 *   Provides a BastionResource for bulk actions on repositories.
 */
angular.module('Bastion.repositories').factory('RepositoryBulkAction',
    ['BastionResource', 'CurrentOrganization', function (BastionResource, CurrentOrganization) {

        return BastionResource('katello/api/v2/repositories/bulk/:action',
            {'organization_id': CurrentOrganization},
            {
                removeRepositories: {method: 'PUT', params: {action: 'destroy'}},
                syncRepositories: {method: 'POST', params: {action: 'sync'}}
            }
        );

    }]
);

Version data entries

77 entries across 77 versions & 1 rubygems

Version Path
katello-3.17.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/repository.factory.js
katello-3.16.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/repository.factory.js
katello-3.16.0.rc5.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/repository.factory.js
katello-3.16.0.rc5 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/repository.factory.js
katello-3.16.0.rc4.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/repository.factory.js
katello-3.15.3.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/repository.factory.js
katello-3.15.3 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/repository.factory.js
katello-3.16.0.rc4 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/repository.factory.js
katello-3.16.0.rc3.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/repository.factory.js
katello-3.15.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/repository.factory.js
katello-3.16.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/repository.factory.js
katello-3.16.0.rc2.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/repository.factory.js
katello-3.16.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/repository.factory.js
katello-3.15.1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/repository.factory.js
katello-3.16.0.rc1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/repository.factory.js
katello-3.15.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/repository.factory.js
katello-3.16.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/repository.factory.js
katello-3.15.0.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/repository.factory.js
katello-3.15.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/repository.factory.js
katello-3.15.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/repository.factory.js