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

@types/dockerode

Package Overview
Dependencies
Maintainers
1
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/dockerode - npm Package Compare versions

Comparing version 3.2.3 to 3.2.4

780

dockerode/index.d.ts

@@ -338,3 +338,3 @@ // Type definitions for dockerode 3.2

RepoTags: string[];
RepoDigests?: string[];
RepoDigests?: string[] | undefined;
Created: number;

@@ -364,7 +364,7 @@ Size: number;

Mounts: Array<{
Name?: string;
Name?: string | undefined;
Type: string;
Source: string;
Destination: string;
Driver?: string;
Driver?: string | undefined;
Mode: string;

@@ -406,11 +406,11 @@ RW: boolean;

EnableIPv6: boolean;
IPAM?: IPAM;
IPAM?: IPAM | undefined;
Internal: boolean;
Attachable: boolean;
Ingress: boolean;
ConfigFrom?: { Network: string; };
ConfigFrom?: { Network: string; } | undefined;
ConfigOnly: boolean;
Containers?: { [id: string]: NetworkContainer };
Options?: { [key: string]: string };
Labels?: { [key: string]: string };
Containers?: { [id: string]: NetworkContainer } | undefined;
Options?: { [key: string]: string } | undefined;
Labels?: { [key: string]: string } | undefined;
}

@@ -420,11 +420,11 @@

Name: string;
CheckDuplicate?: boolean;
Driver?: string;
Internal?: boolean;
Attachable?: boolean;
Ingress?: boolean;
IPAM?: IPAM;
EnableIPv6?: boolean;
Options?: { [option: string]: string };
Labels?: { [label: string]: string };
CheckDuplicate?: boolean | undefined;
Driver?: string | undefined;
Internal?: boolean | undefined;
Attachable?: boolean | undefined;
Ingress?: boolean | undefined;
IPAM?: IPAM | undefined;
EnableIPv6?: boolean | undefined;
Options?: { [option: string]: string } | undefined;
Labels?: { [label: string]: string } | undefined;
}

@@ -443,4 +443,4 @@

Driver: string;
Config?: Array<{ [key: string]: string }>;
Options?: { [key: string]: string };
Config?: Array<{ [key: string]: string }> | undefined;
Options?: { [key: string]: string } | undefined;
}

@@ -453,3 +453,3 @@ /* tslint:enable:interface-name */

Mountpoint: string;
Status?: { [key: string]: string };
Status?: { [key: string]: string } | undefined;
Labels: { [key: string]: string };

@@ -463,3 +463,3 @@ Scope: 'local' | 'global';

RefCount: number;
} | null;
} | null | undefined;
}

@@ -493,3 +493,3 @@

}>;
};
} | undefined;
};

@@ -508,3 +508,3 @@ Image: string;

AppArmorProfile: string;
ExecIDs?: string[];
ExecIDs?: string[] | undefined;
HostConfig: HostConfig;

@@ -520,3 +520,3 @@ GraphDriver: {

Mounts: Array<{
Name?: string;
Name?: string | undefined;
Source: string;

@@ -544,3 +544,3 @@ Destination: string;

WorkingDir: string;
Entrypoint?: string | string[];
Entrypoint?: string | string[] | undefined;
OnBuild?: any;

@@ -596,3 +596,3 @@ Labels: { [label: string]: string };

Labels: any;
};
} | undefined;
};

@@ -681,45 +681,45 @@ }

