@131/docker-sdk
Advanced tools
Comparing version 0.11.3 to 1.0.0
{ | ||
"name": "@131/docker-sdk", | ||
"version": "0.11.3", | ||
"version": "1.0.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "stack.js", |
29
stack.js
@@ -126,3 +126,32 @@ "use strict"; | ||
} | ||
/* | ||
let binds = []; | ||
if(volumes_specs) { | ||
for(const volume of volumes_specs) { | ||
let bind = ""; | ||
if(typeof volume === 'string') { | ||
const [source, target] = volume.split(':'); | ||
bind = `${this.STACK_NAME}_${source}:${target}`; | ||
} | ||
else { | ||
let opts = []; | ||
bind = `${this.STACK_NAME}_${volume.source}:${volume.target}`; | ||
if('read_only' in volume) | ||
opts.push("ro"); | ||
if('volume' in volume && 'nocopy' in volume.volume) | ||
opts.push("nocopy"); | ||
if(opts.length) | ||
bind += ":" + opts.join(','); | ||
} | ||
binds.push(bind); | ||
} | ||
} | ||
*/ | ||
const labels = { | ||
@@ -129,0 +158,0 @@ "com.docker.stack.namespace" : this.STACK_NAME, |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
29972
735
1