Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-docker-api

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-docker-api - npm Package Compare versions

Comparing version 1.1.19 to 1.1.20

60

lib/container.d.ts

@@ -11,4 +11,4 @@ /// <reference types="node" />

container: Container;
id: String;
data: Object;
id: string;
data: object;
/**

@@ -20,3 +20,3 @@ * Create an execution

*/
constructor(modem: Modem, container: Container, id: String);
constructor(modem: Modem, container: Container, id: string);
/**

@@ -28,3 +28,3 @@ * Create an exec instance in a container

*/
create(opts?: Object): Promise<Exec>;
create(opts?: object): Promise<Exec>;
/**

@@ -43,3 +43,3 @@ * Start an exec instance

*/
resize(opts?: Object): Promise<{}>;
resize(opts?: object): Promise<{}>;
/**

@@ -52,3 +52,3 @@ * Get status of an exec instance

*/
status(opts?: Object): Promise<Exec>;
status(opts?: object): Promise<Exec>;
}

@@ -73,3 +73,3 @@ /**

*/
get(id: String): Exec;
get(id: string): Exec;
/**

@@ -81,3 +81,3 @@ * Create an exec instance in a container

*/
create(opts?: Object): Promise<Exec>;
create(opts?: object): Promise<Exec>;
}

@@ -102,3 +102,3 @@ /**

*/
info(opts?: Object): Promise<String>;
info(opts?: object): Promise<String>;
/**

@@ -117,3 +117,3 @@ * Get a tar archive of a resource in the filesystem of a container

*/
put(file: fs.ReadStream, opts?: Object): Promise<Object>;
put(file: fs.ReadStream, opts?: object): Promise<Object>;
}

@@ -125,7 +125,7 @@ /**

modem: Modem;
id: String;
id: string;
fs: ContainerFs;
exec: ExecManager;
Warnings: Array<String>;
data: Object;
data: object;
/**

@@ -136,3 +136,3 @@ * Create an container object

*/
constructor(modem: Modem, id: String);
constructor(modem: Modem, id: string);
/**

@@ -145,3 +145,3 @@ * Get low-level information on a container

*/
status(opts?: Object): Promise<Container>;
status(opts?: object): Promise<Container>;
/**

@@ -153,3 +153,3 @@ * Get list of processes (ps) inside a container. Not supported in Windows.

*/
top(opts?: Object): Promise<Array<Object>>;
top(opts?: object): Promise<Array<Object>>;
/**

@@ -161,3 +161,3 @@ * Get stdout and stderr logs from a container

*/
logs(opts?: Object): Promise<Object>;
logs(opts?: object): Promise<Object>;
/**

@@ -182,3 +182,3 @@ * Get changes on a container's filesystem

*/
stats(opts?: Object): Promise<Object>;
stats(opts?: object): Promise<Object>;
/**

@@ -190,3 +190,3 @@ * Resize the TTY for a container. You must restart the container to make the resize take effect.

*/
resize(opts?: Object): Promise<Object>;
resize(opts?: object): Promise<Object>;
/**

@@ -198,3 +198,3 @@ * Start a container

*/
start(opts?: Object): Promise<Container>;
start(opts?: object): Promise<Container>;
/**

@@ -206,3 +206,3 @@ * Stop a container

*/
stop(opts?: Object): Promise<Container>;
stop(opts?: object): Promise<Container>;
/**

@@ -214,3 +214,3 @@ * Restart a container

*/
restart(opts?: Object): Promise<Container>;
restart(opts?: object): Promise<Container>;
/**

@@ -222,3 +222,3 @@ * Kill a container

*/
kill(opts?: Object): Promise<Container>;
kill(opts?: object): Promise<Container>;
/**

@@ -231,3 +231,3 @@ * Update configuration a container.

*/
update(opts?: Object): Promise<Container>;
update(opts?: object): Promise<Container>;
/**

@@ -239,3 +239,3 @@ * Rename a container.

*/
rename(opts: Object): Promise<Container>;
rename(opts: object): Promise<Container>;
/**

@@ -266,3 +266,3 @@ * Pause a container.

*/
wsattach(opts?: Object): Promise<Array<Object>>;
wsattach(opts?: object): Promise<Array<Object>>;
/**

@@ -280,3 +280,3 @@ * Block until a container stops, returning exit code

*/
delete(opts?: Object): Promise<{}>;
delete(opts?: object): Promise<{}>;
/**

@@ -298,3 +298,3 @@ * Commit container into an image

*/
get(id: String): Container;
get(id: string): Container;
/**

@@ -306,3 +306,3 @@ * Get the list of containers

*/
list(opts?: Object): Promise<Array<Container>>;
list(opts?: object): Promise<Array<Container>>;
/**

@@ -314,3 +314,3 @@ * Create a container

*/
create(opts?: Object): Promise<Container>;
create(opts?: object): Promise<Container>;
/**

@@ -322,3 +322,3 @@ * Prune a container

*/
prune(opts?: Object): Promise<Object>;
prune(opts?: object): Promise<Object>;
}

@@ -39,3 +39,3 @@ import Modem = require('docker-modem');