interface HostConfig {
AutoRemove?: boolean;
Binds?: string[];
ContainerIDFile?: string;
AutoRemove?: boolean | undefined;
Binds?: string[] | undefined;
ContainerIDFile?: string | undefined;
LogConfig?: {
Type: string;
Config: any;
};
NetworkMode?: string;
} | undefined;
NetworkMode?: string | undefined;
PortBindings?: any;
RestartPolicy?: RestartPolicy;
VolumeDriver?: string;
RestartPolicy?: RestartPolicy | undefined;
VolumeDriver?: string | undefined;
VolumesFrom?: any;
Mounts?: MountConfig;
Mounts?: MountConfig | undefined;
CapAdd?: any;
CapDrop?: any;
Dns?: any[];
DnsOptions?: any[];
DnsSearch?: any[];
Dns?: any[] | undefined;
DnsOptions?: any[] | undefined;
DnsSearch?: any[] | undefined;
ExtraHosts?: any;
GroupAdd?: string[];
IpcMode?: string;
Cgroup?: string;
GroupAdd?: string[] | undefined;
IpcMode?: string | undefined;
Cgroup?: string | undefined;
Links?: any;
OomScoreAdj?: number;
PidMode?: string;
Privileged?: boolean;
PublishAllPorts?: boolean;
ReadonlyRootfs?: boolean;
OomScoreAdj?: number | undefined;
PidMode?: string | undefined;
Privileged?: boolean | undefined;
PublishAllPorts?: boolean | undefined;
ReadonlyRootfs?: boolean | undefined;
SecurityOpt?: any;
StorageOpt?: { [option: string]: string };
Tmpfs?: { [dir: string]: string };
UTSMode?: string;
UsernsMode?: string;
ShmSize?: number;
Sysctls?: { [index: string]: string };
Runtime?: string;
ConsoleSize?: number[];
Isolation?: string;
MaskedPaths?: string[];
ReadonlyPaths?: string[];
CpuShares?: number;
CgroupParent?: string;
BlkioWeight?: number;
StorageOpt?: { [option: string]: string } | undefined;
Tmpfs?: { [dir: string]: string } | undefined;
UTSMode?: string | undefined;
UsernsMode?: string | undefined;
ShmSize?: number | undefined;
Sysctls?: { [index: string]: string } | undefined;
Runtime?: string | undefined;
ConsoleSize?: number[] | undefined;
Isolation?: string | undefined;
MaskedPaths?: string[] | undefined;
ReadonlyPaths?: string[] | undefined;
CpuShares?: number | undefined;
CgroupParent?: string | undefined;
BlkioWeight?: number | undefined;
BlkioWeightDevice?: any;

@@ -730,17 +730,17 @@ BlkioDeviceReadBps?: any;

BlkioDeviceWriteIOps?: any;
CpuPeriod?: number;
CpuQuota?: number;
CpusetCpus?: string;
CpusetMems?: string;
CpuPeriod?: number | undefined;
CpuQuota?: number | undefined;
CpusetCpus?: string | undefined;
CpusetMems?: string | undefined;
Devices?: any;
DeviceCgroupRules?: string[];
DeviceRequests?: DeviceRequest[];
DiskQuota?: number;
KernelMemory?: number;
Memory?: number;
MemoryReservation?: number;
MemorySwap?: number;
MemorySwappiness?: number;
OomKillDisable?: boolean;
PidsLimit?: number;
DeviceCgroupRules?: string[] | undefined;
DeviceRequests?: DeviceRequest[] | undefined;
DiskQuota?: number | undefined;
KernelMemory?: number | undefined;
Memory?: number | undefined;
MemoryReservation?: number | undefined;
MemorySwap?: number | undefined;
MemorySwappiness?: number | undefined;
OomKillDisable?: boolean | undefined;
PidsLimit?: number | undefined;
Ulimits?: any;

@@ -774,4 +774,4 @@ }

WorkingDir: string;
Entrypoint?: string | string[];
OnBuild?: any[];
Entrypoint?: string | string[] | undefined;
OnBuild?: any[] | undefined;
Labels: { [label: string]: string };

@@ -798,3 +798,3 @@ };

WorkingDir: string;
Entrypoint?: string | string[];
Entrypoint?: string | string[] | undefined;
OnBuild: any[];

@@ -817,4 +817,4 @@ Labels: { [label: string]: string };

Type: string;
Layers?: string[];
BaseLayer?: string;
Layers?: string[] | undefined;
BaseLayer?: string | undefined;
};

@@ -824,31 +824,31 @@ }

