MCPcopy
hub / github.com/apocas/dockerode / dialWithSession

Function dialWithSession

lib/docker.js:302–322  ·  view source on GitHub ↗
(callback)

Source from the content-addressed store, hash-verified

300 }
301
302 function dialWithSession(callback) {
303 if (opts?.version === "2") {
304 withSession(self, optsf.authconfig,(err, sessionId, done) => {
305 if (err) {
306 return callback(err);
307 }
308
309 optsf.options.session = sessionId;
310
311 dial((err, data) => {
312 callback(err, data);
313
314 if (data) {
315 data.on("end", done);
316 }
317 });
318 });
319 } else {
320 dial(callback);
321 }
322 }
323
324 if (callback === undefined) {
325 return new self.modem.Promise(function (resolve, reject) {

Callers 1

docker.jsFile · 0.85

Calls 2

withSessionFunction · 0.85
dialFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…