1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-31 03:09:44 +02:00

feat(container-inspect): add the ability to inspect containers

This commit is contained in:
G07cha 2017-10-17 09:56:40 +03:00 committed by Anthony Lapenna
parent 925326e8aa
commit 7eaaf9a2a7
7 changed files with 62 additions and 12 deletions

View file

@ -140,18 +140,11 @@ angular.module('portainer.services')
};
service.containerTop = function(id) {
var deferred = $q.defer();
Container.top({id: id}).$promise
.then(function success(data) {
var containerTop = data;
deferred.resolve(containerTop);
})
.catch(function error(err) {
deferred.reject(err);
});
return deferred.promise;
return Container.top({id: id}).$promise;
};
service.inspect = function(id) {
return Container.inspect({id: id}).$promise;
};
return service;