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:
parent
925326e8aa
commit
7eaaf9a2a7
7 changed files with 62 additions and 12 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue