mirror of https://github.com/portainer/portainer
15 lines
331 B
JavaScript
15 lines
331 B
JavaScript
|
angular.module('portainer.docker')
|
||
|
.factory('NodeHelper', [function NodeHelperFactory() {
|
||
|
'use strict';
|
||
|
return {
|
||
|
nodeToConfig: function(node) {
|
||
|
return {
|
||
|
Name: node.Spec.Name,
|
||
|
Role: node.Spec.Role,
|
||
|
Labels: node.Spec.Labels,
|
||
|
Availability: node.Spec.Availability
|
||
|
};
|
||
|
}
|
||
|
};
|
||
|
}]);
|