interface ImageBuildOptions {
authconfig?: AuthConfig;
dockerfile?: string;
t?: string;
extrahosts?: string;
remote?: string;
q?: boolean;
cachefrom?: string;
pull?: string;
rm?: boolean;
forcerm?: boolean;
memory?: number;
memswap?: number;
cpushares?: number;
cpusetcpus?: number;
cpuperiod?: number;
cpuquota?: number;
buildargs?: {[key: string]: string};
shmsize?: number;
squash?: boolean;
labels?: {[key: string]: string};
networkmode?: string;
platform?: string;
target?: string;
outputs?: string;
authconfig?: AuthConfig | undefined;
dockerfile?: string | undefined;
t?: string | undefined;
extrahosts?: string | undefined;
remote?: string | undefined;
q?: boolean | undefined;
cachefrom?: string | undefined;
pull?: string | undefined;
rm?: boolean | undefined;
forcerm?: boolean | undefined;
memory?: number | undefined;
memswap?: number | undefined;
cpushares?: number | undefined;
cpusetcpus?: number | undefined;
cpuperiod?: number | undefined;
cpuquota?: number | undefined;
buildargs?: {[key: string]: string} | undefined;
shmsize?: number | undefined;
squash?: boolean | undefined;
labels?: {[key: string]: string} | undefined;
networkmode?: string | undefined;
platform?: string | undefined;
target?: string | undefined;
outputs?: string | undefined;
}
interface ImagePushOptions {
tag?: string;
authconfig?: AuthConfig;
tag?: string | undefined;
authconfig?: AuthConfig | undefined;
}

@@ -860,8 +860,8 @@

serveraddress: string;
email?: string;
email?: string | undefined;
}
interface PortBinding {
HostIp?: string;
HostPort?: string;
HostIp?: string | undefined;
HostPort?: string | undefined;
}

@@ -875,3 +875,3 @@

Name: string;
MaximumRetryCount?: number;
MaximumRetryCount?: number | undefined;
}

@@ -892,3 +892,3 @@

Type: LoggingDriverType;
Config?: { [key: string]: string };
Config?: { [key: string]: string } | undefined;
}

@@ -903,7 +903,7 @@

interface DeviceRequest {
Driver?: string;
Count?: number;
DeviceIDs?: string[];
Capabilities?: string[][];
Options?: { [key: string]: string };
Driver?: string | undefined;
Count?: number | undefined;
DeviceIDs?: string[] | undefined;
Capabilities?: string[][] | undefined;
Options?: { [key: string]: string } | undefined;
}

@@ -913,5 +913,5 @@

interface IPAMConfig {
IPv4Address?: string;
IPv6Address?: string;
LinkLocalIPs?: string[];
IPv4Address?: string | undefined;
IPv6Address?: string | undefined;
LinkLocalIPs?: string[] | undefined;
}

@@ -921,15 +921,15 @@ /* tslint:enable:interface-name */

interface EndpointSettings {
IPAMConfig?: IPAMConfig;
Links?: string[];
Aliases?: string[];
NetworkID?: string;
EndpointID?: string;
Gateway?: string;
IPAddress?: string;
IPPrefixLen?: number;
IPv6Gateway?: string;
GlobalIPv6Address?: string;
GlobalIPV6PrefixLen?: number;
MacAddress?: string;
DriverOpts?: { [key: string]: string };
IPAMConfig?: IPAMConfig | undefined;
Links?: string[] | undefined;
Aliases?: string[] | undefined;
NetworkID?: string | undefined;
EndpointID?: string | undefined;
Gateway?: string | undefined;
IPAddress?: string | undefined;
IPPrefixLen?: number | undefined;
IPv6Gateway?: string | undefined;
GlobalIPv6Address?: string | undefined;
GlobalIPV6PrefixLen?: number | undefined;
MacAddress?: string | undefined;
DriverOpts?: { [key: string]: string } | undefined;
}

@@ -942,12 +942,12 @@

interface ExecCreateOptions {
AttachStdin?: boolean;
AttachStdout?: boolean;
AttachStderr?: boolean;
DetachKeys?: string;
Tty?: boolean;
Env?: string[];
Cmd?: string[];
Privileged?: boolean;
User?: string;
WorkingDir?: string;
AttachStdin?: boolean | undefined;
AttachStdout?: boolean | undefined;
AttachStderr?: boolean | undefined;
DetachKeys?: string | undefined;
Tty?: boolean | undefined;
Env?: string[] | undefined;
Cmd?: string[] | undefined;
Privileged?: boolean | undefined;
User?: string | undefined;
WorkingDir?: string | undefined;
}

@@ -977,7 +977,7 @@

