Commit Graph

81 Commits

Author SHA1 Message Date
Stuart
1c70b92460
[dockerode] Add types for exec instances (#45954) 2020-07-10 08:03:45 -07:00
Maxime Chéramy
385d6cbe7a
fix: options argument is optional (#45725)
Here's the declaration of the function:

/**
 * Pull is a wrapper around createImage, parsing image's tags.
 * @param  {String}   repoTag  Repository tag
 * @param  {Object}   opts     Options (optional)
 * @param  {Function} callback Callback
 * @param  {Object}   auth     Authentication (optional)
 * @return {Object}            Image
 */
Docker.prototype.pull = function(repoTag, opts, callback, auth) {}
2020-06-26 14:26:10 -04:00
Jasper
f3227e802f
Use correct data structures for Config and Options in IPAM definition (#45441)
Co-authored-by: Jasper Jansen <jansen@voltolabs.com>
2020-06-12 14:01:44 -04:00
Stuart
9d605ded55
Use NetworkCreateOptions in createNetwork() (#45218) 2020-06-01 15:07:53 -07:00
Stuart
a4769c3dd7
🤖 Merge PR #45209 Add NetworkCreateOptions and type createNetwork by @stuartthomson 2020-06-01 06:12:38 -07:00
Ravikumar Palanisamy
57ddb3dd13
[Dockerode] Add Platform property to ContainerInspectInfo (#44554)
* Add Platform property to ContainerInspectInfo

* make Platform required
2020-05-19 10:43:33 -07:00
Wesley Wigham
6970a8fffa
#no-publishing-comment No more tabs in json documents, trailing newlines for every document 2020-05-15 12:27:10 -07:00
Campbell
94a573e281
🐛 Typo: IPv4Address(Ipv4Address) (#44052) 2020-04-26 12:21:31 -04:00
Brandon Waterloo [MSFT]
64968e5677
[@types/dockerode]: add SSH options to DockerOptions interface (#43781)
* Update dockerode-tests.ts

* Update interface and fix test
2020-04-10 20:22:50 -07:00
Page-
f614dfc4ce
dockerode: Improve GetEventsOptions to allow passing a filter object (#43100)
* dockerode: apply prettier

* dockerode: improve GetEventsOptions to allow passing a filter object
2020-03-23 15:20:31 -04:00
Stuart
07c6fa8c77
Add DeviceRequests (#43238) 2020-03-20 11:24:39 -04:00
Cristian Greco
409cc43910
dockerode: Add Health to ContainerInspectInfo.State (#42548)
* dockerode: Add Health to ContainerInspectInfo.State

* Update index.d.ts

* Add FailingStreak and Log to Health object
2020-02-25 10:50:43 -08:00
Gabriela Araujo Britto
e980ea529f
Update tslint configs (#42555)
* Update tslint configs

* Update npm-naming configs

* Fix some configs

#no-publishing-comment
2020-02-24 16:06:03 -08:00
CameronDiver
d824e5f317
Add StopTimeout parameter to ContainerCreate (#42445)
Signed-off-by: Cameron Diver <cameron@balena.io>
2020-02-18 10:02:54 -08:00
Ciffelia
88be0f225c
[dockerode] Add Dockerode.GetEventsOptions (#42235) 2020-02-10 13:29:51 -08:00
CameronDiver
eeeb815207 Dockerode: Add RootFS to image inspect typing (#40848)
From: https://docs.docker.com/engine/api/v1.40/#operation/ImageInspect

Signed-off-by: Cameron Diver <cameron@balena.io>
2019-12-05 21:37:51 -08:00
CameronDiver
7797cfdd1a [Dockerode] Add Mounts field to ContainerInfo (#36568)
Also add the optional name field to ContainerInspectInfo.Mounts

Signed-off-by: Cameron Diver <cameron@balena.io>
2019-07-01 10:21:42 -07:00
stuartthomson
4084c37e80 Add to NetworkInspectInfo: (#36120)
* IPAM
* Containers
* Options
* Label
2019-06-11 13:35:03 -07:00
the2ndlaw
28981e2b04 Add getConfig and listConfigs (#35817) 2019-05-30 11:10:15 -07:00
Aras Abbasi
4176f2fee6 add missing createConfig to @types/dockerode (#35716)
* add missing createConfig

* remove whitespace
2019-05-28 12:16:07 -07:00
carlzogheib
1d1bbccd34 Re-use RestartPolicy interface in HostConfig (#35069) 2019-04-28 23:36:19 -07:00
stuartthomson
a0c4baea71 Add missing parameters to HostConfig + standardise (#35024) 2019-04-26 12:36:31 -07:00
stuartthomson
e09e79218d [dockerode] add VolumeOptions & TmpfsOptions to MountSettings (#34991)
* add VolumeOptions & TmpfsOptions to MountSettings

* Labels and Options as { [name: string]: string }
2019-04-25 19:08:29 -07:00
Cameron Diver
472c31d775
Correctly type Entrypoint fields for creation and inspection
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-04-03 16:00:50 +01:00
Kasra Bigdeli
5614607c3b Updated Dockerode Service definition (#32508)
* Updated Dockerode Service definition

Added logs to Service definition of Dockerode. Service, similar to Container, has log related methods:
https://github.com/apocas/dockerode/blob/master/lib/service.js#L140
https://github.com/apocas/dockerode/blob/master/lib/container.js#L990

* Removed name from authors

* Removed whitespace
2019-01-28 11:26:19 -08:00
Cameron Diver
da9fcc9dd5
Type the listVolumes response
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-01-22 15:00:12 +00:00
Cameron Diver
1c8452b787
Add VolumeInspectInfo interface and return it from Volume.inspect
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-01-22 14:19:37 +00:00
Pascal Sthamer
84efa71066
Mount config for creating a container 2018-12-12 14:05:43 +01:00
Pascal Sthamer
ba36ee1631
Fix tslint error 2018-12-12 12:53:43 +01:00
Pascal Sthamer
cea66cd28f
Forgot to update return types 2018-12-12 12:44:19 +01:00
Pascal Sthamer
c73305cc54
Include container.stats types 2018-12-12 12:42:20 +01:00
Pascal Sthamer
01401844ac
Remove duplicate DockerVersion interface 2018-12-11 18:57:07 +01:00
CameronDiver
e1b2162dce
Fix typo
Co-Authored-By: P4sca1 <sthamer.pascal@gmail.com>
2018-12-11 18:53:50 +01:00
Pascal Sthamer
c477ba3fd0
Merge branch 'master' into master 2018-12-11 18:08:03 +01:00
Pascal Sthamer
1d69ae6694 dockerode definition update 2018-12-11 17:50:07 +01:00
Kapil Sachdeva
f577cf04e3 dockerode - fix the EndpointsConfig in ContainerCreateOptions / add necessary new definitions (#30417) 2018-11-14 16:04:42 -08:00
Cameron Diver
00cfabb9a7
Fix typo in dockerode DeviceMapping interface
Signed-off-by: Cameron Diver <cameron@balena.io>
2018-11-07 10:57:57 +00:00
Kapil Sachdeva
2ecb8765a0 dockerode - add definition for AuthConfig 2018-11-06 10:29:16 -06:00
Kapil Sachdeva
4ca1d661b9 dockerode - remove the formatting (done by vscode) to ease the review 2018-11-06 10:22:37 -06:00
Kapil Sachdeva
adb0eb59dd dockerod - misc fixes and additional typings 2018-11-05 13:31:42 -06:00
Raul Hidalgo Caballero
a1bfc7d50d
Update index.d.ts 2018-10-29 01:34:50 +01:00
Raul Hidalgo Caballero
dc78e5c1fb
Update index.d.ts 2018-10-29 00:58:24 +01:00
Raul Hidalgo Caballero
3224edf06e
Add Version Interface 2018-10-28 23:31:02 +01:00
Geoff Rich
5fc1e8a77b Re-add import back in. 2018-06-28 07:40:44 +10:00
Geoff Rich
a5a806bcff Add array of streams option to run command. 2018-06-28 07:37:14 +10:00
Rob Moran
c2aeb9799d Fix some of the generic response types 2018-02-18 10:10:16 +00:00
Rob Moran
8923b0dbcb createImage doesn't return Dockerode.Image 2018-02-17 23:29:47 +00:00
Rob Moran
63f6f74847 Added contributor 2018-02-16 16:10:01 +00:00
Rob Moran
aa9e921b86 loadImage and importImage can also accept streams 2018-02-16 16:06:03 +00:00
Andy Hanson
45c9246c09 Remove esModuleInterop from tsconfigs (no longer mandatory) 2018-02-14 14:55:13 -08:00