2016-06-07 10:49:38 +02:00
|
|
|
(function() {
|
|
|
|
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
angular
|
|
|
|
.module('harbor.services.replication.job')
|
|
|
|
.factory('ListReplicationJobService', ListReplicationJobService);
|
|
|
|
|
|
|
|
ListReplicationJobService.$inject = ['$http'];
|
|
|
|
|
|
|
|
function ListReplicationJobService($http) {
|
|
|
|
|
|
|
|
return listReplicationJob;
|
|
|
|
|
2016-06-29 11:14:00 +02:00
|
|
|
function listReplicationJob(policyId, repository, status) {
|
2016-06-07 10:49:38 +02:00
|
|
|
return $http
|
|
|
|
.get('/api/jobs/replication/', {
|
|
|
|
'params': {
|
|
|
|
'policy_id': policyId,
|
2016-06-29 11:14:00 +02:00
|
|
|
'repository': repository,
|
|
|
|
'status': status
|
2016-06-07 10:49:38 +02:00
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})();
|