// hijack and stdin are used by docker-modem
hijack?: boolean;
stdin?: boolean;
hijack?: boolean | undefined;
stdin?: boolean | undefined;
// Detach and Tty are used by Docker's API
Detach?: boolean;
Tty?: boolean;
Detach?: boolean | undefined;
Tty?: boolean | undefined;
}

@@ -995,7 +995,7 @@

Type: MountType;
ReadOnly?: boolean;
Consistency?: MountConsistency;
ReadOnly?: boolean | undefined;
Consistency?: MountConsistency | undefined;
BindOptions?: {
Propagation: MountPropagation;
};
} | undefined;
VolumeOptions?: {

@@ -1008,7 +1008,7 @@ NoCopy: boolean;

};
};
} | undefined;
TmpfsOptions?: {
SizeBytes: number;
Mode: number;
};
} | undefined;
}

@@ -1019,28 +1019,28 @@

interface ContainerCreateOptions {
name?: string;
Hostname?: string;
Domainname?: string;
User?: string;
AttachStdin?: boolean;
AttachStdout?: boolean;
AttachStderr?: boolean;
Tty?: boolean;
OpenStdin?: boolean;
StdinOnce?: boolean;
Env?: string[];
Cmd?: string[];
Entrypoint?: string | string[];
Image?: string;
Labels?: { [label: string]: string };
Volumes?: { [volume: string]: {} };
WorkingDir?: string;
NetworkDisabled?: boolean;
MacAddress?: boolean;
ExposedPorts?: { [port: string]: {} };
StopSignal?: string;
StopTimeout?: number;
HostConfig?: HostConfig;
name?: string | undefined;
Hostname?: string | undefined;
Domainname?: string | undefined;
User?: string | undefined;
AttachStdin?: boolean | undefined;
AttachStdout?: boolean | undefined;
AttachStderr?: boolean | undefined;
Tty?: boolean | undefined;
OpenStdin?: boolean | undefined;
StdinOnce?: boolean | undefined;
Env?: string[] | undefined;
Cmd?: string[] | undefined;
Entrypoint?: string | string[] | undefined;
Image?: string | undefined;
Labels?: { [label: string]: string } | undefined;
Volumes?: { [volume: string]: {} } | undefined;
WorkingDir?: string | undefined;
NetworkDisabled?: boolean | undefined;
MacAddress?: boolean | undefined;
ExposedPorts?: { [port: string]: {} } | undefined;
StopSignal?: string | undefined;
StopTimeout?: number | undefined;
HostConfig?: HostConfig | undefined;
NetworkingConfig?: {
EndpointsConfig?: EndpointsConfig;
};
EndpointsConfig?: EndpointsConfig | undefined;
} | undefined;
}

@@ -1050,38 +1050,38 @@

pem: string | Buffer;
passphrase?: string;
passphrase?: string | undefined;
}
interface DockerOptions {
socketPath?: string;
host?: string;
port?: number | string;
username?: string;
ca?: string | string[] | Buffer | Buffer[];
cert?: string | string[] | Buffer | Buffer[];
key?: string | string[] | Buffer | Buffer[] | KeyObject[];
protocol?: 'https' | 'http' | 'ssh';
timeout?: number;
version?: string;
sshAuthAgent?: string;
Promise?: typeof Promise;
socketPath?: string | undefined;
host?: string | undefined;
port?: number | string | undefined;
username?: string | undefined;
ca?: string | string[] | Buffer | Buffer[] | undefined;
cert?: string | string[] | Buffer | Buffer[] | undefined;
key?: string | string[] | Buffer | Buffer[] | KeyObject[] | undefined;
protocol?: 'https' | 'http' | 'ssh' | undefined;
timeout?: number | undefined;
version?: string | undefined;
sshAuthAgent?: string | undefined;
Promise?: typeof Promise | undefined;
}
interface GetEventsOptions {
since?: number;
until?: number;
since?: number | undefined;
until?: number | undefined;
filters?:
| string
| {
config?: string;
container?: string[];
daemon?: string[];
event?: string[];
image?: string[];
label?: string[];
network?: string[];
node?: string[];
plugin?: string[];
scope?: Array<'local' | 'swarm'>;
secret?: string[];
service?: string[];
config?: string | undefined;
container?: string[] | undefined;
daemon?: string[] | undefined;
event?: string[] | undefined;
image?: string[] | undefined;
label?: string[] | undefined;
network?: string[] | undefined;
node?: string[] | undefined;
plugin?: string[] | undefined;
scope?: Array<'local' | 'swarm'> | undefined;
secret?: string[] | undefined;
service?: string[] | undefined;
type?: Array<

@@ -1098,5 +1098,5 @@ | 'container'

| 'config'
>;
volume?: string[];
};
> | undefined;
volume?: string[] | undefined;
} | undefined;
}

