Skip to content

Commit

Permalink
Add sshOptions to DockerOptions
Browse files Browse the repository at this point in the history
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/d6a6e90b142d6eeb4b0f3fe595987d5cce3d2d8f/types/docker-modem/index.d.ts#L34 shows that docker modems (which dockerode uses for new `Docker()` instances) now support passing through custom ssh options. 

Additional Info:
apocas/docker-modem#119 (comment)
  • Loading branch information
SelfhostedPro authored May 10, 2023
1 parent d6a6e90 commit 0934fd9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions types/dockerode/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
import * as stream from 'stream';
import * as events from 'events';
import * as DockerModem from 'docker-modem';

import { ConnectConfig } from 'ssh2';

declare namespace Dockerode {
class Container {
constructor(modem: any, id: string);
Expand All @@ -33,7 +34,6 @@ declare namespace Dockerode {
rename(options: {}, callback: Callback<any>): void;
rename(options: {}): Promise<any>;

update(options: {}, callback: Callback<any>): void;
update(options: {}): Promise<any>;

top(options: {}, callback: Callback<any>): void;
Expand Down Expand Up @@ -1184,6 +1184,7 @@ declare namespace Dockerode {
timeout?: number | undefined;
version?: string | undefined;
sshAuthAgent?: string | undefined;
sshOptions?: ConnectConfig | undefined;
Promise?: typeof Promise | undefined;
}

Expand Down

0 comments on commit 0934fd9

Please sign in to comment.