*/
auth(opts: Object): Promise<Object>;
auth(opts: object): Promise<Object>;
/**

@@ -65,3 +65,3 @@ * Get system wide information about docker

*/
events(opts?: Object): Promise<Object>;
events(opts?: object): Promise<Object>;
}

@@ -9,4 +9,4 @@ /// <reference types="node" />

modem: Modem;
id: String;
data: Object;
id: string;
data: object;
/**

@@ -17,3 +17,3 @@ * Creates a new image

*/
constructor(modem: Modem, id: String);
constructor(modem: Modem, id: string);
/**

@@ -26,3 +26,3 @@ * Get low-level information on an image

*/
status(opts?: Object): Promise<Image>;
status(opts?: object): Promise<Image>;
/**

@@ -35,3 +35,3 @@ * History of the image

*/
history(opts?: Object): Promise<Array<Object>>;
history(opts?: object): Promise<Array<Object>>;
/**

@@ -44,3 +44,3 @@ * Push an image to the registry

*/
push(auth?: Object, opts?: Object): Promise<Object>;
push(auth?: object, opts?: object): Promise<Object>;
/**

@@ -52,3 +52,3 @@ * Tag the image into the registry

*/
tag(opts?: Object): Promise<Image>;
tag(opts?: object): Promise<Image>;
/**

@@ -60,3 +60,3 @@ * Remove an image from the filesystem

*/
remove(opts?: Object): Promise<Array<Object>>;
remove(opts?: object): Promise<Array<Object>>;
/**

@@ -68,3 +68,3 @@ * Get an image in a tarball

*/
get(opts?: Object): Promise<Object>;
get(opts?: object): Promise<Object>;
}

@@ -79,3 +79,3 @@ export default class {

*/
get(id: String): Image;
get(id: string): Image;
/**

@@ -87,3 +87,3 @@ * Search an image on Docker Hub

*/
search(opts?: Object): Promise<Array<Object>>;
search(opts?: object): Promise<Array<Object>>;
/**

@@ -95,3 +95,3 @@ * Get the list of images

*/
list(opts?: Object): Promise<Array<Image>>;
list(opts?: object): Promise<Array<Image>>;
/**

@@ -105,3 +105,3 @@ * Build image from dockerfile

*/
build(file: fs.ReadStream, opts?: Object, auth?: Object): Promise<Object>;
build(file: fs.ReadStream, opts?: object, auth?: object): Promise<Object>;
/**

@@ -114,3 +114,3 @@ * Create an image

*/
create(auth: Object, opts?: Object): Promise<Object>;
create(auth: object, opts?: object): Promise<Object>;
/**

@@ -122,3 +122,3 @@ * Get all images in a tarball

*/
getAll(opts?: Object): Promise<Object>;
getAll(opts?: object): Promise<Object>;
/**

@@ -131,3 +131,3 @@ * Load image from tarball

*/
load(file: fs.ReadStream, opts?: Object): Promise<Object>;
load(file: fs.ReadStream, opts?: object): Promise<Object>;
/**

@@ -139,3 +139,3 @@ * Prune images

*/
prune(opts?: Object): Promise<String>;
prune(opts?: object): Promise<String>;
}

@@ -7,4 +7,4 @@ import Modem = require('docker-modem');

modem: Modem;
id: String;
data: Object;
id: string;
data: object;
/**

@@ -15,3 +15,3 @@ * Creates a new network

*/
constructor(modem: Modem, id: String);
constructor(modem: Modem, id: string);
/**

@@ -24,3 +24,3 @@ * Get low-level information on a network

*/
status(opts?: Object): Promise<{}>;
status(opts?: object): Promise<{}>;
/**

@@ -32,3 +32,3 @@ * Remove a network

*/
remove(opts?: Object): Promise<{}>;
remove(opts?: object): Promise<{}>;
/**

@@ -40,3 +40,3 @@ * Connect a container into the network

*/
connect(opts?: Object): Promise<{}>;
connect(opts?: object): Promise<{}>;
/**

@@ -48,3 +48,3 @@ * Disonnect a container into the network

*/
disconnect(opts?: Object): Promise<Network>;
disconnect(opts?: object): Promise<Network>;
}

@@ -59,3 +59,3 @@ export default class {

*/
get(id: String): Network;
get(id: string): Network;
/**

@@ -67,3 +67,3 @@ * Get the list of networks

*/
list(opts?: Object): Promise<Array<Network>>;
list(opts?: object): Promise<Array<Network>>;
/**

@@ -75,3 +75,3 @@ * Create a network

*/
create(opts?: Object): Promise<Network>;
create(opts?: object): Promise<Network>;
/**

@@ -83,3 +83,3 @@ * Prune network

*/
prune(opts?: Object): Promise<Object>;
prune(opts?: object): Promise<Object>;
}

@@ -7,4 +7,4 @@ import Modem = require('docker-modem');