@@ -1109,20 +1109,20 @@

interface Annotations {
Name?: string;
Labels?: { [name: string]: string };
Name?: string | undefined;
Labels?: { [name: string]: string } | undefined;
}
interface ResourceLimits {
NanoCPUs?: number;
MemoryBytes?: number;
Pids?: number;
NanoCPUs?: number | undefined;
MemoryBytes?: number | undefined;
Pids?: number | undefined;
}
interface NamedGenericResource {
Kind?: string;
Value?: string;
Kind?: string | undefined;
Value?: string | undefined;
}
interface DiscreteGenericResource {
Kind?: string;
Value?: number;
Kind?: string | undefined;
Value?: number | undefined;
}

@@ -1133,33 +1133,33 @@

interface RestartPolicy {
Condition?: string;
Delay?: number;
MaxAttempts?: number;
Window?: number;
Condition?: string | undefined;
Delay?: number | undefined;
MaxAttempts?: number | undefined;
Window?: number | undefined;
}
interface Resources {
NanoCPUs?: number;
MemoryBytes?: number;
GenericResources?: GenericResource[];
NanoCPUs?: number | undefined;
MemoryBytes?: number | undefined;
GenericResources?: GenericResource[] | undefined;
}
interface ResourceRequirements {
Limits?: ResourceLimits;
Reservations?: Resources;
Limits?: ResourceLimits | undefined;
Reservations?: Resources | undefined;
}
interface Placement {
Constraints?: string[];
Preferences?: Array<{ Spread: { SpreadDescriptor: string } }>;
MaxReplicas?: number;
Constraints?: string[] | undefined;
Preferences?: Array<{ Spread: { SpreadDescriptor: string } }> | undefined;
MaxReplicas?: number | undefined;
Platforms?: Array<{
Architecture: string;
OS: string;
}>;
}> | undefined;
}
interface NetworkAttachmentConfig {
Target?: string;
Aliases?: string[];
DriverOpts?: { [key: string]: string };
Target?: string | undefined;
Aliases?: string[] | undefined;
DriverOpts?: { [key: string]: string } | undefined;
}

@@ -1169,27 +1169,27 @@

CredentialSpec?: {
Config?: string;
File?: string;
Registry?: string;
};
Config?: string | undefined;
File?: string | undefined;
Registry?: string | undefined;
} | undefined;
SELinuxContext?: {
Disable?: boolean;
User?: string;
Role?: string;
Type?: string;
Level?: string;
};
Disable?: boolean | undefined;
User?: string | undefined;
Role?: string | undefined;
Type?: string | undefined;
Level?: string | undefined;
} | undefined;
}
interface HealthConfig {
Test?: string[];
Interval?: number;
Timeout?: number;
StartPeriod?: number;
Retries?: number;
Test?: string[] | undefined;
Interval?: number | undefined;
Timeout?: number | undefined;
StartPeriod?: number | undefined;
Retries?: number | undefined;
}
interface DNSConfig {
Nameservers?: string[];
Search?: string[];
Options?: string[];
Nameservers?: string[] | undefined;
Search?: string[] | undefined;
Options?: string[] | undefined;
}

@@ -1199,73 +1199,73 @@

