Comparing version 2.2.9 to 2.2.10
@@ -33,3 +33,4 @@ var extend = require('./util').extend, | ||
infoArchive: {}, | ||
putArchive: {} | ||
putArchive: {}, | ||
update: {} | ||
}; | ||
@@ -95,2 +96,28 @@ }; | ||
/** | ||
* Update | ||
* @param {Object} opts Update options | ||
* @param {Function} callback Callback | ||
*/ | ||
Container.prototype.update = function(opts, callback) { | ||
var args = util.processArgs(opts, callback, this.defaultOptions.update); | ||
var optsf = { | ||
path: '/containers/' + this.id + '/update', | ||
method: 'POST', | ||
statusCodes: { | ||
200: true, | ||
204: true, | ||
400: 'bad parameter', | ||
404: 'no such container', | ||
500: 'server error' | ||
}, | ||
options: args.opts | ||
}; | ||
this.modem.dial(optsf, function(err, data) { | ||
args.callback(err, data); | ||
}); | ||
}; | ||
/** | ||
* Top | ||
@@ -97,0 +124,0 @@ * @param {Object} Options like 'ps_args' (optional) |
{ | ||
"name": "dockerode", | ||
"description": "Docker Remote API module.", | ||
"version": "2.2.9", | ||
"version": "2.2.10", | ||
"author": "Pedro Dias <petermdias@gmail.com>", | ||
@@ -6,0 +6,0 @@ "maintainers": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
56156
1549