Sha256: 7f03306b590cf6dbbca40d57c89b095530df5b2bb0cafda8d6fa868577b3a3e2

Contents?: true

Size: 1.77 KB

Versions: 28

Compression:

Stored size: 1.77 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'}}
            }
        );

    }]
);

/**
 * @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

28 entries across 28 versions & 1 rubygems

Version Path
katello-3.3.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/repository.factory.js
katello-3.3.1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/repository.factory.js
katello-3.3.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/repository.factory.js
katello-3.3.0.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/repository.factory.js
katello-3.3.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/repository.factory.js
katello-3.3.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/repository.factory.js
katello-3.3.0.rc1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/repository.factory.js
katello-3.3.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/repository.factory.js
katello-3.2.1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/repository.factory.js
katello-3.2.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/repository.factory.js
katello-3.2.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/repository.factory.js
katello-3.2.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/repository.factory.js
katello-3.2.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/repository.factory.js
katello-3.2.0.rc1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/repository.factory.js
katello-3.2.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/repository.factory.js
katello-3.1.0.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/repository.factory.js
katello-3.1.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/repository.factory.js
katello-3.1.0.rc2.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/repository.factory.js
katello-3.0.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/repository.factory.js
katello-3.1.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/repository.factory.js