File?: {
Name?: string;
UID?: string;
GID?: string;
Mode?: number;
};
SecretID?: string;
SecretName?: string;
Name?: string | undefined;
UID?: string | undefined;
GID?: string | undefined;
Mode?: number | undefined;
} | undefined;
SecretID?: string | undefined;
SecretName?: string | undefined;
}
interface Ulimit {
Name?: string;
Hard?: number;
Soft?: number;
Name?: string | undefined;
Hard?: number | undefined;
Soft?: number | undefined;
}
interface ContainerSpec {
Image?: string;
Labels?: { [label: string]: string };
Command?: string[];
Args?: string[];
Hostname?: string;
Env?: string[];
Dir?: string;
User?: string;
Groups?: string[];
Privileges?: Privileges;
Init?: boolean;
TTY?: boolean;
OpenStdin?: boolean;
ReadOnly?: boolean;
Mounts?: MountSettings[];
StopSignal?: string;
StopGracePeriod?: number;
HealthCheck?: HealthConfig;
Hosts?: string[];
DNSConfig?: DNSConfig;
Secrets?: SecretReference[];
Isolation?: string;
Sysctls?: { [key: string]: string };
CapabilityAdd?: string[];
CapabilityDrop?: string[];
Ulimits?: Ulimit[];
Image?: string | undefined;
Labels?: { [label: string]: string } | undefined;
Command?: string[] | undefined;
Args?: string[] | undefined;
Hostname?: string | undefined;
Env?: string[] | undefined;
Dir?: string | undefined;
User?: string | undefined;
Groups?: string[] | undefined;
Privileges?: Privileges | undefined;
Init?: boolean | undefined;
TTY?: boolean | undefined;
OpenStdin?: boolean | undefined;
ReadOnly?: boolean | undefined;
Mounts?: MountSettings[] | undefined;
StopSignal?: string | undefined;
StopGracePeriod?: number | undefined;
HealthCheck?: HealthConfig | undefined;
Hosts?: string[] | undefined;
DNSConfig?: DNSConfig | undefined;
Secrets?: SecretReference[] | undefined;
Isolation?: string | undefined;
Sysctls?: { [key: string]: string } | undefined;
CapabilityAdd?: string[] | undefined;
CapabilityDrop?: string[] | undefined;
Ulimits?: Ulimit[] | undefined;
}
interface PluginSpec {
Name?: string;
Remote?: string;
Name?: string | undefined;
Remote?: string | undefined;
Privileges?: {
Name?: string;
Description?: string;
Value?: string[];
};
Disabled?: boolean;
Env?: string[];
Name?: string | undefined;
Description?: string | undefined;
Value?: string[] | undefined;
} | undefined;
Disabled?: boolean | undefined;
Env?: string[] | undefined;
}
interface TaskSpecBase {
Resources?: ResourceRequirements;
RestartPolicy?: RestartPolicy;
Placement?: Placement;
Networks?: NetworkAttachmentConfig[];
Resources?: ResourceRequirements | undefined;
RestartPolicy?: RestartPolicy | undefined;
Placement?: Placement | undefined;
Networks?: NetworkAttachmentConfig[] | undefined;
LogDriver?: {
Name?: string;
Options?: { [key: string]: string };
};
ForceUpdate?: number;
Runtime?: string;
Name?: string | undefined;
Options?: { [key: string]: string } | undefined;
} | undefined;
ForceUpdate?: number | undefined;
Runtime?: string | undefined;
}
interface ContainerTaskSpec extends TaskSpecBase {
ContainerSpec?: ContainerSpec;
ContainerSpec?: ContainerSpec | undefined;
}

@@ -1288,9 +1288,9 @@

interface ServiceMode {
Replicated?: { Replicas?: number };
Global?: {};
Replicated?: { Replicas?: number | undefined } | undefined;
Global?: {} | undefined;
ReplicatedJob?: {
MaxConcurrent?: number;
TotalCompletions?: number;
};
GlobalJob?: {};
MaxConcurrent?: number | undefined;
TotalCompletions?: number | undefined;
} | undefined;
GlobalJob?: {} | undefined;
}

@@ -1300,6 +1300,6 @@

Parallelism: number;
Delay?: number;
FailureAction?: string;
Monitor?: number;
MaxFailureRatio?: number;
Delay?: number | undefined;
FailureAction?: string | undefined;
Monitor?: number | undefined;
MaxFailureRatio?: number | undefined;
Order: string;

@@ -1309,36 +1309,36 @@ }

