1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-20 05:49:40 +02:00
portainer/app/docker/helpers/nodeHelper.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
362 B
JavaScript
Raw Permalink Normal View History

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,
};
},
};
},
]);