openshift-rest-client
Advanced tools
Comparing version 0.7.0 to 0.8.0
@@ -79,6 +79,27 @@ 'use strict'; | ||
function remove (client) { | ||
return function remove (buildConfigName, options) { | ||
options = options || {}; | ||
if (!buildConfigName) { | ||
return Promise.reject(new Error('Build Config Name is required')); | ||
} | ||
const clientConfig = privates.get(client).config; | ||
const req = { | ||
method: 'DELETE', | ||
url: `${client.apiUrl}/namespaces/${clientConfig.context.namespace}/buildconfigs/${buildConfigName}`, | ||
body: options.body | ||
}; | ||
return request(client, req); | ||
}; | ||
} | ||
module.exports = { | ||
find: find, | ||
create: create, | ||
instantiateBinary: instantiateBinary | ||
instantiateBinary: instantiateBinary, | ||
remove: remove | ||
}; |
@@ -56,5 +56,26 @@ 'use strict'; | ||
function remove (client) { | ||
return function remove (imageStreamName, options) { | ||
options = options || {}; | ||
if (!imageStreamName) { | ||
return Promise.reject(new Error('Image Stream Name is required')); | ||
} | ||
const clientConfig = privates.get(client).config; | ||
const req = { | ||
method: 'DELETE', | ||
url: `${client.apiUrl}/namespaces/${clientConfig.context.namespace}/imagestreams/${imageStreamName}`, | ||
body: options.body | ||
}; | ||
return request(client, req); | ||
}; | ||
} | ||
module.exports = { | ||
find: find, | ||
create: create | ||
create: create, | ||
remove: remove | ||
}; |
{ | ||
"name": "openshift-rest-client", | ||
"version": "0.7.0", | ||
"version": "0.8.0", | ||
"description": "Node.js client for developing with OpenShift", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
42398
828