interface PortConfig {
Name?: string;
Protocol?: 'tcp' | 'udp' | 'sctp';
TargetPort?: number;
PublishedPort?: number;
PublishMode?: 'ingress' | 'host';
Name?: string | undefined;
Protocol?: 'tcp' | 'udp' | 'sctp' | undefined;
TargetPort?: number | undefined;
PublishedPort?: number | undefined;
PublishMode?: 'ingress' | 'host' | undefined;
}
interface EndpointSpec {
Mode?: string;
Ports?: PortConfig[];
Mode?: string | undefined;
Ports?: PortConfig[] | undefined;
}
interface EndpointVirtualIP {
NetworkID?: string;
Addr?: string;
NetworkID?: string | undefined;
Addr?: string | undefined;
}
interface Endpoint {
Spec?: EndpointSpec;
Ports?: PortConfig[];
VirtualIPs?: EndpointVirtualIP[];
Spec?: EndpointSpec | undefined;
Ports?: PortConfig[] | undefined;
VirtualIPs?: EndpointVirtualIP[] | undefined;
}
interface ServiceSpec extends Annotations {
TaskTemplate?: TaskSpec;
Mode?: ServiceMode;
UpdateConfig?: UpdateConfig;
RollbackConfig?: UpdateConfig;
Networks?: NetworkAttachmentConfig[];
EndpointSpec?: EndpointSpec;
TaskTemplate?: TaskSpec | undefined;
Mode?: ServiceMode | undefined;
UpdateConfig?: UpdateConfig | undefined;
RollbackConfig?: UpdateConfig | undefined;
Networks?: NetworkAttachmentConfig[] | undefined;
EndpointSpec?: EndpointSpec | undefined;
}
interface CreateServiceOptions extends ServiceSpec {
authconfig?: AuthConfig;
authconfig?: AuthConfig | undefined;
}

@@ -1348,3 +1348,3 @@

ID: string;
Warnings?: string[];
Warnings?: string[] | undefined;
}

@@ -1354,6 +1354,6 @@

Filters: {
id?: string[];
label?: string[];
mode?: Array<'replicated' | 'global'>;
name?: string[];
id?: string[] | undefined;
label?: string[] | undefined;
mode?: Array<'replicated' | 'global'> | undefined;
name?: string[] | undefined;
};

@@ -1363,9 +1363,9 @@ }

interface Version {
Index?: number;
Index?: number | undefined;
}
interface Meta {
Version?: Version;
CreatedAt?: string;
UpdatedAt?: string;
Version?: Version | undefined;
CreatedAt?: string | undefined;
UpdatedAt?: string | undefined;
}

@@ -1376,6 +1376,6 @@

interface UpdateStatus {
State?: UpdateState;
StartedAt?: string;
CompletedAt?: string;
Message?: string;
State?: UpdateState | undefined;
StartedAt?: string | undefined;
CompletedAt?: string | undefined;
Message?: string | undefined;
}

@@ -1391,3 +1391,3 @@

JobIteration: Version;
LastExecution?: string;
LastExecution?: string | undefined;
}

@@ -1397,24 +1397,24 @@

ID: string;
Spec?: ServiceSpec;
PreviousSpec?: ServiceSpec;
Endpoint?: Endpoint;
UpdateStatus?: UpdateStatus;
ServiceStatus?: ServiceStatus;
JobStatus?: JobStatus;
Spec?: ServiceSpec | undefined;
PreviousSpec?: ServiceSpec | undefined;
Endpoint?: Endpoint | undefined;
UpdateStatus?: UpdateStatus | undefined;
ServiceStatus?: ServiceStatus | undefined;
JobStatus?: JobStatus | undefined;
}
interface OrchestrationConfig {
TaskHistoryRetentionLimit?: number;
TaskHistoryRetentionLimit?: number | undefined;
}
interface RaftConfig {
SnapshotInterval?: number;
KeepOldSnapshots?: number;
LogEntriesForSlowFollowers?: number;
ElectionTick?: number;
HeartbeatTick?: number;
SnapshotInterval?: number | undefined;
KeepOldSnapshots?: number | undefined;
LogEntriesForSlowFollowers?: number | undefined;
ElectionTick?: number | undefined;
HeartbeatTick?: number | undefined;
}
interface DispatcherConfig {
HeartbeatPeriod?: Duration;
HeartbeatPeriod?: Duration | undefined;
}

@@ -1427,3 +1427,3 @@