modem: Modem;
id: String;
data: Object;
id: string;
data: object;
/**

@@ -15,3 +15,3 @@ * Create a node

*/
constructor(modem: Modem, id: String);
constructor(modem: Modem, id: string);
/**

@@ -23,3 +23,3 @@ * Update a node

*/
update(opts?: Object): Promise<Node>;
update(opts?: object): Promise<Node>;
/**

@@ -32,3 +32,3 @@ * Get low-level information on a node

*/
status(opts?: Object): Promise<{}>;
status(opts?: object): Promise<{}>;
/**

@@ -40,3 +40,3 @@ * Remove a node

*/
remove(opts: Object): Promise<{}>;
remove(opts: object): Promise<{}>;
}

@@ -55,3 +55,3 @@ export default class {

*/
get(id: String): Node;
get(id: string): Node;
/**

@@ -63,3 +63,3 @@ * Get the list of nodes

*/
list(opts?: Object): Promise<Array<Node>>;
list(opts?: object): Promise<Array<Node>>;
}

@@ -7,4 +7,4 @@ import Modem = require('docker-modem');

modem: Modem;
id: String;
data: Object;
id: string;
data: object;
/**

@@ -15,3 +15,3 @@ * Create a secret

*/
constructor(modem: Modem, id: String);
constructor(modem: Modem, id: string);
/**

@@ -24,3 +24,3 @@ * Get low-level information on a secret

*/
status(opts?: Object): Promise<Secret>;
status(opts?: object): Promise<Secret>;
/**

@@ -32,3 +32,3 @@ * Remove a secret

*/
remove(opts?: Object): Promise<{}>;
remove(opts?: object): Promise<{}>;
}

@@ -47,3 +47,3 @@ export default class {

*/
get(id: String): Secret;
get(id: string): Secret;
/**

@@ -55,3 +55,3 @@ * Get the list of secrets

*/
list(opts?: Object): Promise<Array<Secret>>;
list(opts?: object): Promise<Array<Secret>>;
/**

@@ -63,3 +63,3 @@ * Create a secret

*/
create(opts?: Object): Promise<Secret>;
create(opts?: object): Promise<Secret>;
}

@@ -7,4 +7,4 @@ import Modem = require('docker-modem');

modem: Modem;
id: String;
data: Object;
id: string;
data: object;
/**

@@ -15,3 +15,3 @@ * Create a service

*/
constructor(modem: Modem, id: String);
constructor(modem: Modem, id: string);
/**

@@ -23,3 +23,3 @@ * Update a service

*/
update(opts?: Object): Promise<Service>;
update(opts?: object): Promise<Service>;
/**

@@ -32,3 +32,3 @@ * Get low-level information on a service

*/
status(opts?: Object): Promise<Service>;
status(opts?: object): Promise<Service>;
/**

@@ -40,3 +40,3 @@ * Remove a service

*/
remove(opts?: Object): Promise<String>;
remove(opts?: object): Promise<String>;
/**

@@ -48,3 +48,3 @@ * Logs of a service

*/
logs(opts?: Object): Promise<String>;
logs(opts?: object): Promise<String>;
}

@@ -63,3 +63,3 @@ export default class {

*/
get(id: String): Service;
get(id: string): Service;
/**

@@ -71,3 +71,3 @@ * Create a service

*/
create(opts?: Object): Promise<Service>;
create(opts?: object): Promise<Service>;
/**

@@ -79,3 +79,3 @@ * Get the list of services

*/
list(opts?: Object): Promise<Array<Service>>;
list(opts?: object): Promise<Array<Service>>;
}

@@ -8,3 +8,3 @@ import Modem = require('docker-modem');

modem: Modem;
data: Object;
data: object;
/**

@@ -21,3 +21,3 @@ * Creates a new swarm

*/
init(opts?: Object): Promise<Node>;
init(opts?: object): Promise<Node>;
/**

@@ -30,3 +30,3 @@ * Get low-level information on a swarm

*/
status(opts?: Object): Promise<Swarm>;
status(opts?: object): Promise<Swarm>;
/**

@@ -38,3 +38,3 @@ * Join a swarm

*/
join(opts?: Object): Promise<String>;
join(opts?: object): Promise<String>;
/**

@@ -46,3 +46,3 @@ * Leave a swarm

*/
leave(opts?: Object): Promise<String>;
leave(opts?: object): Promise<String>;
/**

@@ -54,3 +54,3 @@ * Update a swarm

*/
update(opts?: Object): Promise<String>;
update(opts?: object): Promise<String>;
}

@@ -7,4 +7,4 @@ import Modem = require('docker-modem');

modem: Modem;
id: String;
data: Object;
id: string;
data: object;
/**

@@ -15,3 +15,3 @@ * Create a task

*/
constructor(modem: Modem, id: String);
constructor(modem: Modem, id: string);
/**

@@ -25,3 +25,3 @@ * Get low-level information on a task

*/
status(opts?: Object): Promise<{}>;
status(opts?: object): Promise<{}>;
}

@@ -41,3 +41,3 @@ export default class {

*/
get(id: String): Task;
get(id: string): Task;
/**

@@ -49,3 +49,3 @@ * Get the list of tasks

*/
list(opts?: Object): Promise<Array<Task>>;
list(opts?: object): Promise<Array<Task>>;
}

@@ -7,4 +7,4 @@ import Modem = require('docker-modem');