URL: string;
Options?: { [key: string]: string };
Options?: { [key: string]: string } | undefined;
CACert: string;

@@ -1433,11 +1433,11 @@ }

interface CAConfig {
NodeCertExpiry?: Duration;
ExternalCAs?: ExternalCA[];
SigningCACert?: string;
SigningCAKey?: string;
ForceRotate?: number;
NodeCertExpiry?: Duration | undefined;
ExternalCAs?: ExternalCA[] | undefined;
SigningCACert?: string | undefined;
SigningCAKey?: string | undefined;
ForceRotate?: number | undefined;
}
interface TaskDefaults {
LogDriver?: Driver;
LogDriver?: Driver | undefined;
}

@@ -1450,14 +1450,14 @@

interface Spec extends Annotations {
Orchestration?: OrchestrationConfig;
Orchestration?: OrchestrationConfig | undefined;
Raft: RaftConfig;
Dispatcher?: DispatcherConfig;
CAConfig?: CAConfig;
TaskDefaults?: TaskDefaults;
EncryptionConfig?: EncryptionConfig;
Dispatcher?: DispatcherConfig | undefined;
CAConfig?: CAConfig | undefined;
TaskDefaults?: TaskDefaults | undefined;
EncryptionConfig?: EncryptionConfig | undefined;
}
interface TLSInfo {
TrustRoot?: string;
CertIssuerSubject?: string;
CertIssuerPublicKey?: string;
TrustRoot?: string | undefined;
CertIssuerSubject?: string | undefined;
CertIssuerPublicKey?: string | undefined;
}

@@ -1486,9 +1486,9 @@

Name: string;
Options?: { [key: string]: string };
Options?: { [key: string]: string } | undefined;
}
interface SecretSpec extends Annotations {
Data?: string;
Driver?: Driver;
Templating?: Driver;
Data?: string | undefined;
Driver?: Driver | undefined;
Templating?: Driver | undefined;
}

@@ -1498,3 +1498,3 @@

ID: string;
Spec?: SecretSpec;
Spec?: SecretSpec | undefined;
}

@@ -1506,4 +1506,4 @@

CreatedAt: string;
UpdatedAt?: string;
Spec?: ConfigSpec;
UpdatedAt?: string | undefined;
Spec?: ConfigSpec | undefined;
}

@@ -1522,7 +1522,7 @@

interface PluginInfo {
Id?: string;
Id?: string | undefined;
Name: string;
Enabled: boolean;
Settings: PluginSettings;
PluginReference?: string;
PluginReference?: string | undefined;
Config: PluginConfig;

@@ -1546,3 +1546,3 @@ }

WorkDir: string;
User?: User;
User?: User | undefined;
Network: Network;

@@ -1640,13 +1640,13 @@ Linux: Linux;

/** Since v1.30 */
condition?: 'not-running' | 'next-exit' | 'removed';
condition?: 'not-running' | 'next-exit' | 'removed' | undefined;
}
interface ContainerLogsOptions {
stdout?: boolean;
stderr?: boolean;
follow?: boolean;
since?: number;
details?: boolean;
tail?: number;
timestamps?: boolean;
stdout?: boolean | undefined;
stderr?: boolean | undefined;
follow?: boolean | undefined;
since?: number | undefined;
details?: boolean | undefined;
tail?: number | undefined;
timestamps?: boolean | undefined;
}

@@ -1653,0 +1653,0 @@

{
"name": "@types/dockerode",
"version": "3.2.3",
"version": "3.2.4",
"description": "TypeScript definitions for dockerode",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/dockerode",
"license": "MIT",

@@ -64,4 +65,4 @@ "contributors": [

},
"typesPublisherContentHash": "07bd65622d6718758fbe190835d4fa687b5ada2e4d552d3a72c5976a5a3909d7",
"typeScriptVersion": "3.5"
"typesPublisherContentHash": "f8914ad46006ff21f7bfbd8f9dbcefbeab1a9be1060ced327f6a7e1e0d96ba29",
"typeScriptVersion": "3.6"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Thu, 25 Mar 2021 20:31:55 GMT
* Last updated: Tue, 06 Jul 2021 20:32:45 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)

@@ -14,0 +14,0 @@ * Global values: none

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