modem: Modem;
id: String;
data: Object;
id: string;
data: object;
/**

@@ -15,3 +15,3 @@ * Create a volume

*/
constructor(modem: Modem, id: String);
constructor(modem: Modem, id: string);
/**

@@ -25,3 +25,3 @@ * Get low-level information on a volume

*/
status(opts?: Object): Promise<Volume>;
status(opts?: object): Promise<Volume>;
/**

@@ -34,3 +34,3 @@ * Remove a volume from the filesystem

*/
remove(opts?: Object): Promise<{}>;
remove(opts?: object): Promise<{}>;
}

@@ -50,3 +50,3 @@ export default class {

*/
get(id: String): Volume;
get(id: string): Volume;
/**

@@ -58,3 +58,3 @@ * Get the list of volumes

*/
list(opts?: Object): Promise<Array<Volume>>;
list(opts?: object): Promise<Array<Volume>>;
/**

@@ -66,3 +66,3 @@ * Create a volume

*/
create(opts?: Object): Promise<Volume>;
create(opts?: object): Promise<Volume>;
/**

@@ -74,3 +74,3 @@ * Prune volumes

*/
prune(opts?: Object): Promise<Object>;
prune(opts?: object): Promise<Object>;
}
{
"name": "node-docker-api",
"version": "1.1.19",
"version": "1.1.20",
"description": "Docker Remote API driver for node",

@@ -5,0 +5,0 @@ "main": "./lib/docker",

@@ -14,4 +14,4 @@ 'use strict'

container: Container
id: String
data: Object = {}
id: string
data: object = {}

@@ -25,3 +25,3 @@ /**

constructor (modem: Modem, container: Container, id: String) {
constructor (modem: Modem, container: Container, id: string) {
this.modem = modem

@@ -38,3 +38,3 @@ this.container = container

*/
create (opts?: Object): Promise<Exec> {
create (opts?: object): Promise<Exec> {
const call = {

@@ -85,3 +85,3 @@ path: `/containers/${this.container.id}/exec?`,

return new Promise((resolve, reject) => {
this.modem.dial(call, (err, stream: Object) => {
this.modem.dial(call, (err, stream: object) => {
if (err) return reject(err)

@@ -99,3 +99,3 @@ resolve(stream)

*/
resize (opts?: Object): Promise<{}> {
resize (opts?: object): Promise<{}> {
const call = {

@@ -126,3 +126,3 @@ path: `/exec/${this.id}/resize?`,

*/
status (opts?: Object): Promise<Exec> {
status (opts?: object): Promise<Exec> {
const call = {

@@ -174,3 +174,3 @@ path: `/exec/${this.id}/json?`,

*/
get (id: String): Exec {
get (id: string): Exec {
return new Exec(this.modem, this.container, id)

@@ -185,3 +185,3 @@ }

*/
create (opts?: Object): Promise<Exec> {
create (opts?: object): Promise<Exec> {
const call = {

@@ -234,3 +234,3 @@ path: `/containers/${this.container.id}/exec?`,

*/
info (opts?: Object): Promise<String> {
info (opts?: object): Promise<String> {
const call = {

@@ -249,3 +249,3 @@ path: `/containers/${this.container.id}/archive?`,

return new Promise((resolve, reject) => {
this.modem.dial(call, (err, info: String) => {
this.modem.dial(call, (err, info: string) => {
if (err) return reject(err)

@@ -278,3 +278,3 @@ resolve(info)

return new Promise((resolve, reject) => {
this.modem.dial(call, (err, stream: Object) => {
this.modem.dial(call, (err, stream: object) => {
if (err) return reject(err)

@@ -292,3 +292,3 @@ resolve(stream)

*/
put (file: fs.ReadStream, opts?: Object): Promise<Object> {
put (file: fs.ReadStream, opts?: object): Promise<Object> {
const call = {

@@ -310,3 +310,3 @@ path: `/containers/${this.container.id}/archive?`,

return new Promise((resolve, reject) => {
this.modem.dial(call, (err, res: Object) => {
this.modem.dial(call, (err, res: object) => {
if (err) return reject(err)

@@ -324,7 +324,7 @@ resolve(res)

modem: Modem
id: String
id: string
fs: ContainerFs
exec: ExecManager
Warnings: Array<String> = []
data: Object = {}
data: object = {}

@@ -336,3 +336,3 @@ /**

*/
constructor (modem: Modem, id: String) {
constructor (modem: Modem, id: string) {
this.modem = modem

@@ -351,3 +351,3 @@ this.id = id

*/
status (opts?: Object): Promise<Container> {
status (opts?: object): Promise<Container> {
const call = {

@@ -380,3 +380,3 @@ path: `/containers/${this.id}/json?`,

*/
top (opts?: Object): Promise<Array<Object>> {
top (opts?: object): Promise<Array<Object>> {
const call = {

@@ -407,3 +407,3 @@ path: `/containers/${this.id}/top?`,

*/
logs (opts?: Object): Promise<Object> {
logs (opts?: object): Promise<Object> {
const call = {

@@ -423,3 +423,3 @@ path: `/containers/${this.id}/logs?`,

return new Promise((resolve, reject) => {
this.modem.dial(call, (err, logs: Object) => {
this.modem.dial(call, (err, logs: object) => {
if (err) return reject(err)

@@ -498,3 +498,3 @@ resolve(logs)

*/
stats (opts?: Object): Promise<Object> {
stats (opts?: object): Promise<Object> {
const call = {

@@ -513,3 +513,3 @@ path: `/containers/${this.id}/stats?`,

return new Promise((resolve, reject) => {
this.modem.dial(call, (err, stats: Object) => {
this.modem.dial(call, (err, stats: object) => {
if (err) return reject(err)

@@ -527,3 +527,3 @@ resolve(stats)

*/
resize (opts?: Object): Promise<Object> {
resize (opts?: object): Promise<Object> {
const call = {

@@ -541,3 +541,3 @@ path: `/containers/${this.id}/resize?`,

return new Promise((resolve, reject) => {
this.modem.dial(call, (err, res: Object) => {
this.modem.dial(call, (err, res: object) => {
if (err) return reject(err)

@@ -555,3 +555,3 @@ resolve(res)

*/
start (opts: Object = {}): Promise<Container> {
start (opts: object = {}): Promise<Container> {
const call = {

@@ -583,3 +583,3 @@ path: `/containers/${this.id}/start?`,

*/
stop (opts?: Object): Promise<Container> {
stop (opts?: object): Promise<Container> {
const call = {

@@ -611,3 +611,3 @@ path: `/containers/${this.id}/stop?`,

*/
restart (opts?: Object): Promise<Container> {
restart (opts?: object): Promise<Container> {
const call = {

@@ -638,3 +638,3 @@ path: `/containers/${this.id}/restart?`,

*/
kill (opts?: Object): Promise<Container> {
kill (opts?: object): Promise<Container> {
const call = {

@@ -666,3 +666,3 @@ path: `/containers/${this.id}/kill?`,

*/
update (opts?: Object): Promise<Container> {
update (opts?: object): Promise<Container> {
const call = {

@@ -696,3 +696,3 @@ path: `/containers/${this.id}/update?`,

*/
rename (opts: Object): Promise<Container> {
rename (opts: object): Promise<Container> {
const call = {

@@ -804,3 +804,3 @@ path: `/containers/${this.id}/rename?`,

*/
wsattach (opts?: Object): Promise<Array<Object>> {
wsattach (opts?: object): Promise<Array<Object>> {
const call = {

@@ -844,3 +844,3 @@ path: `/containers/${this.id}/attach/ws?`,

return new Promise((resolve, reject) => {
this.modem.dial(call, (err, code: Number) => {
this.modem.dial(call, (err, code: number) => {
if (err) return reject(err)

@@ -858,3 +858,3 @@ resolve(code)

*/
delete (opts?: Object): Promise<{}> {
delete (opts?: object): Promise<{}> {
const call = {

@@ -921,3 +921,3 @@ path: `/containers/${this.id}?`,

*/
get (id: String): Container {
get (id: string): Container {
return new Container(this.modem, id)

@@ -932,3 +932,3 @@ }

*/
list (opts?: Object): Promise<Array<Container>> {
list (opts?: object): Promise<Array<Container>> {
const call = {

@@ -963,3 +963,3 @@ path: '/containers/json?',

*/
create (opts?: Object): Promise<Container> {
create (opts?: object): Promise<Container> {
const call = {

@@ -995,3 +995,3 @@ path: '/containers/create?',

*/
prune (opts?: Object): Promise<Object> {
prune (opts?: object): Promise<Object> {
const call = {

@@ -1008,3 +1008,3 @@ path: `/containers/prune`,

return new Promise((resolve, reject) => {
this.modem.dial(call, (err, res: Object) => {
this.modem.dial(call, (err, res: object) => {
if (err) return reject(err)

@@ -1011,0 +1011,0 @@ resolve(res)

@@ -57,3 +57,3 @@ 'use strict'

*/
auth (opts: Object): Promise<Object> {
auth (opts: object): Promise<Object> {
const call = {

@@ -71,3 +71,3 @@ path: '/auth?',

return new Promise((resolve, reject) => {
this.modem.dial(call, (err, data: Object) => {
this.modem.dial(call, (err, data: object) => {
if (err) return reject(err)

@@ -95,3 +95,3 @@ resolve(data)

return new Promise((resolve, reject) => {
this.modem.dial(call, (err, data: Object) => {
this.modem.dial(call, (err, data: object) => {
if (err) return reject(err)

@@ -142,3 +142,3 @@ resolve(data)

return new Promise((resolve, reject) => {
this.modem.dial(call, (err, data: String) => {
this.modem.dial(call, (err, data: string) => {
if (err) return reject(err)

@@ -156,3 +156,3 @@ resolve(data)

*/
events (opts: Object = {}): Promise<Object> {
events (opts: object = {}): Promise<Object> {
const call = {

@@ -170,3 +170,3 @@ path: '/events?',

return new Promise((resolve, reject) => {
this.modem.dial(call, (err, data: Object) => {
this.modem.dial(call, (err, data: object) => {
if (err) return reject(err)

@@ -173,0 +173,0 @@ resolve(data)

@@ -11,4 +11,4 @@ 'use strict'

modem: Modem
id: String
data: Object = {}
id: string
data: object = {}

@@ -20,3 +20,3 @@ /**

*/
constructor (modem: Modem, id: String) {
constructor (modem: Modem, id: string) {
this.modem = modem

@@ -33,3 +33,3 @@ this.id = id

*/
status (opts?: Object): Promise<Image> {
status (opts?: object): Promise<Image> {
const call = {

@@ -63,3 +63,3 @@ path: `/images/${this.id}/json?`,

*/
history (opts?: Object): Promise<Array<Object>> {
history (opts?: object): Promise<Array<Object>> {
const call = {

@@ -91,3 +91,3 @@ path: `/images/${this.id}/history?`,

*/
push (auth?: Object, opts?: Object): Promise<Object> {
push (auth?: object, opts?: object): Promise<Object> {
const call = {

@@ -107,3 +107,3 @@ path: `/images/${this.id}/push?`,

return new Promise((resolve, reject) => {
this.modem.dial(call, (err, stream: Object) => {
this.modem.dial(call, (err, stream: object) => {
if (err) return reject(err)

@@ -121,3 +121,3 @@ resolve(stream)

*/
tag (opts?: Object): Promise<Image> {
tag (opts?: object): Promise<Image> {
const call = {

@@ -151,3 +151,3 @@ path: `/images/${this.id}/tag?`,

*/
remove (opts?: Object): Promise<Array<Object>> {
remove (opts?: object): Promise<Array<Object>> {
const call = {

@@ -179,3 +179,3 @@ path: `/images/${this.id}?`,

*/
get (opts?: Object): Promise<Object> {
get (opts?: object): Promise<Object> {
const call = {

@@ -193,3 +193,3 @@ path: `/images/${this.id}/get?`,

return new Promise((resolve, reject) => {
this.modem.dial(call, (err, stream: Object) => {
this.modem.dial(call, (err, stream: object) => {
if (err) return reject(err)

@@ -214,3 +214,3 @@ resolve(stream)

*/
get (id: String): Image {
get (id: string): Image {
return new Image(this.modem, id)

@@ -225,3 +225,3 @@ }

*/
search (opts?: Object): Promise<Array<Object>> {
search (opts?: object): Promise<Array<Object>> {
const call = {

@@ -251,3 +251,3 @@ path: `/images/search?`,

*/
list (opts?: Object): Promise<Array<Image>> {
list (opts?: object): Promise<Array<Image>> {
const call = {

@@ -284,3 +284,3 @@ path: '/images/json?',

*/
build (file: fs.ReadStream, opts?: Object, auth?: Object): Promise<Object> {
build (file: fs.ReadStream, opts?: object, auth?: object): Promise<Object> {
const call = {

@@ -300,3 +300,3 @@ path: '/build?',

return new Promise((resolve, reject) => {
this.modem.dial(call, (err, stream: Object) => {
this.modem.dial(call, (err, stream: object) => {
if (err) return reject(err)

@@ -315,3 +315,3 @@ resolve(stream)

*/
create (auth: Object, opts?: Object): Promise<Object> {
create (auth: object, opts?: object): Promise<Object> {
const call = {

@@ -330,3 +330,3 @@ path: '/images/create?',

return new Promise((resolve, reject) => {
this.modem.dial(call, (err, stream: Object) => {
this.modem.dial(call, (err, stream: object) => {
if (err) return reject(err)

@@ -344,3 +344,3 @@ resolve(stream)

*/
getAll (opts?: Object): Promise<Object> {
getAll (opts?: object): Promise<Object> {
const call = {

@@ -358,3 +358,3 @@ path: `/images/get?`,

return new Promise((resolve, reject) => {
this.modem.dial(call, (err, stream: Object) => {
this.modem.dial(call, (err, stream: object) => {
if (err) return reject(err)

@@ -373,3 +373,3 @@ resolve(stream)

*/
load (file: fs.ReadStream, opts?: Object): Promise<Object> {
load (file: fs.ReadStream, opts?: object): Promise<Object> {
const call = {

@@ -388,3 +388,3 @@ path: '/images/load?',

return new Promise((resolve, reject) => {
this.modem.dial(call, (err, stream: Object) => {
this.modem.dial(call, (err, stream: object) => {
if (err) return reject(err)

@@ -402,3 +402,3 @@ resolve(stream)

*/
prune (opts?: Object): Promise<String> {
prune (opts?: object): Promise<String> {
const call = {

@@ -415,3 +415,3 @@ path: `/images/prune`,

return new Promise((resolve, reject) => {
this.modem.dial(call, (err, res: String) => {
this.modem.dial(call, (err, res: string) => {
if (err) return reject(err)

@@ -418,0 +418,0 @@ resolve(res)

@@ -10,4 +10,4 @@ 'use strict'

modem: Modem
id: String
data: Object = {}
id: string
data: object = {}

@@ -19,3 +19,3 @@ /**

*/
constructor (modem: Modem, id: String) {
constructor (modem: Modem, id: string) {
this.modem = modem

@@ -32,3 +32,3 @@ this.id = id

*/
status (opts?: Object) {
status (opts?: object) {
const call = {

@@ -61,3 +61,3 @@ path: `/networks/${this.id}?`,

*/
remove (opts?: Object): Promise<{}> {
remove (opts?: object): Promise<{}> {
const call = {

@@ -88,3 +88,3 @@ path: `/networks/${this.id}?`,

*/
connect (opts?: Object) {
connect (opts?: object) {
const call = {

@@ -118,3 +118,3 @@ path: `/networks/${this.id}/connect?`,

*/
disconnect (opts?: Object): Promise<Network> {
disconnect (opts?: object): Promise<Network> {
const call = {

@@ -155,3 +155,3 @@ path: `/networks/${this.id}/disconnect?`,

*/
get (id: String): Network {
get (id: string): Network {
return new Network(this.modem, id)

@@ -166,3 +166,3 @@ }

*/
list (opts?: Object): Promise<Array<Network>> {
list (opts?: object): Promise<Array<Network>> {
const call = {

@@ -197,3 +197,3 @@ path: '/networks?',

*/
create (opts?: Object): Promise<Network> {
create (opts?: object): Promise<Network> {
const call = {

@@ -226,3 +226,3 @@ path: '/networks/create?',

*/
prune (opts?: Object): Promise<Object> {
prune (opts?: object): Promise<Object> {
const call = {

@@ -239,3 +239,3 @@ path: `/networks/prune`,

return new Promise((resolve, reject) => {
this.modem.dial(call, (err, res: Object) => {
this.modem.dial(call, (err, res: object) => {
if (err) return reject(err)

@@ -242,0 +242,0 @@ resolve(res)

@@ -10,4 +10,4 @@ 'use strict'

modem: Modem
id: String
data: Object = {}
id: string
data: object = {}

@@ -19,3 +19,3 @@ /**

*/
constructor (modem: Modem, id: String) {
constructor (modem: Modem, id: string) {
this.modem = modem

@@ -31,3 +31,3 @@ this.id = id

*/
update (opts?: Object): Promise<Node> {
update (opts?: object): Promise<Node> {
const call = {

@@ -61,3 +61,3 @@ path: `/nodes/${this.id}/update?`,

*/
status (opts?: Object) {
status (opts?: object) {
const call = {

@@ -90,3 +90,3 @@ path: `/nodes/${this.id}?`,

*/
remove (opts: Object): Promise<{}> {
remove (opts: object): Promise<{}> {
const call = {

@@ -128,3 +128,3 @@ path: `/nodes/${this.id}?`,

*/
get (id: String): Node {
get (id: string): Node {
return new Node(this.modem, id)

@@ -139,3 +139,3 @@ }

*/
list (opts?: Object): Promise<Array<Node>> {
list (opts?: object): Promise<Array<Node>> {
const call = {

@@ -142,0 +142,0 @@ path: '/nodes?',

@@ -10,4 +10,4 @@ 'use strict'

modem: Modem
id: String
data: Object = {}
id: string
data: object = {}

@@ -19,3 +19,3 @@ /**

*/
constructor (modem: Modem, id: String) {
constructor (modem: Modem, id: string) {
this.modem = modem

@@ -32,3 +32,3 @@ this.id = id

*/
status (opts?: Object): Promise<Secret> {
status (opts?: object): Promise<Secret> {
const call = {

@@ -62,3 +62,3 @@ path: `/secrets/${this.id}?`,

*/
remove (opts?: Object): Promise<{}> {
remove (opts?: object): Promise<{}> {
const call = {

@@ -100,3 +100,3 @@ path: `/secrets/${this.id}?`,

*/
get (id: String): Secret {
get (id: string): Secret {
return new Secret(this.modem, id)

@@ -111,3 +111,3 @@ }

*/
list (opts?: Object): Promise<Array<Secret>> {
list (opts?: object): Promise<Array<Secret>> {
const call = {

@@ -142,3 +142,3 @@ path: '/secrets',

*/
create (opts?: Object): Promise<Secret> {
create (opts?: object): Promise<Secret> {
const call = {

@@ -145,0 +145,0 @@ path: '/secrets/create?',

@@ -10,4 +10,4 @@ 'use strict'

modem: Modem
id: String
data: Object = {}
id: string
data: object = {}

@@ -19,3 +19,3 @@ /**

*/
constructor (modem: Modem, id: String) {
constructor (modem: Modem, id: string) {
this.modem = modem

@@ -31,3 +31,3 @@ this.id = id

*/
update (opts?: Object): Promise<Service> {
update (opts?: object): Promise<Service> {
const call = {

@@ -61,3 +61,3 @@ path: `/services/${this.id}/update?`,

*/
status (opts?: Object): Promise<Service> {
status (opts?: object): Promise<Service> {
const call = {

@@ -90,3 +90,3 @@ path: `/services/${this.id}?`,

*/
remove (opts?: Object): Promise<String> {
remove (opts?: object): Promise<String> {
const call = {

@@ -104,3 +104,3 @@ path: `/services/${this.id}?`,

return new Promise((resolve, reject) => {
this.modem.dial(call, (err, res: String) => {
this.modem.dial(call, (err, res: string) => {
if (err) return reject(err)

@@ -118,3 +118,3 @@ resolve(res)

*/
logs (opts?: Object): Promise<String> {
logs (opts?: object): Promise<String> {
const call = {

@@ -160,3 +160,3 @@ path: `/services/${this.id}/logs?`,

*/
get (id: String): Service {
get (id: string): Service {
return new Service(this.modem, id)

@@ -171,3 +171,3 @@ }

*/
create (opts?: Object): Promise<Service> {
create (opts?: object): Promise<Service> {
const call = {

@@ -200,3 +200,3 @@ path: '/services/create?',

*/
list (opts?: Object): Promise<Array<Service>> {
list (opts?: object): Promise<Array<Service>> {
const call = {

@@ -203,0 +203,0 @@ path: '/services?',

@@ -11,3 +11,3 @@ 'use strict'

modem: Modem
data: Object = {}
data: object = {}

@@ -28,3 +28,3 @@ /**

*/
init (opts?: Object): Promise<Node> {
init (opts?: object): Promise<Node> {
const call = {

@@ -57,3 +57,3 @@ path: '/swarm/init?',

*/
status (opts?: Object): Promise<Swarm> {
status (opts?: object): Promise<Swarm> {
const call = {

@@ -86,3 +86,3 @@ path: `/swarm?`,

*/
join (opts?: Object): Promise<String> {
join (opts?: object): Promise<String> {
const call = {

@@ -100,3 +100,3 @@ path: `/swarm/join?`,

return new Promise((resolve, reject) => {
this.modem.dial(call, (err, id: String) => {
this.modem.dial(call, (err, id: string) => {
if (err) return reject(err)

@@ -114,3 +114,3 @@ resolve(id)

*/
leave (opts?: Object): Promise<String> {
leave (opts?: object): Promise<String> {
const call = {

@@ -127,3 +127,3 @@ path: `/swarm/leave?`,

return new Promise((resolve, reject) => {
this.modem.dial(call, (err, res: String) => {
this.modem.dial(call, (err, res: string) => {
if (err) return reject(err)

@@ -141,3 +141,3 @@ resolve(res)

*/
update (opts?: Object): Promise<String> {
update (opts?: object): Promise<String> {
const call = {

@@ -155,3 +155,3 @@ path: `/swarm/update?`,

return new Promise((resolve, reject) => {
this.modem.dial(call, (err, res: String) => {
this.modem.dial(call, (err, res: string) => {
if (err) return reject(err)

@@ -158,0 +158,0 @@ resolve(res)

@@ -10,4 +10,4 @@ 'use strict'

modem: Modem
id: String
data: Object = {}
id: string
data: object = {}

@@ -19,3 +19,3 @@ /**

*/
constructor (modem: Modem, id: String) {
constructor (modem: Modem, id: string) {
this.modem = modem

@@ -33,3 +33,3 @@ this.id = id

*/
status (opts?: Object) {
status (opts?: object) {
const call = {

@@ -74,3 +74,3 @@ path: `/tasks/${this.id}?`,

*/
get (id: String): Task {
get (id: string): Task {
return new Task(this.modem, id)

@@ -85,3 +85,3 @@ }

*/
list (opts?: Object): Promise<Array<Task>> {
list (opts?: object): Promise<Array<Task>> {
const call = {

@@ -88,0 +88,0 @@ path: '/tasks?',

@@ -10,4 +10,4 @@ 'use strict'

modem: Modem
id: String
data: Object = {}
id: string
data: object = {}

@@ -19,3 +19,3 @@ /**

*/
constructor (modem: Modem, id: String) {
constructor (modem: Modem, id: string) {
this.modem = modem

@@ -33,3 +33,3 @@ this.id = id

*/
status (opts?: Object): Promise<Volume> {
status (opts?: object): Promise<Volume> {
const call = {

@@ -63,3 +63,3 @@ path: `/volumes/${this.id}?`,

*/
remove (opts?: Object): Promise<{}> {
remove (opts?: object): Promise<{}> {
const call = {

@@ -103,3 +103,3 @@ path: `/volumes/${this.id}?`,

*/
get (id: String): Volume {
get (id: string): Volume {
return new Volume(this.modem, id)

@@ -114,3 +114,3 @@ }

*/
list (opts?: Object): Promise<Array<Volume>> {
list (opts?: object): Promise<Array<Volume>> {
const call = {

@@ -145,3 +145,3 @@ path: '/volumes',

*/
create (opts?: Object): Promise<Volume> {
create (opts?: object): Promise<Volume> {
const call = {

@@ -173,3 +173,3 @@ path: '/volumes/create?',

*/
prune (opts?: Object): Promise<Object> {
prune (opts?: object): Promise<Object> {
const call = {

@@ -186,3 +186,3 @@ path: `/volumes/prune`,

return new Promise((resolve, reject) => {
this.modem.dial(call, (err, res: Object) => {
this.modem.dial(call, (err, res: object) => {
if (err) return reject(err)

@@ -189,0 +189,0 @@ resolve(res)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc