import * as API from "@distilled.cloud/core/api"; import * as C from "@distilled.cloud/core/category"; // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-docker/specs/swagger.json). Do not edit. import * as S from "@distilled.cloud/core/schema-lite"; import * as __L from "@distilled.cloud/core/schema-lite"; import type * as Redacted from "effect/Redacted"; import { DockerServiceErrors } from "../errors.ts"; import { DockerProtocol, type DockerOpError, type DockerOpContext } from "../protocol.ts"; import * as Retry from "../retry.ts"; import * as T from "../traits.ts"; // Schema table, filled on first reach (see __S at the end). const __s: any[] = []; export type { DockerOpError, DockerOpContext }; /** Span facts shared by every operation (com.distilled.telemetry#service). */ const TELEMETRY = { system: "docker-api", responseHeaders: [ { header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" }, { header: "request-id", name: "http.response.header.request-id", transform: "list" }, ], prefix: "Docker", service: "Docker", labels: "docker", propagate: "w3c", } as const; export class BadRequest extends /*@__PURE__*/ T.applyErrorMatchers( /*@__PURE__*/ S.TaggedError()("BadRequest", { code: S.Number, message: S.String, body: /*@__PURE__*/ S.optional( /*@__PURE__*/ S.Union([/*@__PURE__*/ S.suspend(() => __S(0, __c0, 0)), S.String]), ), headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)), }).pipe(C.withBadRequestError), [{ status: 400 }], ) { declare readonly body?: ErrorResponse | string; } export class Conflict extends /*@__PURE__*/ T.applyErrorMatchers( /*@__PURE__*/ S.TaggedError()("Conflict", { code: S.Number, message: S.String, body: /*@__PURE__*/ S.optional( /*@__PURE__*/ S.Union([/*@__PURE__*/ S.suspend(() => __S(0, __c0, 0)), S.String]), ), headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)), }).pipe(C.withConflictError), [{ status: 409 }], ) { declare readonly body?: ErrorResponse | string; } export class Forbidden extends /*@__PURE__*/ T.applyErrorMatchers( /*@__PURE__*/ S.TaggedError()("Forbidden", { code: S.Number, message: S.String, body: /*@__PURE__*/ S.optional( /*@__PURE__*/ S.Union([/*@__PURE__*/ S.suspend(() => __S(0, __c0, 0)), S.String]), ), headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)), }).pipe(C.withAuthError), [{ status: 403 }], ) { declare readonly body?: ErrorResponse | string; } export class NotFound extends /*@__PURE__*/ T.applyErrorMatchers( /*@__PURE__*/ S.TaggedError()("NotFound", { code: S.Number, message: S.String, body: /*@__PURE__*/ S.optional( /*@__PURE__*/ S.Union([/*@__PURE__*/ S.suspend(() => __S(0, __c0, 0)), S.String]), ), headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)), }).pipe(C.withBadRequestError), [{ status: 404 }], ) { declare readonly body?: ErrorResponse | string; } export interface ArchiveContainerRequest { /** ID or name of the container */ id: string; /** Resource in the container's filesystem to archive. */ path: string; } export interface ArchiveContainerResponse {} export interface AttachContainerRequest { /** ID or name of the container */ id: string; /** Override the key sequence for detaching a container.Format is a single character `[a-Z]` or `ctrl-` where `` is one of: `a-z`, `@`, `^`, `[`, `,` or `_`. */ detachKeys?: string | undefined; /** Replay previous logs from the container. This is useful for attaching to a container that has started and you want to output everything since the container started. If `stream` is also enabled, once all the previous output has been returned, it will seamlessly transition into streaming current output. */ logs?: boolean | undefined; /** Stream attached streams from the time the request was made onwards. */ stream?: boolean | undefined; /** Attach to `stdin` */ stdin?: boolean | undefined; /** Attach to `stdout` */ stdout?: boolean | undefined; /** Attach to `stderr` */ stderr?: boolean | undefined; } export interface AttachContainerResponse {} export interface BuildPruneRequest { /** Amount of disk space in bytes to keep for cache */ reserved_space?: number | undefined; /** Maximum amount of disk space allowed to keep for cache */ max_used_space?: number | undefined; /** Target amount of free disk space after pruning */ min_free_space?: number | undefined; /** Remove all types of build cache */ all?: boolean | undefined; /** A JSON encoded value of the filters (a `map[string][]string`) to process on the list of build cache objects. Available filters: - `until=` remove cache older than ``. The `` can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. `10m`, `1h30m`) computed relative to the daemon's local time. - `id=` - `parent=` - `type=` - `description=` - `inuse` - `shared` - `private` */ filters?: string | undefined; } export type BuildPruneResponseCachesDeletedList = Array; export interface BuildPruneResponse { CachesDeleted?: BuildPruneResponseCachesDeletedList | undefined; /** Disk space reclaimed in bytes */ SpaceReclaimed?: number | undefined; } /** An object mapping ports to an empty object in the form: `{"/": {}}` */ export type CommitImageRequestExposedPortsMap = { [key: string]: unknown | undefined }; /** A list of environment variables to set inside the container in the form `["VAR=value", ...]`. A variable without `=` is removed from the environment, rather than to have an empty value. */ export type CommitImageRequestEnvList = Array; /** Command to run specified as a string or an array of strings. */ export type CommitImageRequestCmdList = Array; /** The test to perform. Possible values are: - `[]` inherit healthcheck from image or parent image - `["NONE"]` disable healthcheck - `["CMD", args...]` exec arguments directly - `["CMD-SHELL", command]` run command with system's default shell A non-zero exit code indicates a failed healthcheck: - `0` healthy - `1` unhealthy - `2` reserved (treated as unhealthy) - other values: error running probe */ export type HealthConfigTestList = Array; /** A test to perform to check that the container is healthy. Healthcheck commands should be side-effect free. */ export interface HealthConfig { /** The test to perform. Possible values are: - `[]` inherit healthcheck from image or parent image - `["NONE"]` disable healthcheck - `["CMD", args...]` exec arguments directly - `["CMD-SHELL", command]` run command with system's default shell A non-zero exit code indicates a failed healthcheck: - `0` healthy - `1` unhealthy - `2` reserved (treated as unhealthy) - other values: error running probe */ Test?: HealthConfigTestList | undefined; /** The time to wait between checks in nanoseconds. It should be 0 or at least 1000000 (1 ms). 0 means inherit. */ Interval?: number | undefined; /** The time to wait before considering the check to have hung. It should be 0 or at least 1000000 (1 ms). 0 means inherit. If the health check command does not complete within this timeout, the check is considered failed and the health check process is forcibly terminated without a graceful shutdown. */ Timeout?: number | undefined; /** The number of consecutive failures needed to consider a container as unhealthy. 0 means inherit. */ Retries?: number | undefined; /** Start period for the container to initialize before starting health-retries countdown in nanoseconds. It should be 0 or at least 1000000 (1 ms). 0 means inherit. */ StartPeriod?: number | undefined; /** The time to wait between checks in nanoseconds during the start period. It should be 0 or at least 1000000 (1 ms). 0 means inherit. */ StartInterval?: number | undefined; } /** An object mapping mount point paths inside the container to empty objects. */ export type CommitImageRequestVolumesMap = { [key: string]: unknown | undefined }; /** The entry point for the container as a string or an array of strings. If the array consists of exactly one empty string (`[""]`) then the entry point is reset to system default (i.e., the entry point used by docker when there is no `ENTRYPOINT` instruction in the `Dockerfile`). */ export type CommitImageRequestEntrypointList = Array; /** `ONBUILD` metadata that were defined in the image's `Dockerfile`. */ export type CommitImageRequestOnBuildList = Array; /** User-defined key/value metadata. */ export type CommitImageRequestLabelsMap = { [key: string]: string | undefined }; /** Shell for when `RUN`, `CMD`, and `ENTRYPOINT` uses a shell. */ export type CommitImageRequestShellList = Array; export interface CommitImageRequest { /** The ID or name of the container to commit */ container?: string | undefined; /** Repository name for the created image */ repo?: string | undefined; /** Tag name for the create image */ tag?: string | undefined; /** Commit message */ comment?: string | undefined; /** Author of the image (e.g., `John Hannibal Smith `) */ author?: string | undefined; /** Whether to pause the container before committing */ pause?: boolean | undefined; /** `Dockerfile` instructions to apply while committing */ changes?: string | undefined; /** The hostname to use for the container, as a valid RFC 1123 hostname. */ Hostname?: string | undefined; /** The domain name to use for the container. */ Domainname?: string | undefined; /** Commands run as this user inside the container. If omitted, commands run as the user specified in the image the container was started from. Can be either user-name or UID, and optional group-name or GID, separated by a colon (`[<:group-name|GID>]`). */ User?: string | undefined; /** Whether to attach to `stdin`. */ AttachStdin?: boolean | undefined; /** Whether to attach to `stdout`. */ AttachStdout?: boolean | undefined; /** Whether to attach to `stderr`. */ AttachStderr?: boolean | undefined; /** An object mapping ports to an empty object in the form: `{"/": {}}` */ ExposedPorts?: CommitImageRequestExposedPortsMap | null | undefined; /** Attach standard streams to a TTY, including `stdin` if it is not closed. */ Tty?: boolean | undefined; /** Open `stdin` */ OpenStdin?: boolean | undefined; /** Close `stdin` after one attached client disconnects */ StdinOnce?: boolean | undefined; /** A list of environment variables to set inside the container in the form `["VAR=value", ...]`. A variable without `=` is removed from the environment, rather than to have an empty value. */ Env?: CommitImageRequestEnvList | undefined; /** Command to run specified as a string or an array of strings. */ Cmd?: CommitImageRequestCmdList | undefined; Healthcheck?: HealthConfig | undefined; /** Command is already escaped (Windows only) */ ArgsEscaped?: boolean | null | undefined; /** The name (or reference) of the image to use when creating the container, or which was used when the container was created. */ Image?: string | undefined; /** An object mapping mount point paths inside the container to empty objects. */ Volumes?: CommitImageRequestVolumesMap | undefined; /** The working directory for commands to run in. */ WorkingDir?: string | undefined; /** The entry point for the container as a string or an array of strings. If the array consists of exactly one empty string (`[""]`) then the entry point is reset to system default (i.e., the entry point used by docker when there is no `ENTRYPOINT` instruction in the `Dockerfile`). */ Entrypoint?: CommitImageRequestEntrypointList | undefined; /** Disable networking for the container. */ NetworkDisabled?: boolean | null | undefined; /** `ONBUILD` metadata that were defined in the image's `Dockerfile`. */ OnBuild?: CommitImageRequestOnBuildList | null | undefined; /** User-defined key/value metadata. */ Labels?: CommitImageRequestLabelsMap | undefined; /** Signal to stop a container as a string or unsigned integer. */ StopSignal?: string | null | undefined; /** Timeout to stop a container in seconds. If omitted, the daemon-wide default (`default-stop-timeout`) is used. */ StopTimeout?: number | null | undefined; /** Shell for when `RUN`, `CMD`, and `ENTRYPOINT` uses a shell. */ Shell?: CommitImageRequestShellList | null | undefined; } /** Response to an API call that returns just an Id */ export interface IDResponse { /** The id of the newly created object. */ Id: string; } export interface ConfigInspectRequest { /** ID of the config */ id: string; } /** The version number of the object such as node, service, etc. This is needed to avoid conflicting writes. The client must send the version number along with the modified specification when updating these objects. This approach ensures safe concurrency and determinism in that the change on the object may not be applied if the version number has changed from the last read. In other words, if two update requests specify the same base version, only one of the requests can succeed. As a result, two separate update requests that happen at the same time will not unintentionally overwrite each other. */ export interface ObjectVersion { Index?: number | undefined; } /** User-defined key/value metadata. */ export type ConfigSpecLabelsMap = { [key: string]: string | undefined }; /** Key/value map of driver-specific options. */ export type DriverOptionsMap = { [key: string]: string | undefined }; /** Driver represents a driver (network, logging, secrets). */ export interface Driver { /** Name of the driver. */ Name: string; /** Key/value map of driver-specific options. */ Options?: DriverOptionsMap | undefined; } export interface ConfigSpec { /** User-defined name of the config. */ Name?: string | undefined; /** User-defined key/value metadata. */ Labels?: ConfigSpecLabelsMap | undefined; /** Data is the data to store as a config, formatted as a standard base64-encoded ([RFC 4648](https://tools.ietf.org/html/rfc4648#section-4)) string. The maximum allowed size is 1000KB, as defined in [MaxConfigSize](https://pkg.go.dev/github.com/moby/swarmkit/v2@v2.0.0-20250103191802-8c1959736554/manager/controlapi#MaxConfigSize). */ Data?: string | undefined; /** Templating driver, if applicable Templating controls whether and how to evaluate the config payload as a template. If no driver is set, no templating is used. */ Templating?: Driver | undefined; } export interface Config { ID?: string | undefined; Version?: ObjectVersion | undefined; CreatedAt?: string | undefined; UpdatedAt?: string | undefined; Spec?: ConfigSpec | undefined; } export type EndpointIPAMConfigLinkLocalIPsList = Array; /** EndpointIPAMConfig represents an endpoint's IPAM configuration. */ export interface EndpointIPAMConfig { IPv4Address?: string | undefined; IPv6Address?: string | undefined; LinkLocalIPs?: EndpointIPAMConfigLinkLocalIPsList | undefined; } export type EndpointSettingsLinksList = Array; export type EndpointSettingsAliasesList = Array; /** DriverOpts is a mapping of driver options and values. These options are passed directly to the driver and are driver specific. */ export type EndpointSettingsDriverOptsMap = { [key: string]: string | undefined }; /** List of all DNS names an endpoint has on a specific network. This list is based on the container name, network aliases, container short ID, and hostname. These DNS names are non-fully qualified but can contain several dots. You can get fully qualified DNS names by appending `.`. For instance, if container name is `my.ctr` and the network is named `testnet`, `DNSNames` will contain `my.ctr` and the FQDN will be `my.ctr.testnet`. */ export type EndpointSettingsDNSNamesList = Array; /** Configuration for a network endpoint. */ export interface EndpointSettings { IPAMConfig?: EndpointIPAMConfig | null | undefined; Links?: EndpointSettingsLinksList | undefined; /** MAC address for the endpoint on this network. The network driver might ignore this parameter. */ MacAddress?: string | undefined; Aliases?: EndpointSettingsAliasesList | undefined; /** DriverOpts is a mapping of driver options and values. These options are passed directly to the driver and are driver specific. */ DriverOpts?: EndpointSettingsDriverOptsMap | null | undefined; /** This property determines which endpoint will provide the default gateway for a container. The endpoint with the highest priority will be used. If multiple endpoints have the same priority, endpoints are lexicographically sorted based on their network name, and the one that sorts first is picked. */ GwPriority?: number | undefined; /** Unique ID of the network. */ NetworkID?: string | undefined; /** Unique ID for the service endpoint in a Sandbox. */ EndpointID?: string | undefined; /** Gateway address for this network. */ Gateway?: string | undefined; /** IPv4 address. */ IPAddress?: string | undefined; /** Mask length of the IPv4 address. */ IPPrefixLen?: number | undefined; /** IPv6 gateway address. */ IPv6Gateway?: string | undefined; /** Global IPv6 address. */ GlobalIPv6Address?: string | undefined; /** Mask length of the global IPv6 address. */ GlobalIPv6PrefixLen?: number | undefined; /** List of all DNS names an endpoint has on a specific network. This list is based on the container name, network aliases, container short ID, and hostname. These DNS names are non-fully qualified but can contain several dots. You can get fully qualified DNS names by appending `.`. For instance, if container name is `my.ctr` and the network is named `testnet`, `DNSNames` will contain `my.ctr` and the FQDN will be `my.ctr.testnet`. */ DNSNames?: EndpointSettingsDNSNamesList | undefined; } export interface ConnectNetworkRequest { /** Network ID or name */ id: string; /** The ID or name of the container to connect to the network. */ Container: string; EndpointConfig?: EndpointSettings | null | undefined; } export interface ConnectNetworkResponse {} export interface ContainerAttachWebsocketRequest { /** ID or name of the container */ id: string; /** Override the key sequence for detaching a container.Format is a single character `[a-Z]` or `ctrl-` where `` is one of: `a-z`, `@`, `^`, `[`, `,`, or `_`. */ detachKeys?: string | undefined; /** Return logs */ logs?: boolean | undefined; /** Return stream */ stream?: boolean | undefined; /** Attach to `stdin` */ stdin?: boolean | undefined; /** Attach to `stdout` */ stdout?: boolean | undefined; /** Attach to `stderr` */ stderr?: boolean | undefined; } export interface ContainerAttachWebsocketResponse {} export interface ContainerChangesRequest { /** ID or name of the container */ id: string; } /** Kind of change Can be one of: - `0`: Modified ("C") - `1`: Added ("A") - `2`: Deleted ("D") */ export type ChangeType = 0 | 1 | 2; /** Change in the container's filesystem. */ export interface FilesystemChange { /** Path to file or directory that has changed. */ Path: string; Kind: ChangeType; } export type ContainerChangesResponseBodyList = Array; export type ContainerChangesResponse = ContainerChangesResponseBodyList; export interface ContainerInspectRequest { /** ID or name of the container */ id: string; /** Return the size of container as fields `SizeRw` and `SizeRootFs` */ size?: boolean | undefined; } /** The arguments to the command being run */ export type ContainerInspectResponseArgsList = Array; /** String representation of the container state. Can be one of "created", "running", "paused", "restarting", "removing", "exited", or "dead". */ export type ContainerStateStatus = | "created" | "running" | "paused" | "restarting" | "removing" | "exited" | "dead"; /** Status is one of `none`, `starting`, `healthy` or `unhealthy` - "none" Indicates there is no healthcheck - "starting" Starting indicates that the container is not yet ready - "healthy" Healthy indicates that the container is running correctly - "unhealthy" Unhealthy indicates that the container has a problem */ export type HealthStatus = "none" | "starting" | "healthy" | "unhealthy"; /** HealthcheckResult stores information about a single run of a healthcheck probe */ export interface HealthcheckResult { /** Date and time at which this check started in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds. */ Start?: string | undefined; /** Date and time at which this check ended in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds. */ End?: string | undefined; /** ExitCode meanings: - `0` healthy - `1` unhealthy - `2` reserved (considered unhealthy) - other values: error running probe */ ExitCode?: number | undefined; /** Output from last check */ Output?: string | undefined; } /** Log contains the last few results (oldest first) */ export type HealthLogList = Array; /** Health stores information about the container's healthcheck results. */ export interface Health { /** Status is one of `none`, `starting`, `healthy` or `unhealthy` - "none" Indicates there is no healthcheck - "starting" Starting indicates that the container is not yet ready - "healthy" Healthy indicates that the container is running correctly - "unhealthy" Unhealthy indicates that the container has a problem */ Status?: HealthStatus | undefined; /** FailingStreak is the number of consecutive failures */ FailingStreak?: number | undefined; /** Log contains the last few results (oldest first) */ Log?: HealthLogList | undefined; } /** ContainerState stores container's running state. It's part of ContainerJSONBase and will be returned by the "inspect" command. */ export interface ContainerState { /** String representation of the container state. Can be one of "created", "running", "paused", "restarting", "removing", "exited", or "dead". */ Status?: ContainerStateStatus | undefined; /** Whether this container is running. Note that a running container can be _paused_. The `Running` and `Paused` booleans are not mutually exclusive: When pausing a container (on Linux), the freezer cgroup is used to suspend all processes in the container. Freezing the process requires the process to be running. As a result, paused containers are both `Running` _and_ `Paused`. Use the `Status` field instead to determine if a container's state is "running". */ Running?: boolean | undefined; /** Whether this container is paused. */ Paused?: boolean | undefined; /** Whether this container is restarting. */ Restarting?: boolean | undefined; /** Whether a process within this container has been killed because it ran out of memory since the container was last started. */ OOMKilled?: boolean | undefined; Dead?: boolean | undefined; /** The process ID of this container */ Pid?: number | undefined; /** The last exit code of this container */ ExitCode?: number | undefined; Error?: string | undefined; /** The time when this container was last started. */ StartedAt?: string | undefined; /** The time when this container last exited. */ FinishedAt?: string | undefined; Health?: Health | null | undefined; } /** List of URLs from which this object MAY be downloaded. */ export type OCIDescriptorUrlsList = Array; /** Arbitrary metadata relating to the targeted content. */ export type OCIDescriptorAnnotationsMap = { [key: string]: string | undefined }; /** Optional field specifying an array of strings, each listing a required OS feature (for example on Windows `win32k`). */ export type OCIPlatformOsFeaturesList = Array; /** Describes the platform which the image in the manifest runs on, as defined in the [OCI Image Index Specification](https://github.com/opencontainers/image-spec/blob/v1.0.1/image-index.md). */ export interface OCIPlatform { /** The CPU architecture, for example `amd64` or `ppc64`. */ architecture?: string | undefined; /** The operating system, for example `linux` or `windows`. */ os?: string | undefined; /** Optional field specifying the operating system version, for example on Windows `10.0.19041.1165`. */ os_version?: string | undefined; /** Optional field specifying an array of strings, each listing a required OS feature (for example on Windows `win32k`). */ os_features?: OCIPlatformOsFeaturesList | undefined; /** Optional field specifying a variant of the CPU, for example `v7` to specify ARMv7 when architecture is `arm`. */ variant?: string | undefined; } /** A descriptor struct containing digest, media type, and size, as defined in the [OCI Content Descriptors Specification](https://github.com/opencontainers/image-spec/blob/v1.0.1/descriptor.md). */ export interface OCIDescriptor { /** The media type of the object this schema refers to. */ mediaType?: string | undefined; /** The digest of the targeted content. */ digest?: string | undefined; /** The size in bytes of the blob. */ size?: number | undefined; /** List of URLs from which this object MAY be downloaded. */ urls?: OCIDescriptorUrlsList | null | undefined; /** Arbitrary metadata relating to the targeted content. */ annotations?: OCIDescriptorAnnotationsMap | null | undefined; /** Data is an embedding of the targeted content. This is encoded as a base64 string when marshalled to JSON (automatically, by encoding/json). If present, Data can be used directly to avoid fetching the targeted content. */ data?: string | null | undefined; platform?: OCIPlatform | null | undefined; /** ArtifactType is the IANA media type of this artifact. */ artifactType?: string | null | undefined; } /** IDs of exec instances that are running in the container. */ export type ContainerInspectResponseExecIDsList = Array; export interface HostConfigBlkioWeightDeviceItem { Path?: string | undefined; Weight?: number | undefined; } /** Block IO weight (relative device weight) in the form: ``` [{"Path": "device_path", "Weight": weight}] ``` */ export type HostConfigBlkioWeightDeviceList = Array; export interface ThrottleDevice { /** Device path */ Path?: string | undefined; /** Rate */ Rate?: number | undefined; } /** Limit read rate (bytes per second) from a device, in the form: ``` [{"Path": "device_path", "Rate": rate}] ``` */ export type HostConfigBlkioDeviceReadBpsList = Array; /** Limit write rate (bytes per second) to a device, in the form: ``` [{"Path": "device_path", "Rate": rate}] ``` */ export type HostConfigBlkioDeviceWriteBpsList = Array; /** Limit read rate (IO per second) from a device, in the form: ``` [{"Path": "device_path", "Rate": rate}] ``` */ export type HostConfigBlkioDeviceReadIOpsList = Array; /** Limit write rate (IO per second) to a device, in the form: ``` [{"Path": "device_path", "Rate": rate}] ``` */ export type HostConfigBlkioDeviceWriteIOpsList = Array; /** A device mapping between the host and container */ export interface DeviceMapping { PathOnHost?: string | undefined; PathInContainer?: string | undefined; CgroupPermissions?: string | undefined; } /** A list of devices to add to the container. */ export type HostConfigDevicesList = Array; /** a list of cgroup rules to apply to the container */ export type HostConfigDeviceCgroupRulesList = Array; export type DeviceRequestDeviceIDsList = Array; export type DeviceRequestCapabilitiesItemList = Array; /** A list of capabilities; an OR list of AND lists of capabilities. Note that if a driver is specified the capabilities have no effect on selecting a driver as the driver name is used directly. Note that if no driver is specified the capabilities are used to select a driver with the required capabilities. */ export type DeviceRequestCapabilitiesList = Array; /** Driver-specific options, specified as a key/value pairs. These options are passed directly to the driver. */ export type DeviceRequestOptionsMap = { [key: string]: string | undefined }; /** A request for devices to be sent to device drivers */ export interface DeviceRequest { /** The name of the device driver to use for this request. Note that if this is specified the capabilities are ignored when selecting a device driver. */ Driver?: string | undefined; Count?: number | undefined; DeviceIDs?: DeviceRequestDeviceIDsList | undefined; /** A list of capabilities; an OR list of AND lists of capabilities. Note that if a driver is specified the capabilities have no effect on selecting a driver as the driver name is used directly. Note that if no driver is specified the capabilities are used to select a driver with the required capabilities. */ Capabilities?: DeviceRequestCapabilitiesList | undefined; /** Driver-specific options, specified as a key/value pairs. These options are passed directly to the driver. */ Options?: DeviceRequestOptionsMap | undefined; } /** A list of requests for devices to be sent to device drivers. */ export type HostConfigDeviceRequestsList = Array; export interface HostConfigUlimitsItem { /** Name of ulimit */ Name?: string | undefined; /** Soft limit */ Soft?: number | undefined; /** Hard limit */ Hard?: number | undefined; } /** A list of resource limits to set in the container. For example: ``` {"Name": "nofile", "Soft": 1024, "Hard": 2048} ``` */ export type HostConfigUlimitsList = Array; /** A list of volume bindings for this container. Each volume binding is a string in one of these forms: - `host-src:container-dest[:options]` to bind-mount a host path into the container. Both `host-src`, and `container-dest` must be an _absolute_ path. - `volume-name:container-dest[:options]` to bind-mount a volume managed by a volume driver into the container. `container-dest` must be an _absolute_ path. `options` is an optional, comma-delimited list of: - `nocopy` disables automatic copying of data from the container path to the volume. The `nocopy` flag only applies to named volumes. - `[ro|rw]` mounts a volume read-only or read-write, respectively. If omitted or set to `rw`, volumes are mounted read-write. - `[z|Z]` applies SELinux labels to allow or deny multiple containers to read and write to the same volume. - `z`: a _shared_ content label is applied to the content. This label indicates that multiple containers can share the volume content, for both reading and writing. - `Z`: a _private unshared_ label is applied to the content. This label indicates that only the current container can use a private volume. Labeling systems such as SELinux require proper labels to be placed on volume content that is mounted into a container. Without a label, the security system can prevent a container's processes from using the content. By default, the labels set by the host operating system are not modified. - `[[r]shared|[r]slave|[r]private]` specifies mount [propagation behavior](https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt). This only applies to bind-mounted volumes, not internal volumes or named volumes. Mount propagation requires the source mount point (the location where the source directory is mounted in the host operating system) to have the correct propagation properties. For shared volumes, the source mount point must be set to `shared`. For slave volumes, the mount must be set to either `shared` or `slave`. */ export type HostConfigBindsList = Array; /** Name of the logging driver used for the container or "none" if logging is disabled. */ export type HostConfigLogConfigType = | "local" | "json-file" | "syslog" | "journald" | "gelf" | "fluentd" | "awslogs" | "splunk" | "etwlogs" | "none"; /** Driver-specific configuration options for the logging driver. */ export type HostConfigLogConfigConfigMap = { [key: string]: string | undefined }; /** The logging configuration for this container */ export interface HostConfigLogConfig { /** Name of the logging driver used for the container or "none" if logging is disabled. */ Type?: HostConfigLogConfigType | (string & {}) | undefined; /** Driver-specific configuration options for the logging driver. */ Config?: HostConfigLogConfigConfigMap | undefined; } /** PortBinding represents a binding between a host IP address and a host port. */ export interface PortBinding { /** Host IP address that the container's port is mapped to. */ HostIp?: string | undefined; /** Host port number that the container's port is mapped to. */ HostPort?: string | undefined; } export type PortMapValueList = Array; /** PortMap describes the mapping of container ports to host ports, using the container's port-number and protocol as key in the format `/`, for example, `80/udp`. If a container's port is mapped for multiple protocols, separate entries are added to the mapping table. */ export type PortMap = { [key: string]: PortMapValueList | null | undefined }; /** - Empty string means not to restart - `no` Do not automatically restart - `always` Always restart - `unless-stopped` Restart always except when the user has manually stopped the container - `on-failure` Restart only when the container exit code is non-zero */ export type RestartPolicyName = "" | "no" | "always" | "unless-stopped" | "on-failure"; /** The behavior to apply when the container exits. The default is not to restart. An ever increasing delay (double the previous delay, starting at 100ms) is added before each restart to prevent flooding the server. */ export interface RestartPolicy { /** - Empty string means not to restart - `no` Do not automatically restart - `always` Always restart - `unless-stopped` Restart always except when the user has manually stopped the container - `on-failure` Restart only when the container exit code is non-zero */ Name?: RestartPolicyName | (string & {}) | undefined; /** If `on-failure` is used, the number of times to retry before giving up. */ MaximumRetryCount?: number | undefined; } /** A list of volumes to inherit from another container, specified in the form `[:]`. */ export type HostConfigVolumesFromList = Array; /** The mount type. Available types: - `bind` a mount of a file or directory from the host into the container. - `cluster` a Swarm cluster volume. - `image` an OCI image. - `npipe` a named pipe from the host into the container. - `tmpfs` a `tmpfs`. - `volume` a docker volume with the given `Name`. */ export type MountType = "bind" | "cluster" | "image" | "npipe" | "tmpfs" | "volume"; /** A propagation mode with the value `[r]private`, `[r]shared`, or `[r]slave`. */ export type MountBindOptionsPropagation = | "private" | "rprivate" | "shared" | "rshared" | "slave" | "rslave"; /** Optional configuration for the `bind` type. */ export interface MountBindOptions { /** A propagation mode with the value `[r]private`, `[r]shared`, or `[r]slave`. */ Propagation?: MountBindOptionsPropagation | (string & {}) | undefined; /** Disable recursive bind mount. */ NonRecursive?: boolean | undefined; /** Create mount point on host if missing */ CreateMountpoint?: boolean | undefined; /** Make the mount non-recursively read-only, but still leave the mount recursive (unless NonRecursive is set to `true` in conjunction). Added in v1.44, before that version all read-only mounts were non-recursive by default. To match the previous behaviour this will default to `true` for clients on versions prior to v1.44. */ ReadOnlyNonRecursive?: boolean | undefined; /** Raise an error if the mount cannot be made recursively read-only. */ ReadOnlyForceRecursive?: boolean | undefined; } /** User-defined key/value metadata. */ export type MountVolumeOptionsLabelsMap = { [key: string]: string | undefined }; /** key/value map of driver specific options. */ export type MountVolumeOptionsDriverConfigOptionsMap = { [key: string]: string | undefined }; /** Map of driver specific options */ export interface MountVolumeOptionsDriverConfig { /** Name of the driver to use to create the volume. */ Name?: string | undefined; /** key/value map of driver specific options. */ Options?: MountVolumeOptionsDriverConfigOptionsMap | undefined; } /** Optional configuration for the `volume` type. */ export interface MountVolumeOptions { /** Populate volume with data from the target. */ NoCopy?: boolean | undefined; /** User-defined key/value metadata. */ Labels?: MountVolumeOptionsLabelsMap | undefined; /** Map of driver specific options */ DriverConfig?: MountVolumeOptionsDriverConfig | undefined; /** Source path inside the volume. Must be relative without any back traversals. */ Subpath?: string | undefined; } /** Optional configuration for the `image` type. */ export interface MountImageOptions { /** Source path inside the image. Must be relative without any back traversals. */ Subpath?: string | undefined; } export type MountTmpfsOptionsOptionsItemList = Array; /** The options to be passed to the tmpfs mount. An array of arrays. Flag options should be provided as 1-length arrays. Other types should be provided as as 2-length arrays, where the first item is the key and the second the value. */ export type MountTmpfsOptionsOptionsList = Array; /** Optional configuration for the `tmpfs` type. */ export interface MountTmpfsOptions { /** The size for the tmpfs mount in bytes. */ SizeBytes?: number | undefined; /** The permission mode for the tmpfs mount in an integer. The value must not be in octal format (e.g. 755) but rather the decimal representation of the octal value (e.g. 493). */ Mode?: number | undefined; /** The options to be passed to the tmpfs mount. An array of arrays. Flag options should be provided as 1-length arrays. Other types should be provided as as 2-length arrays, where the first item is the key and the second the value. */ Options?: MountTmpfsOptionsOptionsList | undefined; } export interface Mount { /** Container path. */ Target?: string | undefined; /** Mount source (e.g. a volume name, a host path). The source cannot be specified when using `Type=tmpfs`. For `Type=bind`, the source path must either exist, or the `CreateMountpoint` must be set to `true` to create the source path on the host if missing. For `Type=npipe`, the pipe must exist prior to creating the container. */ Source?: string | undefined; /** The mount type. Available types: - `bind` Mounts a file or directory from the host into the container. The `Source` must exist prior to creating the container. - `cluster` a Swarm cluster volume - `image` Mounts an image. - `npipe` Mounts a named pipe from the host into the container. The `Source` must exist prior to creating the container. - `tmpfs` Create a tmpfs with the given options. The mount `Source` cannot be specified for tmpfs. - `volume` Creates a volume with the given name and options (or uses a pre-existing volume with the same name and options). These are **not** removed when the container is removed. */ Type?: MountType | (string & {}) | undefined; /** Whether the mount should be read-only. */ ReadOnly?: boolean | undefined; /** The consistency requirement for the mount: `default`, `consistent`, `cached`, or `delegated`. */ Consistency?: string | undefined; /** Optional configuration for the `bind` type. */ BindOptions?: MountBindOptions | undefined; /** Optional configuration for the `volume` type. */ VolumeOptions?: MountVolumeOptions | undefined; /** Optional configuration for the `image` type. */ ImageOptions?: MountImageOptions | undefined; /** Optional configuration for the `tmpfs` type. */ TmpfsOptions?: MountTmpfsOptions | undefined; } /** Specification for mounts to be added to the container. */ export type HostConfigMountsList = Array; /** Initial console size, as an `[height, width]` array. */ export type HostConfigConsoleSizeList = Array; /** Arbitrary non-identifying metadata attached to container and provided to the runtime when the container is started. */ export type HostConfigAnnotationsMap = { [key: string]: string | undefined }; /** A list of kernel capabilities to add to the container. Conflicts with option 'Capabilities'. */ export type HostConfigCapAddList = Array; /** A list of kernel capabilities to drop from the container. Conflicts with option 'Capabilities'. */ export type HostConfigCapDropList = Array; /** cgroup namespace mode for the container. Possible values are: - `"private"`: the container runs in its own private cgroup namespace - `"host"`: use the host system's cgroup namespace If not specified, the daemon default is used, which can either be `"private"` or `"host"`, depending on daemon version, kernel support and configuration. */ export type HostConfigCgroupnsMode = "private" | "host"; /** A list of DNS servers for the container to use. */ export type HostConfigDnsList = Array; /** A list of DNS options. */ export type HostConfigDnsOptionsList = Array; /** A list of DNS search domains. */ export type HostConfigDnsSearchList = Array; /** A list of hostnames/IP mappings to add to the container's `/etc/hosts` file. Specified in the form `["hostname:IP"]`. */ export type HostConfigExtraHostsList = Array; /** A list of additional groups that the container process will run as. */ export type HostConfigGroupAddList = Array; /** A list of links for the container in the form `container_name:alias`. */ export type HostConfigLinksList = Array; /** A list of string values to customize labels for MLS systems, such as SELinux. */ export type HostConfigSecurityOptList = Array; /** Storage driver options for this container, in the form `{"size": "120G"}`. */ export type HostConfigStorageOptMap = { [key: string]: string | undefined }; /** A map of container directories which should be replaced by tmpfs mounts, and their corresponding mount options. For example: ``` { "/run": "rw,noexec,nosuid,size=65536k" } ``` */ export type HostConfigTmpfsMap = { [key: string]: string | undefined }; /** A list of kernel parameters (sysctls) to set in the container. This field is omitted if not set. */ export type HostConfigSysctlsMap = { [key: string]: string | undefined }; /** Isolation technology of the container. (Windows only) */ export type HostConfigIsolation = "default" | "process" | "hyperv" | ""; /** The list of paths to be masked inside the container (this overrides the default set of paths). */ export type HostConfigMaskedPathsList = Array; /** The list of paths to be set as read-only inside the container (this overrides the default set of paths). */ export type HostConfigReadonlyPathsList = Array; /** Container configuration that depends on the host we are running on */ export interface HostConfig { /** An integer value representing this container's relative CPU weight versus other containers. */ CpuShares?: number | undefined; /** Memory limit in bytes. */ Memory?: number | undefined; /** Path to `cgroups` under which the container's `cgroup` is created. If the path is not absolute, the path is considered to be relative to the `cgroups` path of the init process. Cgroups are created if they do not already exist. */ CgroupParent?: string | undefined; /** Block IO weight (relative weight). */ BlkioWeight?: number | undefined; /** Block IO weight (relative device weight) in the form: ``` [{"Path": "device_path", "Weight": weight}] ``` */ BlkioWeightDevice?: HostConfigBlkioWeightDeviceList | undefined; /** Limit read rate (bytes per second) from a device, in the form: ``` [{"Path": "device_path", "Rate": rate}] ``` */ BlkioDeviceReadBps?: HostConfigBlkioDeviceReadBpsList | undefined; /** Limit write rate (bytes per second) to a device, in the form: ``` [{"Path": "device_path", "Rate": rate}] ``` */ BlkioDeviceWriteBps?: HostConfigBlkioDeviceWriteBpsList | undefined; /** Limit read rate (IO per second) from a device, in the form: ``` [{"Path": "device_path", "Rate": rate}] ``` */ BlkioDeviceReadIOps?: HostConfigBlkioDeviceReadIOpsList | undefined; /** Limit write rate (IO per second) to a device, in the form: ``` [{"Path": "device_path", "Rate": rate}] ``` */ BlkioDeviceWriteIOps?: HostConfigBlkioDeviceWriteIOpsList | undefined; /** The length of a CPU period in microseconds. */ CpuPeriod?: number | undefined; /** Microseconds of CPU time that the container can get in a CPU period. */ CpuQuota?: number | undefined; /** The length of a CPU real-time period in microseconds. Set to 0 to allocate no time allocated to real-time tasks. */ CpuRealtimePeriod?: number | undefined; /** The length of a CPU real-time runtime in microseconds. Set to 0 to allocate no time allocated to real-time tasks. */ CpuRealtimeRuntime?: number | undefined; /** CPUs in which to allow execution (e.g., `0-3`, `0,1`). */ CpusetCpus?: string | undefined; /** Memory nodes (MEMs) in which to allow execution (0-3, 0,1). Only effective on NUMA systems. */ CpusetMems?: string | undefined; /** A list of devices to add to the container. */ Devices?: HostConfigDevicesList | undefined; /** a list of cgroup rules to apply to the container */ DeviceCgroupRules?: HostConfigDeviceCgroupRulesList | undefined; /** A list of requests for devices to be sent to device drivers. */ DeviceRequests?: HostConfigDeviceRequestsList | undefined; /** Memory soft limit in bytes. */ MemoryReservation?: number | undefined; /** Total memory limit (memory + swap). Set as `-1` to enable unlimited swap. */ MemorySwap?: number | undefined; /** Tune a container's memory swappiness behavior. Accepts an integer between 0 and 100. */ MemorySwappiness?: number | undefined; /** CPU quota in units of 10-9 CPUs. */ NanoCpus?: number | undefined; /** Disable OOM Killer for the container. */ OomKillDisable?: boolean | undefined; /** Run an init inside the container that forwards signals and reaps processes. This field is omitted if empty, and the default (as configured on the daemon) is used. */ Init?: boolean | null | undefined; /** Tune a container's PIDs limit. Set `0` or `-1` for unlimited, or `null` to not change. */ PidsLimit?: number | null | undefined; /** A list of resource limits to set in the container. For example: ``` {"Name": "nofile", "Soft": 1024, "Hard": 2048} ``` */ Ulimits?: HostConfigUlimitsList | undefined; /** The number of usable CPUs (Windows only). On Windows Server containers, the processor resource controls are mutually exclusive. The order of precedence is `CPUCount` first, then `CPUShares`, and `CPUPercent` last. */ CpuCount?: number | undefined; /** The usable percentage of the available CPUs (Windows only). On Windows Server containers, the processor resource controls are mutually exclusive. The order of precedence is `CPUCount` first, then `CPUShares`, and `CPUPercent` last. */ CpuPercent?: number | undefined; /** Maximum IOps for the container system drive (Windows only) */ IOMaximumIOps?: number | undefined; /** Maximum IO in bytes per second for the container system drive (Windows only). */ IOMaximumBandwidth?: number | undefined; /** A list of volume bindings for this container. Each volume binding is a string in one of these forms: - `host-src:container-dest[:options]` to bind-mount a host path into the container. Both `host-src`, and `container-dest` must be an _absolute_ path. - `volume-name:container-dest[:options]` to bind-mount a volume managed by a volume driver into the container. `container-dest` must be an _absolute_ path. `options` is an optional, comma-delimited list of: - `nocopy` disables automatic copying of data from the container path to the volume. The `nocopy` flag only applies to named volumes. - `[ro|rw]` mounts a volume read-only or read-write, respectively. If omitted or set to `rw`, volumes are mounted read-write. - `[z|Z]` applies SELinux labels to allow or deny multiple containers to read and write to the same volume. - `z`: a _shared_ content label is applied to the content. This label indicates that multiple containers can share the volume content, for both reading and writing. - `Z`: a _private unshared_ label is applied to the content. This label indicates that only the current container can use a private volume. Labeling systems such as SELinux require proper labels to be placed on volume content that is mounted into a container. Without a label, the security system can prevent a container's processes from using the content. By default, the labels set by the host operating system are not modified. - `[[r]shared|[r]slave|[r]private]` specifies mount [propagation behavior](https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt). This only applies to bind-mounted volumes, not internal volumes or named volumes. Mount propagation requires the source mount point (the location where the source directory is mounted in the host operating system) to have the correct propagation properties. For shared volumes, the source mount point must be set to `shared`. For slave volumes, the mount must be set to either `shared` or `slave`. */ Binds?: HostConfigBindsList | undefined; /** Path to a file where the container ID is written */ ContainerIDFile?: string | undefined; /** The logging configuration for this container */ LogConfig?: HostConfigLogConfig | undefined; /** Network mode to use for this container. Supported standard values are: `bridge`, `host`, `none`, and `container:`. Any other value is taken as a custom network's name to which this container should connect to. */ NetworkMode?: string | undefined; PortBindings?: PortMap | undefined; RestartPolicy?: RestartPolicy | undefined; /** Automatically remove the container when the container's process exits. This has no effect if `RestartPolicy` is set. */ AutoRemove?: boolean | undefined; /** Driver that this container uses to mount volumes. */ VolumeDriver?: string | undefined; /** A list of volumes to inherit from another container, specified in the form `[:]`. */ VolumesFrom?: HostConfigVolumesFromList | undefined; /** Specification for mounts to be added to the container. */ Mounts?: HostConfigMountsList | undefined; /** Initial console size, as an `[height, width]` array. */ ConsoleSize?: HostConfigConsoleSizeList | null | undefined; /** Arbitrary non-identifying metadata attached to container and provided to the runtime when the container is started. */ Annotations?: HostConfigAnnotationsMap | undefined; /** A list of kernel capabilities to add to the container. Conflicts with option 'Capabilities'. */ CapAdd?: HostConfigCapAddList | undefined; /** A list of kernel capabilities to drop from the container. Conflicts with option 'Capabilities'. */ CapDrop?: HostConfigCapDropList | undefined; /** cgroup namespace mode for the container. Possible values are: - `"private"`: the container runs in its own private cgroup namespace - `"host"`: use the host system's cgroup namespace If not specified, the daemon default is used, which can either be `"private"` or `"host"`, depending on daemon version, kernel support and configuration. */ CgroupnsMode?: HostConfigCgroupnsMode | (string & {}) | undefined; /** A list of DNS servers for the container to use. */ Dns?: HostConfigDnsList | undefined; /** A list of DNS options. */ DnsOptions?: HostConfigDnsOptionsList | undefined; /** A list of DNS search domains. */ DnsSearch?: HostConfigDnsSearchList | undefined; /** A list of hostnames/IP mappings to add to the container's `/etc/hosts` file. Specified in the form `["hostname:IP"]`. */ ExtraHosts?: HostConfigExtraHostsList | undefined; /** A list of additional groups that the container process will run as. */ GroupAdd?: HostConfigGroupAddList | undefined; /** IPC sharing mode for the container. Possible values are: - `"none"`: own private IPC namespace, with /dev/shm not mounted - `"private"`: own private IPC namespace - `"shareable"`: own private IPC namespace, with a possibility to share it with other containers - `"container:"`: join another (shareable) container's IPC namespace - `"host"`: use the host system's IPC namespace If not specified, daemon default is used, which can either be `"private"` or `"shareable"`, depending on daemon version and configuration. */ IpcMode?: string | undefined; /** Cgroup to use for the container. */ Cgroup?: string | undefined; /** A list of links for the container in the form `container_name:alias`. */ Links?: HostConfigLinksList | undefined; /** An integer value containing the score given to the container in order to tune OOM killer preferences. */ OomScoreAdj?: number | undefined; /** Set the PID (Process) Namespace mode for the container. It can be either: - `"container:"`: joins another container's PID namespace - `"host"`: use the host's PID namespace inside the container */ PidMode?: string | undefined; /** Gives the container full access to the host. */ Privileged?: boolean | undefined; /** Allocates an ephemeral host port for all of a container's exposed ports. Ports are de-allocated when the container stops and allocated when the container starts. The allocated port might be changed when restarting the container. The port is selected from the ephemeral port range that depends on the kernel. For example, on Linux the range is defined by `/proc/sys/net/ipv4/ip_local_port_range`. */ PublishAllPorts?: boolean | undefined; /** Mount the container's root filesystem as read only. */ ReadonlyRootfs?: boolean | undefined; /** A list of string values to customize labels for MLS systems, such as SELinux. */ SecurityOpt?: HostConfigSecurityOptList | undefined; /** Storage driver options for this container, in the form `{"size": "120G"}`. */ StorageOpt?: HostConfigStorageOptMap | undefined; /** A map of container directories which should be replaced by tmpfs mounts, and their corresponding mount options. For example: ``` { "/run": "rw,noexec,nosuid,size=65536k" } ``` */ Tmpfs?: HostConfigTmpfsMap | undefined; /** UTS namespace to use for the container. */ UTSMode?: string | undefined; /** Sets the usernamespace mode for the container when usernamespace remapping option is enabled. */ UsernsMode?: string | undefined; /** Size of `/dev/shm` in bytes. If omitted, the system uses 64MB. */ ShmSize?: number | undefined; /** A list of kernel parameters (sysctls) to set in the container. This field is omitted if not set. */ Sysctls?: HostConfigSysctlsMap | null | undefined; /** Runtime to use with this container. */ Runtime?: string | null | undefined; /** Set the initial umask for a Unix container. If omitted, the daemon does not set a umask in the OCI process specification, and the runtime's default behavior applies. JSON integers are decimal. For example, use `18` for the octal umask `0022`, and `511` for the octal umask `0777`. */ Umask?: number | null | undefined; /** Isolation technology of the container. (Windows only) */ Isolation?: HostConfigIsolation | (string & {}) | undefined; /** The list of paths to be masked inside the container (this overrides the default set of paths). */ MaskedPaths?: HostConfigMaskedPathsList | undefined; /** The list of paths to be set as read-only inside the container (this overrides the default set of paths). */ ReadonlyPaths?: HostConfigReadonlyPathsList | undefined; } /** Low-level storage metadata, provided as key/value pairs. This information is driver-specific, and depends on the storage-driver in use, and should be used for informational purposes only. */ export type DriverDataDataMap = { [key: string]: string | undefined }; /** Information about the storage driver used to store the container's and image's filesystem. */ export interface DriverData { /** Name of the storage driver. */ Name: string; /** Low-level storage metadata, provided as key/value pairs. This information is driver-specific, and depends on the storage-driver in use, and should be used for informational purposes only. */ Data: DriverDataDataMap; } /** Information about a snapshot backend of the container's root filesystem. */ export interface RootFSStorageSnapshot { /** Name of the snapshotter. */ Name?: string | undefined; } /** Information about the storage used for the container's root filesystem. */ export interface RootFSStorage { /** Information about the snapshot used for the container's root filesystem. */ Snapshot?: RootFSStorageSnapshot | null | undefined; } /** Information about the storage used by the container. */ export interface Storage { /** Information about the storage used for the container's root filesystem. */ RootFS?: RootFSStorage | null | undefined; } /** MountPoint represents a mount point configuration inside the container. This is used for reporting the mountpoints in use by a container. */ export interface MountPoint { /** The mount type: - `bind` a mount of a file or directory from the host into the container. - `cluster` a Swarm cluster volume. - `image` an OCI image. - `npipe` a named pipe from the host into the container. - `tmpfs` a `tmpfs`. - `volume` a docker volume with the given `Name`. */ Type?: MountType | undefined; /** Name is the name reference to the underlying data defined by `Source` e.g., the volume name. */ Name?: string | undefined; /** Source location of the mount. For volumes, this contains the storage location of the volume (within `/var/lib/docker/volumes/`). For bind-mounts, and `npipe`, this contains the source (host) part of the bind-mount. For `tmpfs` mount points, this field is empty. */ Source?: string | undefined; /** Destination is the path relative to the container root (`/`) where the `Source` is mounted inside the container. */ Destination?: string | undefined; /** Driver is the volume driver used to create the volume (if it is a volume). */ Driver?: string | undefined; /** Mode is a comma separated list of options supplied by the user when creating the bind/volume mount. The default is platform-specific (`"z"` on Linux, empty on Windows). */ Mode?: string | undefined; /** Whether the mount is mounted writable (read-write). */ RW?: boolean | undefined; /** Propagation describes how mounts are propagated from the host into the mount point, and vice-versa. Refer to the [Linux kernel documentation](https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt) for details. This field is not used on Windows. */ Propagation?: string | undefined; } /** List of mounts used by the container. */ export type ContainerInspectResponseMountsList = Array; /** An object mapping ports to an empty object in the form: `{"/": {}}` */ export type ContainerConfigExposedPortsMap = { [key: string]: unknown | undefined }; /** A list of environment variables to set inside the container in the form `["VAR=value", ...]`. A variable without `=` is removed from the environment, rather than to have an empty value. */ export type ContainerConfigEnvList = Array; /** Command to run specified as a string or an array of strings. */ export type ContainerConfigCmdList = Array; /** An object mapping mount point paths inside the container to empty objects. */ export type ContainerConfigVolumesMap = { [key: string]: unknown | undefined }; /** The entry point for the container as a string or an array of strings. If the array consists of exactly one empty string (`[""]`) then the entry point is reset to system default (i.e., the entry point used by docker when there is no `ENTRYPOINT` instruction in the `Dockerfile`). */ export type ContainerConfigEntrypointList = Array; /** `ONBUILD` metadata that were defined in the image's `Dockerfile`. */ export type ContainerConfigOnBuildList = Array; /** User-defined key/value metadata. */ export type ContainerConfigLabelsMap = { [key: string]: string | undefined }; /** Shell for when `RUN`, `CMD`, and `ENTRYPOINT` uses a shell. */ export type ContainerConfigShellList = Array; /** Configuration for a container that is portable between hosts. */ export interface ContainerConfig { /** The hostname to use for the container, as a valid RFC 1123 hostname. */ Hostname?: string | undefined; /** The domain name to use for the container. */ Domainname?: string | undefined; /** Commands run as this user inside the container. If omitted, commands run as the user specified in the image the container was started from. Can be either user-name or UID, and optional group-name or GID, separated by a colon (`[<:group-name|GID>]`). */ User?: string | undefined; /** Whether to attach to `stdin`. */ AttachStdin?: boolean | undefined; /** Whether to attach to `stdout`. */ AttachStdout?: boolean | undefined; /** Whether to attach to `stderr`. */ AttachStderr?: boolean | undefined; /** An object mapping ports to an empty object in the form: `{"/": {}}` */ ExposedPorts?: ContainerConfigExposedPortsMap | null | undefined; /** Attach standard streams to a TTY, including `stdin` if it is not closed. */ Tty?: boolean | undefined; /** Open `stdin` */ OpenStdin?: boolean | undefined; /** Close `stdin` after one attached client disconnects */ StdinOnce?: boolean | undefined; /** A list of environment variables to set inside the container in the form `["VAR=value", ...]`. A variable without `=` is removed from the environment, rather than to have an empty value. */ Env?: ContainerConfigEnvList | undefined; /** Command to run specified as a string or an array of strings. */ Cmd?: ContainerConfigCmdList | undefined; Healthcheck?: HealthConfig | undefined; /** Command is already escaped (Windows only) */ ArgsEscaped?: boolean | null | undefined; /** The name (or reference) of the image to use when creating the container, or which was used when the container was created. */ Image?: string | undefined; /** An object mapping mount point paths inside the container to empty objects. */ Volumes?: ContainerConfigVolumesMap | undefined; /** The working directory for commands to run in. */ WorkingDir?: string | undefined; /** The entry point for the container as a string or an array of strings. If the array consists of exactly one empty string (`[""]`) then the entry point is reset to system default (i.e., the entry point used by docker when there is no `ENTRYPOINT` instruction in the `Dockerfile`). */ Entrypoint?: ContainerConfigEntrypointList | undefined; /** Disable networking for the container. */ NetworkDisabled?: boolean | null | undefined; /** `ONBUILD` metadata that were defined in the image's `Dockerfile`. */ OnBuild?: ContainerConfigOnBuildList | null | undefined; /** User-defined key/value metadata. */ Labels?: ContainerConfigLabelsMap | undefined; /** Signal to stop a container as a string or unsigned integer. */ StopSignal?: string | null | undefined; /** Timeout to stop a container in seconds. If omitted, the daemon-wide default (`default-stop-timeout`) is used. */ StopTimeout?: number | null | undefined; /** Shell for when `RUN`, `CMD`, and `ENTRYPOINT` uses a shell. */ Shell?: ContainerConfigShellList | null | undefined; } /** Information about all networks that the container is connected to. */ export type NetworkSettingsNetworksMap = { [key: string]: EndpointSettings | undefined }; /** NetworkSettings exposes the network settings in the API */ export interface NetworkSettings { /** SandboxID uniquely represents a container's network stack. */ SandboxID?: string | undefined; /** SandboxKey is the full path of the netns handle */ SandboxKey?: string | undefined; Ports?: PortMap | undefined; /** Information about all networks that the container is connected to. */ Networks?: NetworkSettingsNetworksMap | undefined; } export interface ContainerInspectResponse { /** The ID of this container as a 128-bit (64-character) hexadecimal string (32 bytes). */ Id?: string | undefined; /** Date and time at which the container was created, formatted in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds. */ Created?: string | null | undefined; /** The path to the command being run */ Path?: string | undefined; /** The arguments to the command being run */ Args?: ContainerInspectResponseArgsList | undefined; State?: ContainerState | null | undefined; /** The ID (digest) of the image that this container was created from. */ Image?: string | undefined; /** Location of the `/etc/resolv.conf` generated for the container on the host. This file is managed through the docker daemon, and should not be accessed or modified by other tools. */ ResolvConfPath?: string | undefined; /** Location of the `/etc/hostname` generated for the container on the host. This file is managed through the docker daemon, and should not be accessed or modified by other tools. */ HostnamePath?: string | undefined; /** Location of the `/etc/hosts` generated for the container on the host. This file is managed through the docker daemon, and should not be accessed or modified by other tools. */ HostsPath?: string | undefined; /** Location of the file used to buffer the container's logs. Depending on the logging-driver used for the container, this field may be omitted. This file is managed through the docker daemon, and should not be accessed or modified by other tools. */ LogPath?: string | null | undefined; /** The name associated with this container. For historic reasons, the name may be prefixed with a forward-slash (`/`). */ Name?: string | undefined; /** Number of times the container was restarted since it was created, or since daemon was started. */ RestartCount?: number | undefined; /** The storage-driver used for the container's filesystem (graph-driver or snapshotter). */ Driver?: string | undefined; /** The platform (operating system) for which the container was created. This field was introduced for the experimental "LCOW" (Linux Containers On Windows) features, which has been removed. In most cases, this field is equal to the host's operating system (`linux` or `windows`). */ Platform?: string | undefined; /** OCI descriptor of the platform-specific manifest of the image the container was created from. Note: Only available if the daemon provides a multi-platform image store. */ ImageManifestDescriptor?: OCIDescriptor | undefined; /** SELinux mount label set for the container. */ MountLabel?: string | undefined; /** SELinux process label set for the container. */ ProcessLabel?: string | undefined; /** The AppArmor profile set for the container. */ AppArmorProfile?: string | undefined; /** IDs of exec instances that are running in the container. */ ExecIDs?: ContainerInspectResponseExecIDsList | null | undefined; HostConfig?: HostConfig | undefined; GraphDriver?: DriverData | null | undefined; Storage?: Storage | null | undefined; /** The size of files that have been created or changed by this container. This field is omitted by default, and only set when size is requested in the API request. */ SizeRw?: number | null | undefined; /** The total size of all files in the read-only layers from the image that the container uses. These layers can be shared between containers. This field is omitted by default, and only set when size is requested in the API request. */ SizeRootFs?: number | null | undefined; /** List of mounts used by the container. */ Mounts?: ContainerInspectResponseMountsList | undefined; Config?: ContainerConfig | undefined; NetworkSettings?: NetworkSettings | undefined; } export interface ContainerLogsRequest { /** ID or name of the container */ id: string; /** Keep connection after returning logs. */ follow?: boolean | undefined; /** Return logs from `stdout` */ stdout?: boolean | undefined; /** Return logs from `stderr` */ stderr?: boolean | undefined; /** Only return logs since this time, as a UNIX timestamp */ since?: number | undefined; /** Only return logs before this time, as a UNIX timestamp */ until?: number | undefined; /** Add timestamps to every log line */ timestamps?: boolean | undefined; /** Only return this number of log lines from the end of the logs. Specify as an integer or `all` to output all log lines. */ tail?: string | undefined; } export type ContainerLogsResponse = string; export interface ContainerPruneRequest { /** Filters to process on the prune list, encoded as JSON (a `map[string][]string`). Available filters: - `until=` Prune containers created before this timestamp. The `` can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. `10m`, `1h30m`) computed relative to the daemon machine's time. - `label` (`label=`, `label==`, `label!=`, or `label!==`) Prune containers with (or without, in case `label!=...` is used) the specified labels. */ filters?: string | undefined; } /** Container IDs that were deleted */ export type ContainerPruneResponseContainersDeletedList = Array; export interface ContainerPruneResponse { /** Container IDs that were deleted */ ContainersDeleted?: ContainerPruneResponseContainersDeletedList | undefined; /** Disk space reclaimed in bytes */ SpaceReclaimed?: number | undefined; } export interface ContainerStatsRequest { /** ID or name of the container */ id: string; /** Stream the output. If false, the stats will be output once and then it will disconnect. */ stream?: boolean | undefined; /** Only get a single stat instead of waiting for 2 cycles. Must be used with `stream=false`. */ one_shot?: boolean | undefined; } /** Total CPU time (in nanoseconds) consumed per core (Linux). This field is Linux-specific when using cgroups v1. It is omitted when using cgroups v2 and Windows containers. */ export type ContainerCPUUsagePercpuUsageList = Array; /** All CPU stats aggregated since container inception. */ export interface ContainerCPUUsage { /** Total CPU time consumed in nanoseconds (Linux) or 100's of nanoseconds (Windows). */ total_usage?: number | undefined; /** Total CPU time (in nanoseconds) consumed per core (Linux). This field is Linux-specific when using cgroups v1. It is omitted when using cgroups v2 and Windows containers. */ percpu_usage?: ContainerCPUUsagePercpuUsageList | null | undefined; /** Time (in nanoseconds) spent by tasks of the cgroup in kernel mode (Linux), or time spent (in 100's of nanoseconds) by all container processes in kernel mode (Windows). Not populated for Windows containers using Hyper-V isolation. */ usage_in_kernelmode?: number | undefined; /** Time (in nanoseconds) spent by tasks of the cgroup in user mode (Linux), or time spent (in 100's of nanoseconds) by all container processes in kernel mode (Windows). Not populated for Windows containers using Hyper-V isolation. */ usage_in_usermode?: number | undefined; } /** CPU throttling stats of the container. This type is Linux-specific and omitted for Windows containers. */ export interface ContainerThrottlingData { /** Number of periods with throttling active. */ periods?: number | undefined; /** Number of periods when the container hit its throttling limit. */ throttled_periods?: number | undefined; /** Aggregated time (in nanoseconds) the container was throttled for. */ throttled_time?: number | undefined; } /** CPU related info of the container */ export interface ContainerCPUStats { cpu_usage?: ContainerCPUUsage | null | undefined; /** System Usage. This field is Linux-specific and omitted for Windows containers. */ system_cpu_usage?: number | null | undefined; /** Number of online CPUs. This field is Linux-specific and omitted for Windows containers. */ online_cpus?: number | null | undefined; throttling_data?: ContainerThrottlingData | null | undefined; } /** All the stats exported via memory.stat. The fields in this object differ between cgroups v1 and v2. On cgroups v1, fields such as `cache`, `rss`, `mapped_file` are available. On cgroups v2, fields such as `file`, `anon`, `inactive_file` are available. This field is Linux-specific and omitted for Windows containers. */ export type ContainerMemoryStatsStatsMap = { [key: string]: number | null | undefined }; /** Aggregates all memory stats since container inception on Linux. Windows returns stats for commit and private working set only. */ export interface ContainerMemoryStats { /** Current `res_counter` usage for memory. This field is Linux-specific and omitted for Windows containers. */ usage?: number | null | undefined; /** Maximum usage ever recorded. This field is Linux-specific and only supported on cgroups v1. It is omitted when using cgroups v2 and for Windows containers. */ max_usage?: number | null | undefined; /** All the stats exported via memory.stat. The fields in this object differ between cgroups v1 and v2. On cgroups v1, fields such as `cache`, `rss`, `mapped_file` are available. On cgroups v2, fields such as `file`, `anon`, `inactive_file` are available. This field is Linux-specific and omitted for Windows containers. */ stats?: ContainerMemoryStatsStatsMap | undefined; /** Number of times memory usage hits limits. This field is Linux-specific and only supported on cgroups v1. It is omitted when using cgroups v2 and for Windows containers. */ failcnt?: number | null | undefined; /** This field is Linux-specific and omitted for Windows containers. */ limit?: number | null | undefined; /** Committed bytes. This field is Windows-specific and omitted for Linux containers. */ commitbytes?: number | null | undefined; /** Peak committed bytes. This field is Windows-specific and omitted for Linux containers. */ commitpeakbytes?: number | null | undefined; /** Private working set. This field is Windows-specific and omitted for Linux containers. */ privateworkingset?: number | null | undefined; } /** Aggregates the network stats of one container */ export interface ContainerNetworkStats { /** Bytes received. Windows and Linux. */ rx_bytes?: number | undefined; /** Packets received. Windows and Linux. */ rx_packets?: number | undefined; /** Received errors. Not used on Windows. This field is Linux-specific and always zero for Windows containers. */ rx_errors?: number | undefined; /** Incoming packets dropped. Windows and Linux. */ rx_dropped?: number | undefined; /** Bytes sent. Windows and Linux. */ tx_bytes?: number | undefined; /** Packets sent. Windows and Linux. */ tx_packets?: number | undefined; /** Sent errors. Not used on Windows. This field is Linux-specific and always zero for Windows containers. */ tx_errors?: number | undefined; /** Outgoing packets dropped. Windows and Linux. */ tx_dropped?: number | undefined; /** Endpoint ID. Not used on Linux. This field is Windows-specific and omitted for Linux containers. */ endpoint_id?: string | null | undefined; /** Instance ID. Not used on Linux. This field is Windows-specific and omitted for Linux containers. */ instance_id?: string | null | undefined; } /** Network statistics for the container per interface. This field is omitted if the container has no networking enabled. */ export type ContainerStatsResponseNetworksMap = { [key: string]: ContainerNetworkStats | null | undefined; }; /** PidsStats contains Linux-specific stats of a container's process-IDs (PIDs). This type is Linux-specific and omitted for Windows containers. */ export interface ContainerPidsStats { /** Current is the number of PIDs in the cgroup. */ current?: number | null | undefined; /** Limit is the hard limit on the number of pids in the cgroup. A "Limit" of 0 means that there is no limit. */ limit?: number | null | undefined; } /** Blkio stats entry. This type is Linux-specific and omitted for Windows containers. */ export interface ContainerBlkioStatEntry { major?: number | undefined; minor?: number | undefined; op?: string | undefined; value?: number | undefined; } export type ContainerBlkioStatsIoServiceBytesRecursiveList = Array; /** This field is only available when using Linux containers with cgroups v1. It is omitted or `null` when using cgroups v2. */ export type ContainerBlkioStatsIoServicedRecursiveList = Array; /** This field is only available when using Linux containers with cgroups v1. It is omitted or `null` when using cgroups v2. */ export type ContainerBlkioStatsIoQueueRecursiveList = Array; /** This field is only available when using Linux containers with cgroups v1. It is omitted or `null` when using cgroups v2. */ export type ContainerBlkioStatsIoServiceTimeRecursiveList = Array; /** This field is only available when using Linux containers with cgroups v1. It is omitted or `null` when using cgroups v2. */ export type ContainerBlkioStatsIoWaitTimeRecursiveList = Array; /** This field is only available when using Linux containers with cgroups v1. It is omitted or `null` when using cgroups v2. */ export type ContainerBlkioStatsIoMergedRecursiveList = Array; /** This field is only available when using Linux containers with cgroups v1. It is omitted or `null` when using cgroups v2. */ export type ContainerBlkioStatsIoTimeRecursiveList = Array; /** This field is only available when using Linux containers with cgroups v1. It is omitted or `null` when using cgroups v2. */ export type ContainerBlkioStatsSectorsRecursiveList = Array; /** BlkioStats stores all IO service stats for data read and write. This type is Linux-specific and holds many fields that are specific to cgroups v1. On a cgroup v2 host, all fields other than `io_service_bytes_recursive` are omitted or `null`. This type is only populated on Linux and omitted for Windows containers. */ export interface ContainerBlkioStats { io_service_bytes_recursive?: ContainerBlkioStatsIoServiceBytesRecursiveList | undefined; /** This field is only available when using Linux containers with cgroups v1. It is omitted or `null` when using cgroups v2. */ io_serviced_recursive?: ContainerBlkioStatsIoServicedRecursiveList | null | undefined; /** This field is only available when using Linux containers with cgroups v1. It is omitted or `null` when using cgroups v2. */ io_queue_recursive?: ContainerBlkioStatsIoQueueRecursiveList | null | undefined; /** This field is only available when using Linux containers with cgroups v1. It is omitted or `null` when using cgroups v2. */ io_service_time_recursive?: ContainerBlkioStatsIoServiceTimeRecursiveList | null | undefined; /** This field is only available when using Linux containers with cgroups v1. It is omitted or `null` when using cgroups v2. */ io_wait_time_recursive?: ContainerBlkioStatsIoWaitTimeRecursiveList | null | undefined; /** This field is only available when using Linux containers with cgroups v1. It is omitted or `null` when using cgroups v2. */ io_merged_recursive?: ContainerBlkioStatsIoMergedRecursiveList | null | undefined; /** This field is only available when using Linux containers with cgroups v1. It is omitted or `null` when using cgroups v2. */ io_time_recursive?: ContainerBlkioStatsIoTimeRecursiveList | null | undefined; /** This field is only available when using Linux containers with cgroups v1. It is omitted or `null` when using cgroups v2. */ sectors_recursive?: ContainerBlkioStatsSectorsRecursiveList | null | undefined; } /** StorageStats is the disk I/O stats for read/write on Windows. This type is Windows-specific and omitted for Linux containers. */ export interface ContainerStorageStats { read_count_normalized?: number | null | undefined; read_size_bytes?: number | null | undefined; write_count_normalized?: number | null | undefined; write_size_bytes?: number | null | undefined; } /** Statistics sample for a container. */ export interface ContainerStatsResponse { /** ID of the container for which the stats were collected. */ id?: string | null | undefined; /** Name of the container for which the stats were collected. */ name?: string | null | undefined; /** OSType is the OS of the container ("linux" or "windows") to allow platform-specific handling of stats. */ os_type?: string | null | undefined; /** Date and time at which this sample was collected. The value is formatted as [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) with nano-seconds. */ read?: string | undefined; cpu_stats?: ContainerCPUStats | null | undefined; memory_stats?: ContainerMemoryStats | undefined; /** Network statistics for the container per interface. This field is omitted if the container has no networking enabled. */ networks?: ContainerStatsResponseNetworksMap | null | undefined; pids_stats?: ContainerPidsStats | null | undefined; blkio_stats?: ContainerBlkioStats | null | undefined; /** The number of processors on the system. This field is Windows-specific and always zero for Linux containers. */ num_procs?: number | undefined; storage_stats?: ContainerStorageStats | null | undefined; /** Date and time at which this first sample was collected. This field is not propagated if the "one-shot" option is set. If the "one-shot" option is set, this field may be omitted, empty, or set to a default date (`0001-01-01T00:00:00Z`). The value is formatted as [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) with nano-seconds. */ preread?: string | undefined; precpu_stats?: ContainerCPUStats | null | undefined; } export interface ContainerTopRequest { /** ID or name of the container */ id: string; /** The arguments to pass to `ps`. For example, `aux` */ ps_args?: string | undefined; } /** The ps column titles */ export type ContainerTopResponseTitlesList = Array; export type ContainerTopResponseProcessesItemList = Array; /** Each process running in the container, where each process is an array of values corresponding to the titles. */ export type ContainerTopResponseProcessesList = Array; /** Container "top" response. */ export interface ContainerTopResponse { /** The ps column titles */ Titles?: ContainerTopResponseTitlesList | undefined; /** Each process running in the container, where each process is an array of values corresponding to the titles. */ Processes?: ContainerTopResponseProcessesList | undefined; } /** User-defined key/value metadata. */ export type CreateConfigRequestLabelsMap = { [key: string]: string | undefined }; export interface CreateConfigRequest { /** User-defined name of the config. */ Name?: string | undefined; /** User-defined key/value metadata. */ Labels?: CreateConfigRequestLabelsMap | undefined; /** Data is the data to store as a config, formatted as a standard base64-encoded ([RFC 4648](https://tools.ietf.org/html/rfc4648#section-4)) string. The maximum allowed size is 1000KB, as defined in [MaxConfigSize](https://pkg.go.dev/github.com/moby/swarmkit/v2@v2.0.0-20250103191802-8c1959736554/manager/controlapi#MaxConfigSize). */ Data?: string | undefined; /** Templating driver, if applicable Templating controls whether and how to evaluate the config payload as a template. If no driver is set, no templating is used. */ Templating?: Driver | undefined; } /** An object mapping ports to an empty object in the form: `{"/": {}}` */ export type CreateContainerRequestExposedPortsMap = { [key: string]: unknown | undefined }; /** A list of environment variables to set inside the container in the form `["VAR=value", ...]`. A variable without `=` is removed from the environment, rather than to have an empty value. */ export type CreateContainerRequestEnvList = Array; /** Command to run specified as a string or an array of strings. */ export type CreateContainerRequestCmdList = Array; /** An object mapping mount point paths inside the container to empty objects. */ export type CreateContainerRequestVolumesMap = { [key: string]: unknown | undefined }; /** The entry point for the container as a string or an array of strings. If the array consists of exactly one empty string (`[""]`) then the entry point is reset to system default (i.e., the entry point used by docker when there is no `ENTRYPOINT` instruction in the `Dockerfile`). */ export type CreateContainerRequestEntrypointList = Array; /** `ONBUILD` metadata that were defined in the image's `Dockerfile`. */ export type CreateContainerRequestOnBuildList = Array; /** User-defined key/value metadata. */ export type CreateContainerRequestLabelsMap = { [key: string]: string | undefined }; /** Shell for when `RUN`, `CMD`, and `ENTRYPOINT` uses a shell. */ export type CreateContainerRequestShellList = Array; /** A mapping of network name to endpoint configuration for that network. The endpoint configuration can be left empty to connect to that network with no particular endpoint configuration. */ export type NetworkingConfigEndpointsConfigMap = { [key: string]: EndpointSettings | undefined }; /** NetworkingConfig represents the container's networking configuration for each of its interfaces. It is used for the networking configs specified in the `docker create` and `docker network connect` commands. */ export interface NetworkingConfig { /** A mapping of network name to endpoint configuration for that network. The endpoint configuration can be left empty to connect to that network with no particular endpoint configuration. */ EndpointsConfig?: NetworkingConfigEndpointsConfigMap | undefined; } export interface CreateContainerRequest { /** Assign the specified name to the container. Must match `/?[a-zA-Z0-9][a-zA-Z0-9_.-]+`. */ name?: string | undefined; /** Platform in the format `os[/arch[/variant]]` used for image lookup. When specified, the daemon checks if the requested image is present in the local image cache with the given OS and Architecture, and otherwise returns a `404` status. If the option is not set, the host's native OS and Architecture are used to look up the image in the image cache. However, if no platform is passed and the given image does exist in the local image cache, but its OS or architecture does not match, the container is created with the available image, and a warning is added to the `Warnings` field in the response, for example; WARNING: The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requested */ platform?: string | undefined; /** The hostname to use for the container, as a valid RFC 1123 hostname. */ Hostname?: string | undefined; /** The domain name to use for the container. */ Domainname?: string | undefined; /** Commands run as this user inside the container. If omitted, commands run as the user specified in the image the container was started from. Can be either user-name or UID, and optional group-name or GID, separated by a colon (`[<:group-name|GID>]`). */ User?: string | undefined; /** Whether to attach to `stdin`. */ AttachStdin?: boolean | undefined; /** Whether to attach to `stdout`. */ AttachStdout?: boolean | undefined; /** Whether to attach to `stderr`. */ AttachStderr?: boolean | undefined; /** An object mapping ports to an empty object in the form: `{"/": {}}` */ ExposedPorts?: CreateContainerRequestExposedPortsMap | null | undefined; /** Attach standard streams to a TTY, including `stdin` if it is not closed. */ Tty?: boolean | undefined; /** Open `stdin` */ OpenStdin?: boolean | undefined; /** Close `stdin` after one attached client disconnects */ StdinOnce?: boolean | undefined; /** A list of environment variables to set inside the container in the form `["VAR=value", ...]`. A variable without `=` is removed from the environment, rather than to have an empty value. */ Env?: CreateContainerRequestEnvList | undefined; /** Command to run specified as a string or an array of strings. */ Cmd?: CreateContainerRequestCmdList | undefined; Healthcheck?: HealthConfig | undefined; /** Command is already escaped (Windows only) */ ArgsEscaped?: boolean | null | undefined; /** The name (or reference) of the image to use when creating the container, or which was used when the container was created. */ Image?: string | undefined; /** An object mapping mount point paths inside the container to empty objects. */ Volumes?: CreateContainerRequestVolumesMap | undefined; /** The working directory for commands to run in. */ WorkingDir?: string | undefined; /** The entry point for the container as a string or an array of strings. If the array consists of exactly one empty string (`[""]`) then the entry point is reset to system default (i.e., the entry point used by docker when there is no `ENTRYPOINT` instruction in the `Dockerfile`). */ Entrypoint?: CreateContainerRequestEntrypointList | undefined; /** Disable networking for the container. */ NetworkDisabled?: boolean | null | undefined; /** `ONBUILD` metadata that were defined in the image's `Dockerfile`. */ OnBuild?: CreateContainerRequestOnBuildList | null | undefined; /** User-defined key/value metadata. */ Labels?: CreateContainerRequestLabelsMap | undefined; /** Signal to stop a container as a string or unsigned integer. */ StopSignal?: string | null | undefined; /** Timeout to stop a container in seconds. If omitted, the daemon-wide default (`default-stop-timeout`) is used. */ StopTimeout?: number | null | undefined; /** Shell for when `RUN`, `CMD`, and `ENTRYPOINT` uses a shell. */ Shell?: CreateContainerRequestShellList | null | undefined; HostConfig?: HostConfig | undefined; NetworkingConfig?: NetworkingConfig | undefined; } /** Warnings encountered when creating the container */ export type ContainerCreateResponseWarningsList = Array; /** OK response to ContainerCreate operation */ export interface ContainerCreateResponse { /** The ID of the created container */ Id: string; /** Warnings encountered when creating the container */ Warnings: ContainerCreateResponseWarningsList; } export type CreateImageRequestChangesList = Array; export interface CreateImageRequest { /** Name of the image to pull. If the name includes a tag or digest, specific behavior applies: - If only `fromImage` includes a tag, that tag is used. - If both `fromImage` and `tag` are provided, `tag` takes precedence. - If `fromImage` includes a digest, the image is pulled by digest, and `tag` is ignored. - If neither a tag nor digest is specified, all tags are pulled. */ fromImage?: string | undefined; /** Source to import. The value may be a URL from which the image can be retrieved or `-` to read the image from the request body. This parameter may only be used when importing an image. */ fromSrc?: string | undefined; /** Repository name given to an image when it is imported. The repo may include a tag. This parameter may only be used when importing an image. */ repo?: string | undefined; /** Tag or digest. If empty when pulling an image, this causes all tags for the given image to be pulled. */ tag?: string | undefined; /** Set commit message for imported image. */ message?: string | undefined; /** Apply `Dockerfile` instructions to the image that is created, for example: `changes=ENV DEBUG=true`. Note that `ENV DEBUG=true` should be URI component encoded. Repeat the parameter to apply multiple instructions. Supported `Dockerfile` instructions: `CMD`|`ENTRYPOINT`|`ENV`|`EXPOSE`|`ONBUILD`|`USER`|`VOLUME`|`WORKDIR` */ changes?: CreateImageRequestChangesList | undefined; /** Platform in the format os[/arch[/variant]]. When used in combination with the `fromImage` option, the daemon checks if the given image is present in the local image cache with the given OS and Architecture, and otherwise attempts to pull the image. If the option is not set, the host's native OS and Architecture are used. If the given image does not exist in the local image cache, the daemon attempts to pull the image with the host's native OS and Architecture. If the given image does exists in the local image cache, but its OS or architecture does not match, a warning is produced. When used with the `fromSrc` option to import an image from an archive, this option sets the platform information for the imported image. If the option is not set, the host's native OS and Architecture are used for the imported image. */ platform?: string | undefined; /** A base64url-encoded auth configuration. Refer to the [authentication section](#section/Authentication) for details. */ xRegistryAuth?: string | Redacted.Redacted | undefined; body?: string | undefined; } export interface CreateImageResponse {} /** The config-only network source to provide the configuration for this network. */ export interface ConfigReference { /** The name of the config-only network that provides the network's configuration. The specified network must be an existing config-only network. Only network names are allowed, not network IDs. */ Network?: string | undefined; } export type IPAMConfigAuxiliaryAddressesMap = { [key: string]: string | undefined }; export interface IPAMConfig { Subnet?: string | undefined; IPRange?: string | undefined; Gateway?: string | undefined; AuxiliaryAddresses?: IPAMConfigAuxiliaryAddressesMap | undefined; } /** List of IPAM configuration options, specified as a map: ``` {"Subnet": , "IPRange": , "Gateway": , "AuxAddress": } ``` */ export type IPAMConfigList = Array; /** Driver-specific options, specified as a map. */ export type IPAMOptionsMap = { [key: string]: string | undefined }; export interface IPAM { /** Name of the IPAM driver to use. */ Driver?: string | undefined; /** List of IPAM configuration options, specified as a map: ``` {"Subnet": , "IPRange": , "Gateway": , "AuxAddress": } ``` */ Config?: IPAMConfigList | undefined; /** Driver-specific options, specified as a map. */ Options?: IPAMOptionsMap | undefined; } /** Network specific options to be used by the drivers. */ export type CreateNetworkRequestOptionsMap = { [key: string]: string | undefined }; /** User-defined key/value metadata. */ export type CreateNetworkRequestLabelsMap = { [key: string]: string | undefined }; export interface CreateNetworkRequest { /** The network's name. */ Name: string; /** Name of the network driver plugin to use. */ Driver?: string | undefined; /** The level at which the network exists (e.g. `swarm` for cluster-wide or `local` for machine level). */ Scope?: string | undefined; /** Restrict external access to the network. */ Internal?: boolean | undefined; /** Globally scoped network is manually attachable by regular containers from workers in swarm mode. */ Attachable?: boolean | undefined; /** Ingress network is the network which provides the routing-mesh in swarm mode. */ Ingress?: boolean | undefined; /** Creates a config-only network. Config-only networks are placeholder networks for network configurations to be used by other networks. Config-only networks cannot be used directly to run containers or services. */ ConfigOnly?: boolean | undefined; /** Specifies the source which will provide the configuration for this network. The specified network must be an existing config-only network; see ConfigOnly. */ ConfigFrom?: ConfigReference | undefined; /** Optional custom IP scheme for the network. */ IPAM?: IPAM | undefined; /** Enable IPv4 on the network. */ EnableIPv4?: boolean | undefined; /** Enable IPv6 on the network. */ EnableIPv6?: boolean | undefined; /** Network specific options to be used by the drivers. */ Options?: CreateNetworkRequestOptionsMap | undefined; /** User-defined key/value metadata. */ Labels?: CreateNetworkRequestLabelsMap | undefined; } /** OK response to NetworkCreate operation */ export interface NetworkCreateResponse { /** The ID of the created network. */ Id: string; /** Warnings encountered when creating the container */ Warning: string; } export interface CreatePluginRequest { /** The name of the plugin. The `:latest` tag is optional, and is the default if omitted. */ name: string; body?: string | undefined; } export interface CreatePluginResponse {} /** User-defined key/value metadata. */ export type CreateSecretRequestLabelsMap = { [key: string]: string | undefined }; export interface CreateSecretRequest { /** User-defined name of the secret. */ Name?: string | undefined; /** User-defined key/value metadata. */ Labels?: CreateSecretRequestLabelsMap | undefined; /** Data is the data to store as a secret, formatted as a standard base64-encoded ([RFC 4648](https://tools.ietf.org/html/rfc4648#section-4)) string. It must be empty if the Driver field is set, in which case the data is loaded from an external secret store. The maximum allowed size is 500KB, as defined in [MaxSecretSize](https://pkg.go.dev/github.com/moby/swarmkit/v2@v2.0.0/api/validation#MaxSecretSize). This field is only used to _create_ a secret, and is not returned by other endpoints. */ Data?: string | undefined; /** Name of the secrets driver used to fetch the secret's value from an external secret store. */ Driver?: Driver | undefined; /** Templating driver, if applicable Templating controls whether and how to evaluate the config payload as a template. If no driver is set, no templating is used. */ Templating?: Driver | undefined; } /** User-defined key/value metadata. */ export type CreateServiceRequestLabelsMap = { [key: string]: string | undefined }; export type PluginPrivilegeValueList = Array; /** Describes a permission the user has to accept upon installing the plugin. */ export interface PluginPrivilege { Name?: string | undefined; Description?: string | undefined; Value?: PluginPrivilegeValueList | undefined; } export type TaskSpecPluginSpecPluginPrivilegeList = Array; /** Plugin spec for the service. *(Experimental release only.)*


> **Note**: ContainerSpec, NetworkAttachmentSpec, and PluginSpec are > mutually exclusive. PluginSpec is only used when the Runtime field > is set to `plugin`. NetworkAttachmentSpec is used when the Runtime > field is set to `attachment`. */ export interface TaskSpecPluginSpec { /** The name or 'alias' to use for the plugin. */ Name?: string | undefined; /** The plugin image reference to use. */ Remote?: string | undefined; /** Disable the plugin once scheduled. */ Disabled?: boolean | undefined; PluginPrivilege?: TaskSpecPluginSpecPluginPrivilegeList | undefined; } /** User-defined key/value data. */ export type TaskSpecContainerSpecLabelsMap = { [key: string]: string | undefined }; /** The command to be run in the image. */ export type TaskSpecContainerSpecCommandList = Array; /** Arguments to the command. */ export type TaskSpecContainerSpecArgsList = Array; /** A list of environment variables in the form `VAR=value`. */ export type TaskSpecContainerSpecEnvList = Array; /** A list of additional groups that the container process will run as. */ export type TaskSpecContainerSpecGroupsList = Array; /** CredentialSpec for managed service account (Windows only) */ export interface TaskSpecContainerSpecPrivilegesCredentialSpec { /** Load credential spec from a Swarm Config with the given ID. The specified config must also be present in the Configs field with the Runtime property set.


> **Note**: `CredentialSpec.File`, `CredentialSpec.Registry`, > and `CredentialSpec.Config` are mutually exclusive. */ Config?: string | undefined; /** Load credential spec from this file. The file is read by the daemon, and must be present in the `CredentialSpecs` subdirectory in the docker data directory, which defaults to `C:\ProgramData\Docker\` on Windows. For example, specifying `spec.json` loads `C:\ProgramData\Docker\CredentialSpecs\spec.json`.


> **Note**: `CredentialSpec.File`, `CredentialSpec.Registry`, > and `CredentialSpec.Config` are mutually exclusive. */ File?: string | undefined; /** Load credential spec from this value in the Windows registry. The specified registry value must be located in: `HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Virtualization\Containers\CredentialSpecs`


> **Note**: `CredentialSpec.File`, `CredentialSpec.Registry`, > and `CredentialSpec.Config` are mutually exclusive. */ Registry?: string | undefined; } /** SELinux labels of the container */ export interface TaskSpecContainerSpecPrivilegesSELinuxContext { /** Disable SELinux */ Disable?: boolean | undefined; /** SELinux user label */ User?: string | undefined; /** SELinux role label */ Role?: string | undefined; /** SELinux type label */ Type?: string | undefined; /** SELinux level label */ Level?: string | undefined; } export type TaskSpecContainerSpecPrivilegesSeccompMode = "default" | "unconfined" | "custom"; /** Options for configuring seccomp on the container */ export interface TaskSpecContainerSpecPrivilegesSeccomp { Mode?: TaskSpecContainerSpecPrivilegesSeccompMode | (string & {}) | undefined; /** The custom seccomp profile as a json object */ Profile?: string | undefined; } export type TaskSpecContainerSpecPrivilegesAppArmorMode = "default" | "disabled"; /** Options for configuring AppArmor on the container */ export interface TaskSpecContainerSpecPrivilegesAppArmor { Mode?: TaskSpecContainerSpecPrivilegesAppArmorMode | (string & {}) | undefined; } /** Security options for the container */ export interface TaskSpecContainerSpecPrivileges { /** CredentialSpec for managed service account (Windows only) */ CredentialSpec?: TaskSpecContainerSpecPrivilegesCredentialSpec | undefined; /** SELinux labels of the container */ SELinuxContext?: TaskSpecContainerSpecPrivilegesSELinuxContext | undefined; /** Options for configuring seccomp on the container */ Seccomp?: TaskSpecContainerSpecPrivilegesSeccomp | undefined; /** Options for configuring AppArmor on the container */ AppArmor?: TaskSpecContainerSpecPrivilegesAppArmor | undefined; /** Configuration of the no_new_privs bit in the container */ NoNewPrivileges?: boolean | undefined; } /** Specification for mounts to be added to containers created as part of the service. */ export type TaskSpecContainerSpecMountsList = Array; /** A list of hostname/IP mappings to add to the container's `hosts` file. The format of extra hosts is specified in the [hosts(5)](http://man7.org/linux/man-pages/man5/hosts.5.html) man page: IP_address canonical_hostname [aliases...] */ export type TaskSpecContainerSpecHostsList = Array; /** The IP addresses of the name servers. */ export type TaskSpecContainerSpecDNSConfigNameserversList = Array; /** A search list for host-name lookup. */ export type TaskSpecContainerSpecDNSConfigSearchList = Array; /** A list of internal resolver variables to be modified (e.g., `debug`, `ndots:3`, etc.). */ export type TaskSpecContainerSpecDNSConfigOptionsList = Array; /** Specification for DNS related configurations in resolver configuration file (`resolv.conf`). */ export interface TaskSpecContainerSpecDNSConfig { /** The IP addresses of the name servers. */ Nameservers?: TaskSpecContainerSpecDNSConfigNameserversList | undefined; /** A search list for host-name lookup. */ Search?: TaskSpecContainerSpecDNSConfigSearchList | undefined; /** A list of internal resolver variables to be modified (e.g., `debug`, `ndots:3`, etc.). */ Options?: TaskSpecContainerSpecDNSConfigOptionsList | undefined; } /** File represents a specific target that is backed by a file. */ export interface TaskSpecContainerSpecSecretsItemFile { /** Name represents the final filename in the filesystem. */ Name?: string | undefined; /** UID represents the file UID. */ UID?: string | undefined; /** GID represents the file GID. */ GID?: string | undefined; /** Mode represents the FileMode of the file. */ Mode?: number | undefined; } export interface TaskSpecContainerSpecSecretsItem { /** File represents a specific target that is backed by a file. */ File?: TaskSpecContainerSpecSecretsItemFile | undefined; /** SecretID represents the ID of the specific secret that we're referencing. */ SecretID?: string | undefined; /** SecretName is the name of the secret that this references, but this is just provided for lookup/display purposes. The secret in the reference will be identified by its ID. */ SecretName?: string | undefined; } /** Secrets contains references to zero or more secrets that will be exposed to the service. */ export type TaskSpecContainerSpecSecretsList = Array; /** File represents a specific target that is backed by a file.


> **Note**: `Configs.File` and `Configs.Runtime` are mutually exclusive */ export type TaskSpecContainerSpecConfigsItemFile = TaskSpecContainerSpecSecretsItemFile; export interface TaskSpecContainerSpecConfigsItem { /** File represents a specific target that is backed by a file.


> **Note**: `Configs.File` and `Configs.Runtime` are mutually exclusive */ File?: TaskSpecContainerSpecSecretsItemFile | undefined; /** Runtime represents a target that is not mounted into the container but is used by the task


> **Note**: `Configs.File` and `Configs.Runtime` are mutually > exclusive */ Runtime?: unknown | undefined; /** ConfigID represents the ID of the specific config that we're referencing. */ ConfigID?: string | undefined; /** ConfigName is the name of the config that this references, but this is just provided for lookup/display purposes. The config in the reference will be identified by its ID. */ ConfigName?: string | undefined; } /** Configs contains references to zero or more configs that will be exposed to the service. */ export type TaskSpecContainerSpecConfigsList = Array; /** Isolation technology of the containers running the service. (Windows only) */ export type TaskSpecContainerSpecIsolation = "default" | "process" | "hyperv" | ""; /** Set kernel namedspaced parameters (sysctls) in the container. The Sysctls option on services accepts the same sysctls as the are supported on containers. Note that while the same sysctls are supported, no guarantees or checks are made about their suitability for a clustered environment, and it's up to the user to determine whether a given sysctl will work properly in a Service. */ export type TaskSpecContainerSpecSysctlsMap = { [key: string]: string | undefined }; /** A list of kernel capabilities to add to the default set for the container. */ export type TaskSpecContainerSpecCapabilityAddList = Array; /** A list of kernel capabilities to drop from the default set for the container. */ export type TaskSpecContainerSpecCapabilityDropList = Array; export type TaskSpecContainerSpecUlimitsItem = HostConfigUlimitsItem; /** A list of resource limits to set in the container. For example: `{"Name": "nofile", "Soft": 1024, "Hard": 2048}`" */ export type TaskSpecContainerSpecUlimitsList = Array; /** Container spec for the service.


> **Note**: ContainerSpec, NetworkAttachmentSpec, and PluginSpec are > mutually exclusive. PluginSpec is only used when the Runtime field > is set to `plugin`. NetworkAttachmentSpec is used when the Runtime > field is set to `attachment`. */ export interface TaskSpecContainerSpec { /** The image name to use for the container */ Image?: string | undefined; /** User-defined key/value data. */ Labels?: TaskSpecContainerSpecLabelsMap | undefined; /** The command to be run in the image. */ Command?: TaskSpecContainerSpecCommandList | undefined; /** Arguments to the command. */ Args?: TaskSpecContainerSpecArgsList | undefined; /** The hostname to use for the container, as a valid [RFC 1123](https://tools.ietf.org/html/rfc1123) hostname. */ Hostname?: string | undefined; /** A list of environment variables in the form `VAR=value`. */ Env?: TaskSpecContainerSpecEnvList | undefined; /** The working directory for commands to run in. */ Dir?: string | undefined; /** The user inside the container. */ User?: string | undefined; /** A list of additional groups that the container process will run as. */ Groups?: TaskSpecContainerSpecGroupsList | undefined; /** Security options for the container */ Privileges?: TaskSpecContainerSpecPrivileges | undefined; /** Whether a pseudo-TTY should be allocated. */ TTY?: boolean | undefined; /** Open `stdin` */ OpenStdin?: boolean | undefined; /** Mount the container's root filesystem as read only. */ ReadOnly?: boolean | undefined; /** Specification for mounts to be added to containers created as part of the service. */ Mounts?: TaskSpecContainerSpecMountsList | undefined; /** Signal to stop the container. */ StopSignal?: string | undefined; /** Amount of time to wait for the container to terminate before forcefully killing it. */ StopGracePeriod?: number | undefined; Healthcheck?: HealthConfig | undefined; /** A list of hostname/IP mappings to add to the container's `hosts` file. The format of extra hosts is specified in the [hosts(5)](http://man7.org/linux/man-pages/man5/hosts.5.html) man page: IP_address canonical_hostname [aliases...] */ Hosts?: TaskSpecContainerSpecHostsList | undefined; /** Specification for DNS related configurations in resolver configuration file (`resolv.conf`). */ DNSConfig?: TaskSpecContainerSpecDNSConfig | undefined; /** Secrets contains references to zero or more secrets that will be exposed to the service. */ Secrets?: TaskSpecContainerSpecSecretsList | undefined; /** An integer value containing the score given to the container in order to tune OOM killer preferences. */ OomScoreAdj?: number | undefined; /** Configs contains references to zero or more configs that will be exposed to the service. */ Configs?: TaskSpecContainerSpecConfigsList | undefined; /** Isolation technology of the containers running the service. (Windows only) */ Isolation?: TaskSpecContainerSpecIsolation | (string & {}) | undefined; /** Run an init inside the container that forwards signals and reaps processes. This field is omitted if empty, and the default (as configured on the daemon) is used. */ Init?: boolean | null | undefined; /** Set kernel namedspaced parameters (sysctls) in the container. The Sysctls option on services accepts the same sysctls as the are supported on containers. Note that while the same sysctls are supported, no guarantees or checks are made about their suitability for a clustered environment, and it's up to the user to determine whether a given sysctl will work properly in a Service. */ Sysctls?: TaskSpecContainerSpecSysctlsMap | undefined; /** A list of kernel capabilities to add to the default set for the container. */ CapabilityAdd?: TaskSpecContainerSpecCapabilityAddList | undefined; /** A list of kernel capabilities to drop from the default set for the container. */ CapabilityDrop?: TaskSpecContainerSpecCapabilityDropList | undefined; /** A list of resource limits to set in the container. For example: `{"Name": "nofile", "Soft": 1024, "Hard": 2048}`" */ Ulimits?: TaskSpecContainerSpecUlimitsList | undefined; } /** Read-only spec type for non-swarm containers attached to swarm overlay networks.


> **Note**: ContainerSpec, NetworkAttachmentSpec, and PluginSpec are > mutually exclusive. PluginSpec is only used when the Runtime field > is set to `plugin`. NetworkAttachmentSpec is used when the Runtime > field is set to `attachment`. */ export interface TaskSpecNetworkAttachmentSpec { /** ID of the container represented by this task */ ContainerID?: string | undefined; } /** An object describing a limit on resources which can be requested by a task. */ export interface Limit { NanoCPUs?: number | undefined; MemoryBytes?: number | undefined; /** Limits the maximum number of PIDs in the container. Set `0` for unlimited. */ Pids?: number | undefined; } export interface GenericResourcesItemNamedResourceSpec { Kind?: string | undefined; Value?: string | undefined; } export interface GenericResourcesItemDiscreteResourceSpec { Kind?: string | undefined; Value?: number | undefined; } export interface GenericResourcesItem { NamedResourceSpec?: GenericResourcesItemNamedResourceSpec | undefined; DiscreteResourceSpec?: GenericResourcesItemDiscreteResourceSpec | undefined; } /** User-defined resources can be either Integer resources (e.g, `SSD=3`) or String resources (e.g, `GPU=UUID1`). */ export type GenericResources = Array; /** An object describing the resources which can be advertised by a node and requested by a task. */ export interface ResourceObject { NanoCPUs?: number | undefined; MemoryBytes?: number | undefined; GenericResources?: GenericResources | undefined; } /** Resource requirements which apply to each individual container created as part of the service. */ export interface TaskSpecResources { /** Define resources limits. */ Limits?: Limit | undefined; /** Define resources reservation. */ Reservations?: ResourceObject | undefined; /** Amount of swap in bytes - can only be used together with a memory limit. If not specified, the default behaviour is to grant a swap space twice as big as the memory limit. Set to -1 to enable unlimited swap. */ SwapBytes?: number | null | undefined; /** Tune the service's containers' memory swappiness (0 to 100). If not specified, defaults to the containers' OS' default, generally 60, or whatever value was predefined in the image. Set to -1 to unset a previously set value. */ MemorySwappiness?: number | null | undefined; } /** Condition for restart. */ export type TaskSpecRestartPolicyCondition = "none" | "on-failure" | "any"; /** Specification for the restart policy which applies to containers created as part of this service. */ export interface TaskSpecRestartPolicy { /** Condition for restart. */ Condition?: TaskSpecRestartPolicyCondition | (string & {}) | undefined; /** Delay between restart attempts. */ Delay?: number | undefined; /** Maximum attempts to restart a given container before giving up (default value is 0, which is ignored). */ MaxAttempts?: number | undefined; /** Windows is the time window used to evaluate the restart policy (default value is 0, which is unbounded). */ Window?: number | undefined; } /** An array of constraint expressions to limit the set of nodes where a task can be scheduled. Constraint expressions can either use a _match_ (`==`) or _exclude_ (`!=`) rule. Multiple constraints find nodes that satisfy every expression (AND match). Constraints can match node or Docker Engine labels as follows: node attribute | matches | example ---------------------|--------------------------------|----------------------------------------------- `node.id` | Node ID | `node.id==2ivku8v2gvtg4` `node.hostname` | Node hostname | `node.hostname!=node-2` `node.role` | Node role (`manager`/`worker`) | `node.role==manager` `node.platform.os` | Node operating system | `node.platform.os==windows` `node.platform.arch` | Node architecture | `node.platform.arch==x86_64` `node.labels` | User-defined node labels | `node.labels.security==high` `engine.labels` | Docker Engine's labels | `engine.labels.operatingsystem==ubuntu-24.04` `engine.labels` apply to Docker Engine labels like operating system, drivers, etc. Swarm administrators add `node.labels` for operational purposes by using the [`node update endpoint`](#operation/NodeUpdate). */ export type TaskSpecPlacementConstraintsList = Array; export interface TaskSpecPlacementPreferencesItemSpread { /** label descriptor, such as `engine.labels.az`. */ SpreadDescriptor?: string | undefined; } export interface TaskSpecPlacementPreferencesItem { Spread?: TaskSpecPlacementPreferencesItemSpread | undefined; } /** Preferences provide a way to make the scheduler aware of factors such as topology. They are provided in order from highest to lowest precedence. */ export type TaskSpecPlacementPreferencesList = Array; /** Platform represents the platform (Arch/OS). */ export interface Platform { /** Architecture represents the hardware architecture (for example, `x86_64`). */ Architecture?: string | undefined; /** OS represents the Operating System (for example, `linux` or `windows`). */ OS?: string | undefined; } /** Platforms stores all the platforms that the service's image can run on. This field is used in the platform filter for scheduling. If empty, then the platform filter is off, meaning there are no scheduling restrictions. */ export type TaskSpecPlacementPlatformsList = Array; export interface TaskSpecPlacement { /** An array of constraint expressions to limit the set of nodes where a task can be scheduled. Constraint expressions can either use a _match_ (`==`) or _exclude_ (`!=`) rule. Multiple constraints find nodes that satisfy every expression (AND match). Constraints can match node or Docker Engine labels as follows: node attribute | matches | example ---------------------|--------------------------------|----------------------------------------------- `node.id` | Node ID | `node.id==2ivku8v2gvtg4` `node.hostname` | Node hostname | `node.hostname!=node-2` `node.role` | Node role (`manager`/`worker`) | `node.role==manager` `node.platform.os` | Node operating system | `node.platform.os==windows` `node.platform.arch` | Node architecture | `node.platform.arch==x86_64` `node.labels` | User-defined node labels | `node.labels.security==high` `engine.labels` | Docker Engine's labels | `engine.labels.operatingsystem==ubuntu-24.04` `engine.labels` apply to Docker Engine labels like operating system, drivers, etc. Swarm administrators add `node.labels` for operational purposes by using the [`node update endpoint`](#operation/NodeUpdate). */ Constraints?: TaskSpecPlacementConstraintsList | undefined; /** Preferences provide a way to make the scheduler aware of factors such as topology. They are provided in order from highest to lowest precedence. */ Preferences?: TaskSpecPlacementPreferencesList | undefined; /** Maximum number of replicas for per node (default value is 0, which is unlimited) */ MaxReplicas?: number | undefined; /** Platforms stores all the platforms that the service's image can run on. This field is used in the platform filter for scheduling. If empty, then the platform filter is off, meaning there are no scheduling restrictions. */ Platforms?: TaskSpecPlacementPlatformsList | undefined; } /** Discoverable alternate names for the service on this network. */ export type NetworkAttachmentConfigAliasesList = Array; /** Driver attachment options for the network target. */ export type NetworkAttachmentConfigDriverOptsMap = { [key: string]: string | undefined }; /** Specifies how a service should be attached to a particular network. */ export interface NetworkAttachmentConfig { /** The target network for attachment. Must be a network name or ID. */ Target?: string | undefined; /** Discoverable alternate names for the service on this network. */ Aliases?: NetworkAttachmentConfigAliasesList | undefined; /** Driver attachment options for the network target. */ DriverOpts?: NetworkAttachmentConfigDriverOptsMap | undefined; } /** Specifies which networks the service should attach to. */ export type TaskSpecNetworksList = Array; export type TaskSpecLogDriverOptionsMap = { [key: string]: string | undefined }; /** Specifies the log driver to use for tasks created from this spec. If not present, the default one for the swarm will be used, finally falling back to the engine default if not specified. */ export interface TaskSpecLogDriver { Name?: string | undefined; Options?: TaskSpecLogDriverOptionsMap | undefined; } /** User modifiable task configuration. */ export interface TaskSpec { /** Plugin spec for the service. *(Experimental release only.)*


> **Note**: ContainerSpec, NetworkAttachmentSpec, and PluginSpec are > mutually exclusive. PluginSpec is only used when the Runtime field > is set to `plugin`. NetworkAttachmentSpec is used when the Runtime > field is set to `attachment`. */ PluginSpec?: TaskSpecPluginSpec | undefined; /** Container spec for the service.


> **Note**: ContainerSpec, NetworkAttachmentSpec, and PluginSpec are > mutually exclusive. PluginSpec is only used when the Runtime field > is set to `plugin`. NetworkAttachmentSpec is used when the Runtime > field is set to `attachment`. */ ContainerSpec?: TaskSpecContainerSpec | undefined; /** Read-only spec type for non-swarm containers attached to swarm overlay networks.


> **Note**: ContainerSpec, NetworkAttachmentSpec, and PluginSpec are > mutually exclusive. PluginSpec is only used when the Runtime field > is set to `plugin`. NetworkAttachmentSpec is used when the Runtime > field is set to `attachment`. */ NetworkAttachmentSpec?: TaskSpecNetworkAttachmentSpec | undefined; /** Resource requirements which apply to each individual container created as part of the service. */ Resources?: TaskSpecResources | undefined; /** Specification for the restart policy which applies to containers created as part of this service. */ RestartPolicy?: TaskSpecRestartPolicy | undefined; Placement?: TaskSpecPlacement | undefined; /** A counter that triggers an update even if no relevant parameters have been changed. */ ForceUpdate?: number | undefined; /** Runtime is the type of runtime specified for the task executor. */ Runtime?: string | undefined; /** Specifies which networks the service should attach to. */ Networks?: TaskSpecNetworksList | undefined; /** Specifies the log driver to use for tasks created from this spec. If not present, the default one for the swarm will be used, finally falling back to the engine default if not specified. */ LogDriver?: TaskSpecLogDriver | undefined; } export interface CreateServiceRequestModeReplicated { Replicas?: number | undefined; } /** The mode used for services with a finite number of tasks that run to a completed state. */ export interface CreateServiceRequestModeReplicatedJob { /** The maximum number of replicas to run simultaneously. */ MaxConcurrent?: number | undefined; /** The total number of replicas desired to reach the Completed state. If unset, will default to the value of `MaxConcurrent` */ TotalCompletions?: number | undefined; } /** Scheduling mode for the service. */ export interface CreateServiceRequestMode { Replicated?: CreateServiceRequestModeReplicated | undefined; Global?: unknown | undefined; /** The mode used for services with a finite number of tasks that run to a completed state. */ ReplicatedJob?: CreateServiceRequestModeReplicatedJob | undefined; /** The mode used for services which run a task to the completed state on each valid node. */ GlobalJob?: unknown | undefined; } /** Action to take if an updated task fails to run, or stops running during the update. */ export type CreateServiceRequestUpdateConfigFailureAction = "continue" | "pause" | "rollback"; /** The order of operations when rolling out an updated task. Either the old task is shut down before the new task is started, or the new task is started before the old task is shut down. */ export type CreateServiceRequestUpdateConfigOrder = "stop-first" | "start-first"; /** Specification for the update strategy of the service. */ export interface CreateServiceRequestUpdateConfig { /** Maximum number of tasks to be updated in one iteration (0 means unlimited parallelism). */ Parallelism?: number | undefined; /** Amount of time between updates, in nanoseconds. */ Delay?: number | undefined; /** Action to take if an updated task fails to run, or stops running during the update. */ FailureAction?: CreateServiceRequestUpdateConfigFailureAction | (string & {}) | undefined; /** Amount of time to monitor each updated task for failures, in nanoseconds. */ Monitor?: number | undefined; /** The fraction of tasks that may fail during an update before the failure action is invoked, specified as a floating point number between 0 and 1. */ MaxFailureRatio?: number | undefined; /** The order of operations when rolling out an updated task. Either the old task is shut down before the new task is started, or the new task is started before the old task is shut down. */ Order?: CreateServiceRequestUpdateConfigOrder | (string & {}) | undefined; } /** Action to take if an rolled back task fails to run, or stops running during the rollback. */ export type CreateServiceRequestRollbackConfigFailureAction = "continue" | "pause"; /** The order of operations when rolling back a task. Either the old task is shut down before the new task is started, or the new task is started before the old task is shut down. */ export type CreateServiceRequestRollbackConfigOrder = "stop-first" | "start-first"; /** Specification for the rollback strategy of the service. */ export interface CreateServiceRequestRollbackConfig { /** Maximum number of tasks to be rolled back in one iteration (0 means unlimited parallelism). */ Parallelism?: number | undefined; /** Amount of time between rollback iterations, in nanoseconds. */ Delay?: number | undefined; /** Action to take if an rolled back task fails to run, or stops running during the rollback. */ FailureAction?: CreateServiceRequestRollbackConfigFailureAction | (string & {}) | undefined; /** Amount of time to monitor each rolled back task for failures, in nanoseconds. */ Monitor?: number | undefined; /** The fraction of tasks that may fail during a rollback before the failure action is invoked, specified as a floating point number between 0 and 1. */ MaxFailureRatio?: number | undefined; /** The order of operations when rolling back a task. Either the old task is shut down before the new task is started, or the new task is started before the old task is shut down. */ Order?: CreateServiceRequestRollbackConfigOrder | (string & {}) | undefined; } /** Specifies which networks the service should attach to. Deprecated: This field is deprecated since v1.44. The Networks field in TaskSpec should be used instead. */ export type CreateServiceRequestNetworksList = Array; /** The mode of resolution to use for internal load balancing between tasks. */ export type EndpointSpecMode = "vip" | "dnsrr"; export type EndpointPortConfigProtocol = "tcp" | "udp" | "sctp"; /** The mode in which port is published.


- "ingress" makes the target port accessible on every node, regardless of whether there is a task for the service running on that node or not. - "host" bypasses the routing mesh and publish the port directly on the swarm node where that service is running. */ export type EndpointPortConfigPublishMode = "ingress" | "host"; export interface EndpointPortConfig { Name?: string | undefined; Protocol?: EndpointPortConfigProtocol | (string & {}) | undefined; /** The port inside the container. */ TargetPort?: number | undefined; /** The port on the swarm hosts. */ PublishedPort?: number | undefined; /** The mode in which port is published.


- "ingress" makes the target port accessible on every node, regardless of whether there is a task for the service running on that node or not. - "host" bypasses the routing mesh and publish the port directly on the swarm node where that service is running. */ PublishMode?: EndpointPortConfigPublishMode | (string & {}) | undefined; } /** List of exposed ports that this service is accessible on from the outside. Ports can only be provided if `vip` resolution mode is used. */ export type EndpointSpecPortsList = Array; /** Properties that can be configured to access and load balance a service. */ export interface EndpointSpec { /** The mode of resolution to use for internal load balancing between tasks. */ Mode?: EndpointSpecMode | (string & {}) | undefined; /** List of exposed ports that this service is accessible on from the outside. Ports can only be provided if `vip` resolution mode is used. */ Ports?: EndpointSpecPortsList | undefined; } export interface CreateServiceRequest { /** A base64url-encoded auth configuration for pulling from private registries. Refer to the [authentication section](#section/Authentication) for details. */ xRegistryAuth?: string | Redacted.Redacted | undefined; /** Name of the service. */ Name?: string | undefined; /** User-defined key/value metadata. */ Labels?: CreateServiceRequestLabelsMap | undefined; TaskTemplate?: TaskSpec | undefined; /** Scheduling mode for the service. */ Mode?: CreateServiceRequestMode | undefined; /** Specification for the update strategy of the service. */ UpdateConfig?: CreateServiceRequestUpdateConfig | undefined; /** Specification for the rollback strategy of the service. */ RollbackConfig?: CreateServiceRequestRollbackConfig | undefined; /** Specifies which networks the service should attach to. Deprecated: This field is deprecated since v1.44. The Networks field in TaskSpec should be used instead. */ Networks?: CreateServiceRequestNetworksList | undefined; EndpointSpec?: EndpointSpec | undefined; } /** Optional warning message. FIXME(thaJeztah): this should have "omitempty" in the generated type. */ export type ServiceCreateResponseWarningsList = Array; /** contains the information returned to a client on the creation of a new service. */ export interface ServiceCreateResponse { /** The ID of the created service. */ ID?: string | undefined; /** Optional warning message. FIXME(thaJeztah): this should have "omitempty" in the generated type. */ Warnings?: ServiceCreateResponseWarningsList | null | undefined; } /** A mapping of driver options and values. These options are passed directly to the driver and are driver specific. */ export type CreateVolumeRequestDriverOptsMap = { [key: string]: string | undefined }; /** User-defined key/value metadata. */ export type CreateVolumeRequestLabelsMap = { [key: string]: string | undefined }; /** The set of nodes this volume can be used on at one time. - `single` The volume may only be scheduled to one node at a time. - `multi` the volume may be scheduled to any supported number of nodes at a time. */ export type ClusterVolumeSpecAccessModeScope = "single" | "multi"; /** The number and way that different tasks can use this volume at one time. - `none` The volume may only be used by one task at a time. - `readonly` The volume may be used by any number of tasks, but they all must mount the volume as readonly - `onewriter` The volume may be used by any number of tasks, but only one may mount it as read/write. - `all` The volume may have any number of readers and writers. */ export type ClusterVolumeSpecAccessModeSharing = "none" | "readonly" | "onewriter" | "all"; /** One cluster volume secret entry. Defines a key-value pair that is passed to the plugin. */ export interface ClusterVolumeSpecAccessModeSecretsItem { /** Key is the name of the key of the key-value pair passed to the plugin. */ Key?: string | undefined; /** Secret is the swarm Secret object from which to read data. This can be a Secret name or ID. The Secret data is retrieved by swarm and used as the value of the key-value pair passed to the plugin. */ Secret?: string | Redacted.Redacted | undefined; } /** Swarm Secrets that are passed to the CSI storage plugin when operating on this volume. */ export type ClusterVolumeSpecAccessModeSecretsList = Array; export type TopologySegmentsMap = { [key: string]: string | undefined }; /** A map of topological domains to topological segments. For in depth details, see documentation for the Topology object in the CSI specification. */ export interface Topology { Segments?: TopologySegmentsMap | undefined; } /** A list of required topologies, at least one of which the volume must be accessible from. */ export type ClusterVolumeSpecAccessModeAccessibilityRequirementsRequisiteList = Array; /** A list of topologies that the volume should attempt to be provisioned in. */ export type ClusterVolumeSpecAccessModeAccessibilityRequirementsPreferredList = Array; /** Requirements for the accessible topology of the volume. These fields are optional. For an in-depth description of what these fields mean, see the CSI specification. */ export interface ClusterVolumeSpecAccessModeAccessibilityRequirements { /** A list of required topologies, at least one of which the volume must be accessible from. */ Requisite?: ClusterVolumeSpecAccessModeAccessibilityRequirementsRequisiteList | undefined; /** A list of topologies that the volume should attempt to be provisioned in. */ Preferred?: ClusterVolumeSpecAccessModeAccessibilityRequirementsPreferredList | undefined; } /** The desired capacity that the volume should be created with. If empty, the plugin will decide the capacity. */ export interface ClusterVolumeSpecAccessModeCapacityRange { /** The volume must be at least this big. The value of 0 indicates an unspecified minimum */ RequiredBytes?: number | undefined; /** The volume must not be bigger than this. The value of 0 indicates an unspecified maximum. */ LimitBytes?: number | undefined; } /** The availability of the volume for use in tasks. - `active` The volume is fully available for scheduling on the cluster - `pause` No new workloads should use the volume, but existing workloads are not stopped. - `drain` All workloads using this volume should be stopped and rescheduled, and no new ones should be started. */ export type ClusterVolumeSpecAccessModeAvailability = "active" | "pause" | "drain"; /** Defines how the volume is used by tasks. */ export interface ClusterVolumeSpecAccessMode { /** The set of nodes this volume can be used on at one time. - `single` The volume may only be scheduled to one node at a time. - `multi` the volume may be scheduled to any supported number of nodes at a time. */ Scope?: ClusterVolumeSpecAccessModeScope | (string & {}) | undefined; /** The number and way that different tasks can use this volume at one time. - `none` The volume may only be used by one task at a time. - `readonly` The volume may be used by any number of tasks, but they all must mount the volume as readonly - `onewriter` The volume may be used by any number of tasks, but only one may mount it as read/write. - `all` The volume may have any number of readers and writers. */ Sharing?: ClusterVolumeSpecAccessModeSharing | (string & {}) | undefined; /** Options for using this volume as a Mount-type volume. Either MountVolume or BlockVolume, but not both, must be present. properties: FsType: type: "string" description: | Specifies the filesystem type for the mount volume. Optional. MountFlags: type: "array" description: | Flags to pass when mounting the volume. Optional. items: type: "string" BlockVolume: type: "object" description: | Options for using this volume as a Block-type volume. Intentionally empty. */ MountVolume?: unknown | undefined; /** Swarm Secrets that are passed to the CSI storage plugin when operating on this volume. */ Secrets?: ClusterVolumeSpecAccessModeSecretsList | undefined; /** Requirements for the accessible topology of the volume. These fields are optional. For an in-depth description of what these fields mean, see the CSI specification. */ AccessibilityRequirements?: ClusterVolumeSpecAccessModeAccessibilityRequirements | undefined; /** The desired capacity that the volume should be created with. If empty, the plugin will decide the capacity. */ CapacityRange?: ClusterVolumeSpecAccessModeCapacityRange | undefined; /** The availability of the volume for use in tasks. - `active` The volume is fully available for scheduling on the cluster - `pause` No new workloads should use the volume, but existing workloads are not stopped. - `drain` All workloads using this volume should be stopped and rescheduled, and no new ones should be started. */ Availability?: ClusterVolumeSpecAccessModeAvailability | (string & {}) | undefined; } /** Cluster-specific options used to create the volume. */ export interface ClusterVolumeSpec { /** Group defines the volume group of this volume. Volumes belonging to the same group can be referred to by group name when creating Services. Referring to a volume by group instructs Swarm to treat volumes in that group interchangeably for the purpose of scheduling. Volumes with an empty string for a group technically all belong to the same, emptystring group. */ Group?: string | undefined; /** Defines how the volume is used by tasks. */ AccessMode?: ClusterVolumeSpecAccessMode | undefined; } export interface CreateVolumeRequest { /** The new volume's name. If not specified, Docker generates a name. */ Name?: string | undefined; /** Name of the volume driver to use. */ Driver?: string | undefined; /** A mapping of driver options and values. These options are passed directly to the driver and are driver specific. */ DriverOpts?: CreateVolumeRequestDriverOptsMap | undefined; /** User-defined key/value metadata. */ Labels?: CreateVolumeRequestLabelsMap | undefined; ClusterVolumeSpec?: ClusterVolumeSpec | undefined; } /** Low-level details about the volume, provided by the volume driver. Details are returned as a map with key/value pairs: `{"key":"value","key2":"value2"}`. The `Status` field is optional, and is omitted if the volume driver does not support this feature. */ export type VolumeStatusMap = { [key: string]: unknown | undefined }; /** User-defined key/value metadata. */ export type VolumeLabelsMap = { [key: string]: string | undefined }; /** The level at which the volume exists. Either `global` for cluster-wide, or `local` for machine level. */ export type VolumeScope = "local" | "global"; /** A map of strings to strings returned from the storage plugin when the volume is created. */ export type ClusterVolumeInfoVolumeContextMap = { [key: string]: string | undefined }; /** The topology this volume is actually accessible from. */ export type ClusterVolumeInfoAccessibleTopologyList = Array; /** Information about the global status of the volume. */ export interface ClusterVolumeInfo { /** The capacity of the volume in bytes. A value of 0 indicates that the capacity is unknown. */ CapacityBytes?: number | undefined; /** A map of strings to strings returned from the storage plugin when the volume is created. */ VolumeContext?: ClusterVolumeInfoVolumeContextMap | undefined; /** The ID of the volume as returned by the CSI storage plugin. This is distinct from the volume's ID as provided by Docker. This ID is never used by the user when communicating with Docker to refer to this volume. If the ID is blank, then the Volume has not been successfully created in the plugin yet. */ VolumeID?: string | undefined; /** The topology this volume is actually accessible from. */ AccessibleTopology?: ClusterVolumeInfoAccessibleTopologyList | undefined; } /** The published state of the volume. * `pending-publish` The volume should be published to this node, but the call to the controller plugin to do so has not yet been successfully completed. * `published` The volume is published successfully to the node. * `pending-node-unpublish` The volume should be unpublished from the node, and the manager is awaiting confirmation from the worker that it has done so. * `pending-controller-unpublish` The volume is successfully unpublished from the node, but has not yet been successfully unpublished on the controller. */ export type ClusterVolumePublishStatusItemState = | "pending-publish" | "published" | "pending-node-unpublish" | "pending-controller-unpublish"; /** A map of strings to strings returned by the CSI controller plugin when a volume is published. */ export type ClusterVolumePublishStatusItemPublishContextMap = { [key: string]: string | undefined }; export interface ClusterVolumePublishStatusItem { /** The ID of the Swarm node the volume is published on. */ NodeID?: string | undefined; /** The published state of the volume. * `pending-publish` The volume should be published to this node, but the call to the controller plugin to do so has not yet been successfully completed. * `published` The volume is published successfully to the node. * `pending-node-unpublish` The volume should be unpublished from the node, and the manager is awaiting confirmation from the worker that it has done so. * `pending-controller-unpublish` The volume is successfully unpublished from the node, but has not yet been successfully unpublished on the controller. */ State?: ClusterVolumePublishStatusItemState | undefined; /** A map of strings to strings returned by the CSI controller plugin when a volume is published. */ PublishContext?: ClusterVolumePublishStatusItemPublishContextMap | undefined; } /** The status of the volume as it pertains to its publishing and use on specific nodes */ export type ClusterVolumePublishStatusList = Array; /** Options and information specific to, and only present on, Swarm CSI cluster volumes. */ export interface ClusterVolume { /** The Swarm ID of this volume. Because cluster volumes are Swarm objects, they have an ID, unlike non-cluster volumes. This ID can be used to refer to the Volume instead of the name. */ ID?: string | undefined; Version?: ObjectVersion | undefined; CreatedAt?: string | undefined; UpdatedAt?: string | undefined; Spec?: ClusterVolumeSpec | undefined; /** Information about the global status of the volume. */ Info?: ClusterVolumeInfo | undefined; /** The status of the volume as it pertains to its publishing and use on specific nodes */ PublishStatus?: ClusterVolumePublishStatusList | undefined; } /** The driver specific options used when creating the volume. */ export type VolumeOptionsMap = { [key: string]: string | undefined }; /** Usage details about the volume. This information is used by the `GET /system/df` endpoint, and omitted in other endpoints. */ export interface VolumeUsageData { /** Amount of disk space used by the volume (in bytes). This information is only available for volumes created with the `"local"` volume driver. For volumes created with other volume drivers, this field is set to `-1` ("not available") */ Size: number; /** The number of containers referencing this volume. This field is set to `-1` if the reference-count is not available. */ RefCount: number; } export interface Volume { /** Name of the volume. */ Name: string; /** Name of the volume driver used by the volume. */ Driver: string; /** Mount path of the volume on the host. */ Mountpoint: string; /** Date/Time the volume was created. */ CreatedAt?: string | undefined; /** Low-level details about the volume, provided by the volume driver. Details are returned as a map with key/value pairs: `{"key":"value","key2":"value2"}`. The `Status` field is optional, and is omitted if the volume driver does not support this feature. */ Status?: VolumeStatusMap | undefined; /** User-defined key/value metadata. */ Labels: VolumeLabelsMap; /** The level at which the volume exists. Either `global` for cluster-wide, or `local` for machine level. */ Scope: VolumeScope; ClusterVolume?: ClusterVolume | undefined; /** The driver specific options used when creating the volume. */ Options: VolumeOptionsMap; /** Usage details about the volume. This information is used by the `GET /system/df` endpoint, and omitted in other endpoints. */ UsageData?: VolumeUsageData | null | undefined; } export interface DeleteConfigRequest { /** ID of the config */ id: string; } export interface DeleteConfigResponse {} export interface DeleteContainerRequest { /** ID or name of the container */ id: string; /** Remove anonymous volumes associated with the container. */ v?: boolean | undefined; /** If the container is running, kill it before removing it. */ force?: boolean | undefined; /** Remove the specified link associated with the container. */ link?: boolean | undefined; } export interface DeleteContainerResponse {} export type DeleteImageRequestPlatformsList = Array; export interface DeleteImageRequest { /** Image name or ID */ name: string; /** Remove the image even if it is being used by stopped containers or has other tags */ force?: boolean | undefined; /** Do not delete untagged parent images */ noprune?: boolean | undefined; /** Select platform-specific content to delete. Repeat the parameter to select multiple platforms. Each platform is a OCI platform encoded as a JSON string. */ platforms?: DeleteImageRequestPlatformsList | undefined; } export interface ImageDeleteResponseItem { /** The image ID of an image that was untagged */ Untagged?: string | undefined; /** The image ID of an image that was deleted */ Deleted?: string | undefined; } export type DeleteImageResponseBodyList = Array; export type DeleteImageResponse = DeleteImageResponseBodyList; export interface DeleteNetworkRequest { /** Network ID or name */ id: string; } export interface DeleteNetworkResponse {} export interface DeleteNodeRequest { /** The ID or name of the node */ id: string; /** Force remove a node from the swarm */ force?: boolean | undefined; } export interface DeleteNodeResponse {} export interface DeletePluginRequest { /** The name of the plugin. The `:latest` tag is optional, and is the default if omitted. */ name: string; /** Disable the plugin before removing. This may result in issues if the plugin is in use by a container. */ force?: boolean | undefined; } export type PluginMountSettableList = Array; export type PluginMountOptionsList = Array; export interface PluginMount { Name: string; Description: string; Settable: PluginMountSettableList; Source: string; Destination: string; Type: string; Options: PluginMountOptionsList; } export type PluginSettingsMountsList = Array; export type PluginSettingsEnvList = Array; export type PluginSettingsArgsList = Array; export type PluginDeviceSettableList = Array; export interface PluginDevice { Name: string; Description: string; Settable: PluginDeviceSettableList; Path: string; } export type PluginSettingsDevicesList = Array; /** user-configurable settings for the plugin. */ export interface PluginSettings { Mounts: PluginSettingsMountsList; Env: PluginSettingsEnvList; Args: PluginSettingsArgsList; Devices: PluginSettingsDevicesList; } export type PluginConfigInterfaceTypesList = Array; /** Protocol to use for clients connecting to the plugin. */ export type PluginConfigInterfaceProtocolScheme = "" | "moby.plugins.http/v1"; /** The interface between Docker and the plugin */ export interface PluginConfigInterface { Types: PluginConfigInterfaceTypesList; Socket: string; /** Protocol to use for clients connecting to the plugin. */ ProtocolScheme?: PluginConfigInterfaceProtocolScheme | undefined; } export type PluginConfigEntrypointList = Array; export interface PluginConfigUser { UID?: number | undefined; GID?: number | undefined; } export interface PluginConfigNetwork { Type: string; } export type PluginConfigLinuxCapabilitiesList = Array; export type PluginConfigLinuxDevicesList = Array; export interface PluginConfigLinux { Capabilities: PluginConfigLinuxCapabilitiesList; AllowAllDevices: boolean; Devices: PluginConfigLinuxDevicesList; } export type PluginConfigMountsList = Array; export type PluginEnvSettableList = Array; export interface PluginEnv { Name: string; Description: string; Settable: PluginEnvSettableList; Value: string; } export type PluginConfigEnvList = Array; export type PluginConfigArgsSettableList = Array; export type PluginConfigArgsValueList = Array; export interface PluginConfigArgs { Name: string; Description: string; Settable: PluginConfigArgsSettableList; Value: PluginConfigArgsValueList; } export type PluginConfigRootfsDiffIdsList = Array; export interface PluginConfigRootfs { type?: string | undefined; diff_ids?: PluginConfigRootfsDiffIdsList | undefined; } /** The config of a plugin. */ export interface PluginConfig { Description: string; Documentation: string; /** The interface between Docker and the plugin */ Interface: PluginConfigInterface; Entrypoint: PluginConfigEntrypointList; WorkDir: string; User?: PluginConfigUser | undefined; Network: PluginConfigNetwork; Linux: PluginConfigLinux; PropagatedMount: string; IpcHost: boolean; PidHost: boolean; Mounts: PluginConfigMountsList; Env: PluginConfigEnvList; Args: PluginConfigArgs; rootfs?: PluginConfigRootfs | undefined; } /** A plugin for the Engine API */ export interface Plugin { Id?: string | undefined; Name: string; /** True if the plugin is running. False if the plugin is not running, only installed. */ Enabled: boolean; /** user-configurable settings for the plugin. */ Settings: PluginSettings; /** plugin remote reference used to push/pull the plugin */ PluginReference?: string | undefined; /** The config of a plugin. */ Config: PluginConfig; } export interface DeleteSecretRequest { /** ID of the secret */ id: string; } export interface DeleteSecretResponse {} export interface DeleteServiceRequest { /** ID or name of service. */ id: string; } export interface DeleteServiceResponse {} export interface DeleteVolumeRequest { /** Volume name or ID */ name: string; /** Force the removal of the volume */ force?: boolean | undefined; } export interface DeleteVolumeResponse {} export interface DisablePluginRequest { /** The name of the plugin. The `:latest` tag is optional, and is the default if omitted. */ name: string; /** Force disable a plugin even if still in use. */ force?: boolean | undefined; } export interface DisablePluginResponse {} export interface DisconnectNetworkRequest { /** Network ID or name */ id: string; /** The ID or name of the container to disconnect from the network. */ Container: string; /** Force the container to disconnect from the network. */ Force?: boolean | undefined; } export interface DisconnectNetworkResponse {} export interface DistributionInspectRequest { /** Image name or id */ name: string; } /** An array containing all platforms supported by the image. */ export type DistributionInspectPlatformsList = Array; /** Describes the result obtained from contacting the registry to retrieve image metadata. */ export interface DistributionInspect { Descriptor: OCIDescriptor; /** An array containing all platforms supported by the image. */ Platforms: DistributionInspectPlatformsList; } export interface EnablePluginRequest { /** The name of the plugin. The `:latest` tag is optional, and is the default if omitted. */ name: string; /** Set the HTTP client timeout (in seconds) */ timeout?: number | undefined; } export interface EnablePluginResponse {} /** Initial console size, as an `[height, width]` array. */ export type ExecContainerRequestConsoleSizeList = Array; /** A list of environment variables in the form `["VAR=value", ...]`. */ export type ExecContainerRequestEnvList = Array; /** Command to run, as a string or array of strings. */ export type ExecContainerRequestCmdList = Array; export interface ExecContainerRequest { /** ID or name of container */ id: string; /** Attach to `stdin` of the exec command. */ AttachStdin?: boolean | undefined; /** Attach to `stdout` of the exec command. */ AttachStdout?: boolean | undefined; /** Attach to `stderr` of the exec command. */ AttachStderr?: boolean | undefined; /** Initial console size, as an `[height, width]` array. */ ConsoleSize?: ExecContainerRequestConsoleSizeList | null | undefined; /** Override the key sequence for detaching a container. Format is a single character `[a-Z]` or `ctrl-` where `` is one of: `a-z`, `@`, `^`, `[`, `,` or `_`. */ DetachKeys?: string | undefined; /** Allocate a pseudo-TTY. */ Tty?: boolean | undefined; /** A list of environment variables in the form `["VAR=value", ...]`. */ Env?: ExecContainerRequestEnvList | undefined; /** Command to run, as a string or array of strings. */ Cmd?: ExecContainerRequestCmdList | undefined; /** Runs the exec process with extended privileges. */ Privileged?: boolean | undefined; /** The user, and optionally, group to run the exec process inside the container. Format is one of: `user`, `user:group`, `uid`, or `uid:gid`. */ User?: string | undefined; /** The working directory for the exec process inside the container. */ WorkingDir?: string | undefined; } export interface ExecInspectRequest { /** Exec instance ID */ id: string; } export type ProcessConfigArgumentsList = Array; export interface ProcessConfig { privileged?: boolean | undefined; user?: string | undefined; tty?: boolean | undefined; entrypoint?: string | undefined; arguments?: ProcessConfigArgumentsList | undefined; } export interface ExecInspectResponse { CanRemove?: boolean | undefined; DetachKeys?: string | undefined; ID?: string | undefined; Running?: boolean | undefined; ExitCode?: number | undefined; ProcessConfig?: ProcessConfig | undefined; OpenStdin?: boolean | undefined; OpenStderr?: boolean | undefined; OpenStdout?: boolean | undefined; ContainerID?: string | undefined; /** The system process ID for the exec process. */ Pid?: number | undefined; } export interface ExecResizeRequest { /** Exec instance ID */ id: string; /** Height of the TTY session in characters */ h: number; /** Width of the TTY session in characters */ w: number; } export interface ExecResizeResponse {} /** Initial console size, as an `[height, width]` array. */ export type ExecStartRequestConsoleSizeList = Array; export interface ExecStartRequest { /** Exec instance ID */ id: string; /** Detach from the command. */ Detach?: boolean | undefined; /** Allocate a pseudo-TTY. */ Tty?: boolean | undefined; /** Initial console size, as an `[height, width]` array. */ ConsoleSize?: ExecStartRequestConsoleSizeList | null | undefined; } export interface ExecStartResponse {} export interface ExportContainerRequest { /** ID or name of the container */ id: string; } export interface ExportContainerResponse {} export type GetImageRequestPlatformList = Array; export interface GetImageRequest { /** Image name or ID */ name: string; /** JSON encoded OCI platform describing a platform which will be used to select a platform-specific image to be saved if the image is multi-platform. If not provided, the full multi-platform image will be saved. Example: `{"os": "linux", "architecture": "arm", "variant": "v5"}` */ platform?: GetImageRequestPlatformList | undefined; } export type GetImageResponse = string; export interface GetPluginPrivilegesRequest { /** The name of the plugin. The `:latest` tag is optional, and is the default if omitted. */ remote: string; } export type GetPluginPrivilegesResponseBodyList = Array; export type GetPluginPrivilegesResponse = GetPluginPrivilegesResponseBodyList; export type ImageAttestationsRequestPlatformList = Array; export type ImageAttestationsRequestTypeList = Array; export interface ImageAttestationsRequest { /** Image name or id */ name: string; /** JSON-encoded OCI platform to select the image variant whose attestations to return. If omitted, the daemon's default (host) platform is used. Only one platform value is currently accepted; passing more than one returns an error. The parameter is declared as an array so the wire shape can accept multiple values in the future without an API version bump. Example: `{"os": "linux", "architecture": "amd64"}` */ platform?: ImageAttestationsRequestPlatformList | undefined; /** In-toto predicate type URI to filter returned statements. May be repeated to accept any of several predicate types. If omitted, all statements are returned. Example: `type=https://slsa.dev/provenance/v0.2&type=https://spdx.dev/Document` */ type?: ImageAttestationsRequestTypeList | undefined; /** Include the verbatim in-toto statement body in each returned entry. Defaults to false; when omitted or false, only the descriptor and predicate type are returned and statement blobs are not read. */ statement?: boolean | undefined; } /** AttestationStatement is a single in-toto statement attached to an image. */ export interface AttestationStatement { Descriptor: OCIDescriptor; /** The in-toto predicate type URI of this statement. */ PredicateType: string; /** The verbatim in-toto statement JSON. Only included when the caller opts in via the `statement=true` query parameter; otherwise absent. */ Statement?: unknown | null | undefined; } export type ImageAttestationsResponseBodyList = Array; export type ImageAttestationsResponse = ImageAttestationsResponseBodyList; export type ImageBuildRequestVersion = "1" | "2"; export interface ImageBuildRequest { /** Path within the build context to the `Dockerfile`. This is ignored if `remote` is specified and points to an external `Dockerfile`. */ dockerfile?: string | undefined; /** A name and optional tag to apply to the image in the `name:tag` format. If you omit the tag the default `latest` value is assumed. You can provide several `t` parameters. */ t?: string | undefined; /** Extra hosts to add to /etc/hosts */ extrahosts?: string | undefined; /** A Git repository URI or HTTP/HTTPS context URI. If the URI points to a single text file, the file's contents are placed into a file called `Dockerfile` and the image is built from that file. If the URI points to a tarball, the file is downloaded by the daemon and the contents therein used as the context for the build. If the URI points to a tarball and the `dockerfile` parameter is also specified, there must be a file with the corresponding path inside the tarball. */ remote?: string | undefined; /** Suppress verbose build output. */ q?: boolean | undefined; /** Do not use the cache when building the image. */ nocache?: boolean | undefined; /** JSON array of images used for build cache resolution. */ cachefrom?: string | undefined; /** Attempt to pull the image even if an older image exists locally. */ pull?: string | undefined; /** Remove intermediate containers after a successful build. */ rm?: boolean | undefined; /** Always remove intermediate containers, even upon failure. */ forcerm?: boolean | undefined; /** Set memory limit for build. */ memory?: number | undefined; /** Total memory (memory + swap). Set as `-1` to disable swap. */ memswap?: number | undefined; /** CPU shares (relative weight). */ cpushares?: number | undefined; /** CPUs in which to allow execution (e.g., `0-3`, `0,1`). */ cpusetcpus?: string | undefined; /** The length of a CPU period in microseconds. */ cpuperiod?: number | undefined; /** Microseconds of CPU time that the container can get in a CPU period. */ cpuquota?: number | undefined; /** JSON map of string pairs for build-time variables. Users pass these values at build-time. Docker uses the buildargs as the environment context for commands run via the `Dockerfile` RUN instruction, or for variable expansion in other `Dockerfile` instructions. This is not meant for passing secret values. For example, the build arg `FOO=bar` would become `{"FOO":"bar"}` in JSON. This would result in the query parameter `buildargs={"FOO":"bar"}`. Note that `{"FOO":"bar"}` should be URI component encoded. [Read more about the buildargs instruction.](https://docs.docker.com/engine/reference/builder/#arg) */ buildargs?: string | undefined; /** Size of `/dev/shm` in bytes. The size must be greater than 0. If omitted the system uses 64MB. */ shmsize?: number | undefined; /** Squash the resulting images layers into a single layer. *(Experimental release only.)* */ squash?: boolean | undefined; /** Arbitrary key/value labels to set on the image, as a JSON map of string pairs. */ labels?: string | undefined; /** Sets the networking mode for the run commands during build. Supported standard values are: `bridge`, `host`, `none`, and `container:`. Any other value is taken as a custom network's name or ID to which this container should connect to. */ networkmode?: string | undefined; /** Platform in the format os[/arch[/variant]] */ platform?: string | undefined; /** Target build stage */ target?: string | undefined; /** BuildKit output configuration in the format of a stringified JSON array of objects. Each object must have two top-level properties: `Type` and `Attrs`. The `Type` property must be set to 'moby'. The `Attrs` property is a map of attributes for the BuildKit output configuration. See https://docs.docker.com/build/exporters/oci-docker/ for more information. Example: ``` [{"Type":"moby","Attrs":{"type":"image","force-compression":"true","compression":"zstd"}}] ``` */ outputs?: string | undefined; /** Version of the builder backend to use. - `1` is the first generation classic (deprecated) builder in the Docker daemon (default) - `2` is [BuildKit](https://github.com/moby/buildkit) */ version?: ImageBuildRequestVersion | (string & {}) | undefined; /** This is a base64-encoded JSON object with auth configurations for multiple registries that a build may refer to. The key is a registry URL, and the value is an auth configuration object, [as described in the authentication section](#section/Authentication). For example: ``` { "docker.example.com": { "username": "janedoe", "password": "hunter2" }, "https://index.docker.io/v1/": { "username": "mobydock", "password": "conta1n3rize14" } } ``` Only the registry domain name (and port if not the default 443) are required. However, for legacy reasons, the Docker Hub registry must be specified with both a `https://` prefix and a `/v1/` suffix even though Docker will prefer to use the v2 registry API. */ xRegistryConfig?: string | undefined; body?: string | undefined; } export interface ImageBuildResponse {} export type ImageGetAllRequestNamesList = Array; export type ImageGetAllRequestPlatformList = Array; export interface ImageGetAllRequest { /** Image names to filter by. Repeat the parameter for multiple images. */ names?: ImageGetAllRequestNamesList | undefined; /** JSON encoded OCI platform(s) which will be used to select the platform-specific image(s) to be saved if the image is multi-platform. If not provided, the full multi-platform image will be saved. Example: `{"os": "linux", "architecture": "arm", "variant": "v5"}` */ platform?: ImageGetAllRequestPlatformList | undefined; } export type ImageGetAllResponse = string; export interface ImageHistoryRequest { /** Image name or ID */ name: string; /** JSON-encoded OCI platform to select the platform-variant. If omitted, it defaults to any locally available platform, prioritizing the daemon's host platform. If the daemon provides a multi-platform image store, this selects the platform-variant to show the history for. If the image is a single-platform image, or if the multi-platform image does not provide a variant matching the given platform, an error is returned. Example: `{"os": "linux", "architecture": "arm", "variant": "v5"}` */ platform?: string | undefined; } export type ImageHistoryResponseItemTagsList = Array; /** individual image layer information in response to ImageHistory operation */ export interface ImageHistoryResponseItem { Id: string; Created: number; CreatedBy: string; Tags: ImageHistoryResponseItemTagsList; Size: number; Comment: string; } export type ImageHistoryResponseBodyList = Array; export type ImageHistoryResponse = ImageHistoryResponseBodyList; export interface ImageInspectRequest { /** Image name or id */ name: string; /** Include Manifests in the image summary. The `manifests` and `platform` options are mutually exclusive, and an error is produced if both are set. */ manifests?: boolean | undefined; /** JSON-encoded OCI platform to select the platform-variant. If omitted, it defaults to any locally available platform, prioritizing the daemon's host platform. If the daemon provides a multi-platform image store, this selects the platform-variant to show inspect. If the image is a single-platform image, or if the multi-platform image does not provide a variant matching the given platform, an error is returned. The `platform` and `manifests` options are mutually exclusive, and an error is produced if both are set. Example: `{"os": "linux", "architecture": "arm", "variant": "v5"}` */ platform?: string | undefined; } export interface ImageManifestSummarySize { /** Total is the total size (in bytes) of all the locally present data (both distributable and non-distributable) that's related to this manifest and its children. This equal to the sum of [Content] size AND all the sizes in the [Size] struct present in the Kind-specific data struct. For example, for an image kind (Kind == "image") this would include the size of the image content and unpacked image snapshots ([Size.Content] + [ImageData.Size.Unpacked]). */ Total: number; /** Content is the size (in bytes) of all the locally present content in the content store (e.g. image config, layers) referenced by this manifest and its children. This only includes blobs in the content store. */ Content: number; } /** The kind of the manifest. kind | description -------------|----------------------------------------------------------- image | Image manifest that can be used to start a container. attestation | Attestation manifest produced by the Buildkit builder for a specific image manifest. */ export type ImageManifestSummaryKind = "image" | "attestation" | "unknown"; /** SignatureTimestampType is the type of timestamp used in the signature. */ export type SignatureTimestampType = "Tlog" | "TimestampAuthority"; /** SignatureTimestamp contains information about a verified signed timestamp for an image signature. */ export interface SignatureTimestamp { Type?: SignatureTimestampType | undefined; URI?: string | undefined; Timestamp?: string | undefined; } /** Timestamps contains a list of verified signed timestamps for the signature. */ export type SignatureIdentityTimestampsList = Array; /** KnownSignerIdentity is an identifier for a special signer identity that is known to the implementation. */ export type KnownSignerIdentity = "DHI"; /** SignerIdentity contains information about the signer certificate used to sign the image. */ export interface SignerIdentity { /** CertificateIssuer is the certificate issuer. */ CertificateIssuer?: string | undefined; /** SubjectAlternativeName is the certificate subject alternative name. */ SubjectAlternativeName?: string | undefined; /** The OIDC issuer. Should match `iss` claim of ID token or, in the case of a federated login like Dex it should match the issuer URL of the upstream issuer. The issuer is not set the extensions are invalid and will fail to render. */ Issuer?: string | undefined; /** Reference to specific build instructions that are responsible for signing. */ BuildSignerURI?: string | undefined; /** Immutable reference to the specific version of the build instructions that is responsible for signing. */ BuildSignerDigest?: string | undefined; /** Specifies whether the build took place in platform-hosted cloud infrastructure or customer/self-hosted infrastructure. */ RunnerEnvironment?: string | undefined; /** Source repository URL that the build was based on. */ SourceRepositoryURI?: string | undefined; /** Immutable reference to a specific version of the source code that the build was based upon. */ SourceRepositoryDigest?: string | undefined; /** Source Repository Ref that the build run was based upon. */ SourceRepositoryRef?: string | undefined; /** Immutable identifier for the source repository the workflow was based upon. */ SourceRepositoryIdentifier?: string | undefined; /** Source repository owner URL of the owner of the source repository that the build was based on. */ SourceRepositoryOwnerURI?: string | undefined; /** Immutable identifier for the owner of the source repository that the workflow was based upon. */ SourceRepositoryOwnerIdentifier?: string | undefined; /** Build Config URL to the top-level/initiating build instructions. */ BuildConfigURI?: string | undefined; /** Immutable reference to the specific version of the top-level/initiating build instructions. */ BuildConfigDigest?: string | undefined; /** Event or action that initiated the build. */ BuildTrigger?: string | undefined; /** Run Invocation URL to uniquely identify the build execution. */ RunInvocationURI?: string | undefined; /** Source repository visibility at the time of signing the certificate. */ SourceRepositoryVisibilityAtSigning?: string | undefined; } /** SignatureType is the type of signature format. */ export type SignatureType = "bundle-v0.3" | "simplesigning-v1"; /** Warnings contains any warnings that occurred during signature verification. For example, if there was no internet connectivity and cached trust roots were used. Warning does not indicate a failed verification but may point to configuration issues. */ export type SignatureIdentityWarningsList = Array; /** SignatureIdentity contains the properties of verified signatures for the image. */ export interface SignatureIdentity { /** Name is a textual description summarizing the type of signature. */ Name?: string | undefined; /** Timestamps contains a list of verified signed timestamps for the signature. */ Timestamps?: SignatureIdentityTimestampsList | undefined; /** KnownSigner is an identifier for a special signer identity that is known to the implementation. */ KnownSigner?: KnownSignerIdentity | undefined; /** DockerReference is the Docker image reference associated with the signature. This is an optional field only present in older hashedrecord signatures. */ DockerReference?: string | undefined; /** Signer contains information about the signer certificate used to sign the image. */ Signer?: SignerIdentity | undefined; /** SignatureType is the type of signature format. E.g. "bundle-v0.3" or "hashedrecord". */ SignatureType?: SignatureType | undefined; /** Error contains error information if signature verification failed. Other fields will be empty in this case. */ Error?: string | undefined; /** Warnings contains any warnings that occurred during signature verification. For example, if there was no internet connectivity and cached trust roots were used. Warning does not indicate a failed verification but may point to configuration issues. */ Warnings?: SignatureIdentityWarningsList | undefined; } /** Signature contains the properties of verified signatures for the image. */ export type IdentitySignatureList = Array; /** PullIdentity contains remote location information if image was created via pull. If image was pulled via mirror, this contains the original repository location. */ export interface PullIdentity { /** Repository is the remote repository location the image was pulled from. */ Repository?: string | undefined; } /** Pull contains remote location information if image was created via pull. If image was pulled via mirror, this contains the original repository location. After successful push this images also contains the pushed repository location. */ export type IdentityPullList = Array; /** BuildIdentity contains build reference information if image was created via build. */ export interface BuildIdentity { /** Ref is the identifier for the build request. This reference can be used to look up the build details in BuildKit history API. */ Ref?: string | undefined; /** CreatedAt is the time when the build ran. */ CreatedAt?: string | undefined; } /** Build contains build reference information if image was created via build. */ export type IdentityBuildList = Array; /** Identity holds information about the identity and origin of the image. This is trusted information verified by the daemon and cannot be modified by tagging an image to a different name. */ export interface Identity { /** Signature contains the properties of verified signatures for the image. */ Signature?: IdentitySignatureList | undefined; /** Pull contains remote location information if image was created via pull. If image was pulled via mirror, this contains the original repository location. After successful push this images also contains the pushed repository location. */ Pull?: IdentityPullList | undefined; /** Build contains build reference information if image was created via build. */ Build?: IdentityBuildList | undefined; } /** The IDs of the containers that are using this image. */ export type ImageManifestSummaryImageDataContainersList = Array; export interface ImageManifestSummaryImageDataSize { /** Unpacked is the size (in bytes) of the locally unpacked (uncompressed) image content that's directly usable by the containers running this image. It's independent of the distributable content - e.g. the image might still have an unpacked data that's still used by some container even when the distributable/compressed content is already gone. */ Unpacked: number; } /** The image data for the image manifest. This field is only populated when Kind is "image". */ export interface ImageManifestSummaryImageData { /** OCI platform of the image. This will be the platform specified in the manifest descriptor from the index/manifest list. If it's not available, it will be obtained from the image config. */ Platform: OCIPlatform | null; /** Identity holds information about the identity and origin of this image. For image list responses, this can duplicate Build/Pull fields across image manifests, because those parts are image-level metadata. */ Identity?: Identity | null | undefined; /** The IDs of the containers that are using this image. */ Containers: ImageManifestSummaryImageDataContainersList; Size: ImageManifestSummaryImageDataSize; } /** The image data for the attestation manifest. This field is only populated when Kind is "attestation". */ export interface ImageManifestSummaryAttestationData { /** The digest of the image manifest that this attestation is for. */ For: string; } /** ImageManifestSummary represents a summary of an image manifest. */ export interface ImageManifestSummary { /** ID is the content-addressable ID of an image and is the same as the digest of the image manifest. */ ID: string; Descriptor: OCIDescriptor; /** Indicates whether all the child content (image config, layers) is fully available locally. */ Available: boolean; Size: ImageManifestSummarySize; /** The kind of the manifest. kind | description -------------|----------------------------------------------------------- image | Image manifest that can be used to start a container. attestation | Attestation manifest produced by the Buildkit builder for a specific image manifest. */ Kind: ImageManifestSummaryKind; /** The image data for the image manifest. This field is only populated when Kind is "image". */ ImageData?: ImageManifestSummaryImageData | null | undefined; /** The image data for the attestation manifest. This field is only populated when Kind is "attestation". */ AttestationData?: ImageManifestSummaryAttestationData | null | undefined; } /** Manifests is a list of image manifests available in this image. It provides a more detailed view of the platform-specific image manifests or other image-attached data like build attestations. Only available if the daemon provides a multi-platform image store and the `manifests` option is set in the inspect request. WARNING: This is experimental and may change at any time without any backward compatibility. */ export type ImageInspectManifestsList = Array; /** List of image names/tags in the local image cache that reference this image. Multiple image tags can refer to the same image, and this list may be empty if no tags reference the image, in which case the image is "untagged", in which case it can still be referenced by its ID. */ export type ImageInspectRepoTagsList = Array; /** List of content-addressable digests of locally available image manifests that the image is referenced from. Multiple manifests can refer to the same image. These digests are usually only available if the image was either pulled from a registry, or if the image was pushed to a registry, which is when the manifest is generated and its digest calculated. */ export type ImageInspectRepoDigestsList = Array; /** An object mapping ports to an empty object in the form: `{"/": {}}` */ export type ImageConfigExposedPortsMap = { [key: string]: unknown | undefined }; /** A list of environment variables to set inside the container in the form `["VAR=value", ...]`. A variable without `=` is removed from the environment, rather than to have an empty value. */ export type ImageConfigEnvList = Array; /** Command to run specified as a string or an array of strings. */ export type ImageConfigCmdList = Array; /** An object mapping mount point paths inside the container to empty objects. */ export type ImageConfigVolumesMap = { [key: string]: unknown | undefined }; /** The entry point for the container as a string or an array of strings. If the array consists of exactly one empty string (`[""]`) then the entry point is reset to system default (i.e., the entry point used by docker when there is no `ENTRYPOINT` instruction in the `Dockerfile`). */ export type ImageConfigEntrypointList = Array; /** `ONBUILD` metadata that were defined in the image's `Dockerfile`. */ export type ImageConfigOnBuildList = Array; /** User-defined key/value metadata. */ export type ImageConfigLabelsMap = { [key: string]: string | undefined }; /** Shell for when `RUN`, `CMD`, and `ENTRYPOINT` uses a shell. */ export type ImageConfigShellList = Array; /** Configuration of the image. These fields are used as defaults when starting a container from the image. */ export interface ImageConfig { /** The user that commands are run as inside the container. */ User?: string | undefined; /** An object mapping ports to an empty object in the form: `{"/": {}}` */ ExposedPorts?: ImageConfigExposedPortsMap | null | undefined; /** A list of environment variables to set inside the container in the form `["VAR=value", ...]`. A variable without `=` is removed from the environment, rather than to have an empty value. */ Env?: ImageConfigEnvList | undefined; /** Command to run specified as a string or an array of strings. */ Cmd?: ImageConfigCmdList | undefined; Healthcheck?: HealthConfig | undefined; /** Command is already escaped (Windows only) */ ArgsEscaped?: boolean | null | undefined; /** An object mapping mount point paths inside the container to empty objects. */ Volumes?: ImageConfigVolumesMap | undefined; /** The working directory for commands to run in. */ WorkingDir?: string | undefined; /** The entry point for the container as a string or an array of strings. If the array consists of exactly one empty string (`[""]`) then the entry point is reset to system default (i.e., the entry point used by docker when there is no `ENTRYPOINT` instruction in the `Dockerfile`). */ Entrypoint?: ImageConfigEntrypointList | undefined; /** `ONBUILD` metadata that were defined in the image's `Dockerfile`. */ OnBuild?: ImageConfigOnBuildList | null | undefined; /** User-defined key/value metadata. */ Labels?: ImageConfigLabelsMap | undefined; /** Signal to stop a container as a string or unsigned integer. */ StopSignal?: string | null | undefined; /** Shell for when `RUN`, `CMD`, and `ENTRYPOINT` uses a shell. */ Shell?: ImageConfigShellList | null | undefined; } export type ImageInspectRootFSLayersList = Array; /** Information about the image's RootFS, including the layer IDs. */ export interface ImageInspectRootFS { Type: string; Layers?: ImageInspectRootFSLayersList | undefined; } /** Additional metadata of the image in the local cache. This information is local to the daemon, and not part of the image itself. */ export interface ImageInspectMetadata { /** Date and time at which the image was last tagged in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds. This information is only available if the image was tagged locally, and omitted otherwise. */ LastTagTime?: string | null | undefined; } /** Information about an image in the local image cache. */ export interface ImageInspect { /** ID is the content-addressable ID of an image. This identifier is a content-addressable digest calculated from the image's configuration (which includes the digests of layers used by the image). Note that this digest differs from the `RepoDigests` below, which holds digests of image manifests that reference the image. */ Id?: string | undefined; /** Descriptor is an OCI descriptor of the image target. In case of a multi-platform image, this descriptor points to the OCI index or a manifest list. This field is only present if the daemon provides a multi-platform image store. WARNING: This is experimental and may change at any time without any backward compatibility. */ Descriptor?: OCIDescriptor | null | undefined; /** Manifests is a list of image manifests available in this image. It provides a more detailed view of the platform-specific image manifests or other image-attached data like build attestations. Only available if the daemon provides a multi-platform image store and the `manifests` option is set in the inspect request. WARNING: This is experimental and may change at any time without any backward compatibility. */ Manifests?: ImageInspectManifestsList | null | undefined; /** Identity holds information about the identity and origin of the image. This is trusted information verified by the daemon and cannot be modified by tagging an image to a different name. */ Identity?: Identity | null | undefined; /** List of image names/tags in the local image cache that reference this image. Multiple image tags can refer to the same image, and this list may be empty if no tags reference the image, in which case the image is "untagged", in which case it can still be referenced by its ID. */ RepoTags?: ImageInspectRepoTagsList | undefined; /** List of content-addressable digests of locally available image manifests that the image is referenced from. Multiple manifests can refer to the same image. These digests are usually only available if the image was either pulled from a registry, or if the image was pushed to a registry, which is when the manifest is generated and its digest calculated. */ RepoDigests?: ImageInspectRepoDigestsList | undefined; /** Optional message that was set when committing or importing the image. */ Comment?: string | null | undefined; /** Date and time at which the image was created, formatted in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds. This information is only available if present in the image, and omitted otherwise. */ Created?: string | null | undefined; /** Name of the author that was specified when committing the image, or as specified through MAINTAINER (deprecated) in the Dockerfile. */ Author?: string | null | undefined; Config?: ImageConfig | undefined; /** Hardware CPU architecture that the image runs on. */ Architecture?: string | undefined; /** CPU architecture variant (presently ARM-only). */ Variant?: string | null | undefined; /** Operating System the image is built to run on. */ Os?: string | undefined; /** Operating System version the image is built to run on (especially for Windows). */ OsVersion?: string | null | undefined; /** Total size of the image variant, including all layers it is composed of. For multi-platform images, this is the size of the platform variant selected by the `platform` query parameter. If no platform is specified, the daemon selects a platform as described in the `platform` parameter. When using the containerd image store, this includes both the image content that's present locally and the unpacked snapshot data for the selected variant. Image data may be shared between images, so this size does not indicate how much space would be reclaimed by deleting the image. */ Size?: number | undefined; GraphDriver?: DriverData | null | undefined; /** Information about the image's RootFS, including the layer IDs. */ RootFS?: ImageInspectRootFS | undefined; /** Additional metadata of the image in the local cache. This information is local to the daemon, and not part of the image itself. */ Metadata?: ImageInspectMetadata | undefined; } export type ImageLoadRequestPlatformList = Array; export interface ImageLoadRequest { /** Suppress progress details during load. */ quiet?: boolean | undefined; /** JSON encoded OCI platform(s) which will be used to select the platform-specific image(s) to load if the image is multi-platform. If not provided, the full multi-platform image will be loaded. Example: `{"os": "linux", "architecture": "arm", "variant": "v5"}` */ platform?: ImageLoadRequestPlatformList | undefined; body?: string | undefined; } export interface ImageLoadResponse {} export interface ImagePruneRequest { /** Filters to process on the prune list, encoded as JSON (a `map[string][]string`). Available filters: - `dangling=` When set to `true` (or `1`), prune only unused *and* untagged images. When set to `false` (or `0`), all unused images are pruned. - `until=` Prune images created before this timestamp. The `` can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. `10m`, `1h30m`) computed relative to the daemon machine's time. - `label` (`label=`, `label==`, `label!=`, or `label!==`) Prune images with (or without, in case `label!=...` is used) the specified labels. */ filters?: string | undefined; } /** Images that were deleted */ export type ImagePruneResponseImagesDeletedList = Array; export interface ImagePruneResponse { /** Images that were deleted */ ImagesDeleted?: ImagePruneResponseImagesDeletedList | undefined; /** Disk space reclaimed in bytes */ SpaceReclaimed?: number | undefined; } export interface ImagePushRequest { /** Name of the image to push. For example, `registry.example.com/myimage`. The image must be present in the local image store with the same name. The name should be provided without tag; if a tag is provided, it is ignored. For example, `registry.example.com/myimage:latest` is considered equivalent to `registry.example.com/myimage`. Use the `tag` parameter to specify the tag to push. */ name: string; /** Tag of the image to push. For example, `latest`. If no tag is provided, all tags of the given image that are present in the local image store are pushed. */ tag?: string | undefined; /** JSON-encoded OCI platform to select the platform-variant to push. If not provided, all available variants will attempt to be pushed. If the daemon provides a multi-platform image store, this selects the platform-variant to push to the registry. If the image is a single-platform image, or if the multi-platform image does not provide a variant matching the given platform, an error is returned. Example: `{"os": "linux", "architecture": "arm", "variant": "v5"}` */ platform?: string | undefined; /** A base64url-encoded auth configuration. Refer to the [authentication section](#section/Authentication) for details. */ xRegistryAuth: string | Redacted.Redacted; } export interface ImagePushResponse {} export interface ImageTagRequest { /** Image name or ID to tag. */ name: string; /** The repository to tag in. For example, `someuser/someimage`. */ repo?: string | undefined; /** The name of the new tag. */ tag?: string | undefined; } export interface ImageTagResponse {} /** Addresses of manager nodes already participating in the swarm. */ export type JoinSwarmRequestRemoteAddrsList = Array; export interface JoinSwarmRequest { /** Listen address used for inter-manager communication if the node gets promoted to manager, as well as determining the networking interface used for the VXLAN Tunnel Endpoint (VTEP). This is required for joining a swarm. If the port number is omitted, the default swarm listening port is used. */ ListenAddr: string; /** Externally reachable address advertised to other nodes. This can either be an address/port combination in the form `192.168.1.1:4567`, or an interface followed by a port number, like `eth0:4567`. If the port number is omitted, the port number from the listen address is used. If `AdvertiseAddr` is not specified, it will be automatically detected when possible. */ AdvertiseAddr?: string | undefined; /** Address or interface to use for data path traffic (format: ``), for example, `192.168.1.1`, or an interface, like `eth0`. If `DataPathAddr` is unspecified, the same address as `AdvertiseAddr` is used. The `DataPathAddr` specifies the address that global scope network drivers will publish towards other nodes in order to reach the containers running on this node. Using this parameter it is possible to separate the container data traffic from the management traffic of the cluster. */ DataPathAddr?: string | undefined; /** Addresses of manager nodes already participating in the swarm. */ RemoteAddrs: JoinSwarmRequestRemoteAddrsList; /** Secret token for joining this swarm. */ JoinToken: string | Redacted.Redacted; } export interface JoinSwarmResponse {} export interface KillContainerRequest { /** ID or name of the container */ id: string; /** Signal to send to the container as an integer or string (e.g. `SIGINT`). */ signal?: string | undefined; } export interface KillContainerResponse {} export interface LeaveSwarmRequest { /** Force leave swarm, even if this is the last manager or that it will break the cluster. */ force?: boolean | undefined; } export interface LeaveSwarmResponse {} export interface ListConfigRequest { /** A JSON encoded value of the filters (a `map[string][]string`) to process on the configs list. Available filters: - `id=` - `label= or label==value` - `name=` matches all or part of a config name (prefix match) */ filters?: string | undefined; } export type ListConfigResponseBodyList = Array; export type ListConfigResponse = ListConfigResponseBodyList; export interface ListContainerRequest { /** Return all containers. By default, only running containers are shown. */ all?: boolean | undefined; /** Return this number of most recently created containers, including non-running ones. */ limit?: number | undefined; /** Return the size of container as fields `SizeRw` and `SizeRootFs`. */ size?: boolean | undefined; /** Filters to process on the container list, encoded as JSON (a `map[string][]string`). For example, `{"status": ["paused"]}` will only return paused containers. Available filters: - `ancestor`=(`[:]`, ``, or ``) - `annotation=key` or `annotation="key=value"` of a container annotation - `before`=(`` or ``) - `expose`=(`[/]`|`/[]`) - `exited=` containers with exit code of `` - `health`=(`starting`|`healthy`|`unhealthy`|`none`) - `id=` a container's ID - `isolation=`(`default`|`process`|`hyperv`) (Windows daemon only) - `is-task=`(`true`|`false`) - `label=key` or `label="key=value"` of a container label - `name=` a container's name - `network`=(`` or ``) - `publish`=(`[/]`|`/[]`) - `since`=(`` or ``) - `status=`(`created`|`restarting`|`running`|`removing`|`paused`|`exited`|`dead`) - `volume`=(`` or ``) */ filters?: string | undefined; } /** The names associated with this container. Most containers have a single name, but when using legacy "links", the container can have multiple names. For historic reasons, names are prefixed with a forward-slash (`/`). */ export type ContainerSummaryNamesList = Array; export type PortSummaryType = "tcp" | "udp" | "sctp"; /** Describes a port-mapping between the container and the host. */ export interface PortSummary { /** Host IP address that the container's port is mapped to */ IP?: string | undefined; /** Port on the container */ PrivatePort: number; /** Port exposed on the host */ PublicPort?: number | undefined; Type: PortSummaryType; } /** Port-mappings for the container. */ export type ContainerSummaryPortsList = Array; /** User-defined key/value metadata. */ export type ContainerSummaryLabelsMap = { [key: string]: string | undefined }; /** The state of this container. */ export type ContainerSummaryState = | "created" | "running" | "paused" | "restarting" | "exited" | "removing" | "dead"; /** Arbitrary key-value metadata attached to the container. */ export type ContainerSummaryHostConfigAnnotationsMap = { [key: string]: string | undefined }; /** Summary of host-specific runtime information of the container. This is a reduced set of information in the container's "HostConfig" as available in the container "inspect" response. */ export interface ContainerSummaryHostConfig { /** Networking mode (`host`, `none`, `container:`) or name of the primary network the container is using. This field is primarily for backward compatibility. The container can be connected to multiple networks for which information can be found in the `NetworkSettings.Networks` field, which enumerates settings per network. */ NetworkMode?: string | undefined; /** Arbitrary key-value metadata attached to the container. */ Annotations?: ContainerSummaryHostConfigAnnotationsMap | null | undefined; } /** Summary of network-settings for each network the container is attached to. */ export type ContainerSummaryNetworkSettingsNetworksMap = { [key: string]: EndpointSettings | undefined; }; /** Summary of the container's network settings */ export interface ContainerSummaryNetworkSettings { /** Summary of network-settings for each network the container is attached to. */ Networks?: ContainerSummaryNetworkSettingsNetworksMap | undefined; } /** List of mounts used by the container. */ export type ContainerSummaryMountsList = Array; /** the health status of the container */ export type ContainerSummaryHealthStatus = "none" | "starting" | "healthy" | "unhealthy"; /** Summary of health status Added in v1.52, before that version all container summary not include Health. After this attribute introduced, it includes containers with no health checks configured, or containers that are not running with none */ export interface ContainerSummaryHealth { /** the health status of the container */ Status?: ContainerSummaryHealthStatus | undefined; /** FailingStreak is the number of consecutive failures */ FailingStreak?: number | undefined; } export interface ContainerSummary { /** The ID of this container as a 128-bit (64-character) hexadecimal string (32 bytes). */ Id?: string | undefined; /** The names associated with this container. Most containers have a single name, but when using legacy "links", the container can have multiple names. For historic reasons, names are prefixed with a forward-slash (`/`). */ Names?: ContainerSummaryNamesList | undefined; /** The name or ID of the image used to create the container. This field shows the image reference as was specified when creating the container, which can be in its canonical form (e.g., `docker.io/library/ubuntu:latest` or `docker.io/library/ubuntu@sha256:72297848456d5d37d1262630108ab308d3e9ec7ed1c3286a32fe09856619a782`), short form (e.g., `ubuntu:latest`)), or the ID(-prefix) of the image (e.g., `72297848456d`). The content of this field can be updated at runtime if the image used to create the container is untagged, in which case the field is updated to contain the the image ID (digest) it was resolved to in its canonical, non-truncated form (e.g., `sha256:72297848456d5d37d1262630108ab308d3e9ec7ed1c3286a32fe09856619a782`). */ Image?: string | undefined; /** The ID (digest) of the image that this container was created from. */ ImageID?: string | undefined; /** OCI descriptor of the platform-specific manifest of the image the container was created from. Note: Only available if the daemon provides a multi-platform image store. This field is not populated in the `GET /system/df` endpoint. */ ImageManifestDescriptor?: OCIDescriptor | null | undefined; /** Command to run when starting the container */ Command?: string | undefined; /** Date and time at which the container was created as a Unix timestamp (number of seconds since EPOCH). */ Created?: number | undefined; /** Port-mappings for the container. */ Ports?: ContainerSummaryPortsList | undefined; /** The size of files that have been created or changed by this container. This field is omitted by default, and only set when size is requested in the API request. */ SizeRw?: number | null | undefined; /** The total size of all files in the read-only layers from the image that the container uses. These layers can be shared between containers. This field is omitted by default, and only set when size is requested in the API request. */ SizeRootFs?: number | null | undefined; /** User-defined key/value metadata. */ Labels?: ContainerSummaryLabelsMap | undefined; /** The state of this container. */ State?: ContainerSummaryState | undefined; /** Additional human-readable status of this container (e.g. `Exit 0`) */ Status?: string | undefined; /** Summary of host-specific runtime information of the container. This is a reduced set of information in the container's "HostConfig" as available in the container "inspect" response. */ HostConfig?: ContainerSummaryHostConfig | undefined; /** Summary of the container's network settings */ NetworkSettings?: ContainerSummaryNetworkSettings | undefined; /** List of mounts used by the container. */ Mounts?: ContainerSummaryMountsList | undefined; /** Summary of health status Added in v1.52, before that version all container summary not include Health. After this attribute introduced, it includes containers with no health checks configured, or containers that are not running with none */ Health?: ContainerSummaryHealth | undefined; } export type ListContainerResponseBodyList = Array; export type ListContainerResponse = ListContainerResponseBodyList; export interface ListImageRequest { /** Show all images. Only images from a final layer (no children) are shown by default. */ all?: boolean | undefined; /** A JSON encoded value of the filters (a `map[string][]string`) to process on the images list. Available filters: - `before`=(`[:]`, `` or ``) - `dangling=true` - `label=key` or `label="key=value"` of an image label - `reference`=(`[:]`) - `since`=(`[:]`, `` or ``) - `until=` */ filters?: string | undefined; /** Compute and show shared size as a `SharedSize` field on each image. */ shared_size?: boolean | undefined; /** Show digest information as a `RepoDigests` field on each image. */ digests?: boolean | undefined; /** Include `Manifests` in the image summary. */ manifests?: boolean | undefined; /** Include `Identity` in each manifest summary. Requires `manifests=1`. */ identity?: boolean | undefined; } /** List of image names/tags in the local image cache that reference this image. Multiple image tags can refer to the same image, and this list may be empty if no tags reference the image, in which case the image is "untagged", in which case it can still be referenced by its ID. */ export type ImageSummaryRepoTagsList = Array; /** List of content-addressable digests of locally available image manifests that the image is referenced from. Multiple manifests can refer to the same image. These digests are usually only available if the image was either pulled from a registry, or if the image was pushed to a registry, which is when the manifest is generated and its digest calculated. */ export type ImageSummaryRepoDigestsList = Array; /** User-defined key/value metadata. */ export type ImageSummaryLabelsMap = { [key: string]: string | undefined }; /** Manifests is a list of manifests available in this image. It provides a more detailed view of the platform-specific image manifests or other image-attached data like build attestations. WARNING: This is experimental and may change at any time without any backward compatibility. */ export type ImageSummaryManifestsList = Array; export interface ImageSummary { /** ID is the content-addressable ID of an image. This identifier is a content-addressable digest calculated from the image's configuration (which includes the digests of layers used by the image). Note that this digest differs from the `RepoDigests` below, which holds digests of image manifests that reference the image. */ Id: string; /** ID of the parent image. Depending on how the image was created, this field may be empty and is only set for images that were built/created locally. This field is empty if the image was pulled from an image registry. */ ParentId: string; /** List of image names/tags in the local image cache that reference this image. Multiple image tags can refer to the same image, and this list may be empty if no tags reference the image, in which case the image is "untagged", in which case it can still be referenced by its ID. */ RepoTags: ImageSummaryRepoTagsList; /** List of content-addressable digests of locally available image manifests that the image is referenced from. Multiple manifests can refer to the same image. These digests are usually only available if the image was either pulled from a registry, or if the image was pushed to a registry, which is when the manifest is generated and its digest calculated. */ RepoDigests: ImageSummaryRepoDigestsList; /** Date and time at which the image was created as a Unix timestamp (number of seconds since EPOCH). */ Created: number; /** Total size of the image including all layers it is composed of. */ Size: number; /** Total size of image layers that are shared between this image and other images. This size is not calculated by default. `-1` indicates that the value has not been set / calculated. */ SharedSize: number; /** User-defined key/value metadata. */ Labels: ImageSummaryLabelsMap; /** Number of containers using this image. Includes both stopped and running containers. `-1` indicates that the value has not been set / calculated. */ Containers: number; /** Manifests is a list of manifests available in this image. It provides a more detailed view of the platform-specific image manifests or other image-attached data like build attestations. WARNING: This is experimental and may change at any time without any backward compatibility. */ Manifests?: ImageSummaryManifestsList | undefined; /** Descriptor is an OCI descriptor of the image target. In case of a multi-platform image, this descriptor points to the OCI index or a manifest list. This field is only present if the daemon provides a multi-platform image store. WARNING: This is experimental and may change at any time without any backward compatibility. */ Descriptor?: OCIDescriptor | null | undefined; } export type ListImageResponseBodyList = Array; export type ListImageResponse = ListImageResponseBodyList; export interface ListNetworkRequest { /** JSON encoded value of the filters (a `map[string][]string`) to process on the networks list. Available filters: - `dangling=` When set to `true` (or `1`), returns all networks that are not in use by a container. When set to `false` (or `0`), only networks that are in use by one or more containers are returned. - `driver=` Matches a network's driver. - `id=` Matches all or part of a network ID. - `label=` or `label==` of a network label. - `name=` Matches all or part of a network name. - `scope=["swarm"|"global"|"local"]` Filters networks by scope (`swarm`, `global`, or `local`). - `type=["custom"|"builtin"]` Filters networks by type. The `custom` keyword returns all user-defined networks. */ filters?: string | undefined; } /** Network-specific options uses when creating the network. */ export type NetworkOptionsMap = { [key: string]: string | undefined }; /** Metadata specific to the network being created. */ export type NetworkLabelsMap = { [key: string]: string | undefined }; /** represents one peer of an overlay network. */ export interface PeerInfo { /** ID of the peer-node in the Swarm cluster. */ Name?: string | undefined; /** IP-address of the peer-node in the Swarm cluster. */ IP?: string | undefined; } /** List of peer nodes for an overlay network. This field is only present for overlay networks, and omitted for other network types. */ export type NetworkPeersList = Array; export interface Network { /** Name of the network. */ Name?: string | undefined; /** ID that uniquely identifies a network on a single machine. */ Id?: string | undefined; /** Date and time at which the network was created in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds. */ Created?: string | undefined; /** The level at which the network exists (e.g. `swarm` for cluster-wide or `local` for machine level) */ Scope?: string | undefined; /** The name of the driver used to create the network (e.g. `bridge`, `overlay`). */ Driver?: string | undefined; /** Whether the network was created with IPv4 enabled. */ EnableIPv4?: boolean | undefined; /** Whether the network was created with IPv6 enabled. */ EnableIPv6?: boolean | undefined; /** The network's IP Address Management. */ IPAM?: IPAM | undefined; /** Whether the network is created to only allow internal networking connectivity. */ Internal?: boolean | undefined; /** Whether a global / swarm scope network is manually attachable by regular containers from workers in swarm mode. */ Attachable?: boolean | undefined; /** Whether the network is providing the routing-mesh for the swarm cluster. */ Ingress?: boolean | undefined; ConfigFrom?: ConfigReference | undefined; /** Whether the network is a config-only network. Config-only networks are placeholder networks for network configurations to be used by other networks. Config-only networks cannot be used directly to run containers or services. */ ConfigOnly?: boolean | undefined; /** Network-specific options uses when creating the network. */ Options?: NetworkOptionsMap | undefined; /** Metadata specific to the network being created. */ Labels?: NetworkLabelsMap | undefined; /** List of peer nodes for an overlay network. This field is only present for overlay networks, and omitted for other network types. */ Peers?: NetworkPeersList | undefined; } export type ListNetworkResponseBodyList = Array; export type ListNetworkResponse = ListNetworkResponseBodyList; export interface ListNodeRequest { /** Filters to process on the nodes list, encoded as JSON (a `map[string][]string`). Available filters: - `id=` - `label=` - `membership=`(`accepted`|`pending`)` - `name=` - `node.label=` - `role=`(`manager`|`worker`)` */ filters?: string | undefined; } /** User-defined key/value metadata. */ export type NodeSpecLabelsMap = { [key: string]: string | undefined }; /** Role of the node. */ export type NodeSpecRole = "worker" | "manager"; /** Availability of the node. */ export type NodeSpecAvailability = "active" | "pause" | "drain"; export interface NodeSpec { /** Name for the node. */ Name?: string | undefined; /** User-defined key/value metadata. */ Labels?: NodeSpecLabelsMap | undefined; /** Role of the node. */ Role?: NodeSpecRole | undefined; /** Availability of the node. */ Availability?: NodeSpecAvailability | undefined; } export type EngineDescriptionLabelsMap = { [key: string]: string | undefined }; export interface EngineDescriptionPluginsItem { Type?: string | undefined; Name?: string | undefined; } export type EngineDescriptionPluginsList = Array; /** EngineDescription provides information about an engine. */ export interface EngineDescription { EngineVersion?: string | undefined; Labels?: EngineDescriptionLabelsMap | undefined; Plugins?: EngineDescriptionPluginsList | undefined; } /** Information about the issuer of leaf TLS certificates and the trusted root CA certificate. */ export interface TLSInfo { /** The root CA certificate(s) that are used to validate leaf TLS certificates. */ TrustRoot?: string | undefined; /** The base64-url-safe-encoded raw subject bytes of the issuer. */ CertIssuerSubject?: string | undefined; /** The base64-url-safe-encoded raw public key bytes of the issuer. */ CertIssuerPublicKey?: string | undefined; } /** NodeDescription encapsulates the properties of the Node as reported by the agent. */ export interface NodeDescription { Hostname?: string | undefined; Platform?: Platform | undefined; Resources?: ResourceObject | undefined; Engine?: EngineDescription | undefined; TLSInfo?: TLSInfo | undefined; } /** NodeState represents the state of a node. */ export type NodeState = "unknown" | "down" | "ready" | "disconnected"; /** NodeStatus represents the status of a node. It provides the current status of the node, as seen by the manager. */ export interface NodeStatus { State?: NodeState | undefined; Message?: string | undefined; /** IP address of the node. */ Addr?: string | undefined; } /** Reachability represents the reachability of a node. */ export type Reachability = "unknown" | "unreachable" | "reachable"; /** ManagerStatus represents the status of a manager. It provides the current status of a node's manager component, if the node is a manager. */ export interface ManagerStatus { Leader?: boolean | undefined; Reachability?: Reachability | undefined; /** The IP address and port at which the manager is reachable. */ Addr?: string | undefined; } export interface Node { ID?: string | undefined; Version?: ObjectVersion | undefined; /** Date and time at which the node was added to the swarm in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds. */ CreatedAt?: string | undefined; /** Date and time at which the node was last updated in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds. */ UpdatedAt?: string | undefined; Spec?: NodeSpec | undefined; Description?: NodeDescription | undefined; Status?: NodeStatus | undefined; ManagerStatus?: ManagerStatus | null | undefined; } export type ListNodeResponseBodyList = Array; export type ListNodeResponse = ListNodeResponseBodyList; export interface ListPluginRequest { /** A JSON encoded value of the filters (a `map[string][]string`) to process on the plugin list. Available filters: - `capability=` - `enable=|` */ filters?: string | undefined; } export type ListPluginResponseBodyList = Array; export type ListPluginResponse = ListPluginResponseBodyList; export interface ListSecretRequest { /** A JSON encoded value of the filters (a `map[string][]string`) to process on the secrets list. Available filters: - `id=` - `label= or label==value` - `name=` matches all or part of a secret name (prefix match) - `names=` matches a secret name (exact match) */ filters?: string | undefined; } /** User-defined key/value metadata. */ export type SecretSpecLabelsMap = { [key: string]: string | undefined }; export interface SecretSpec { /** User-defined name of the secret. */ Name?: string | undefined; /** User-defined key/value metadata. */ Labels?: SecretSpecLabelsMap | undefined; /** Data is the data to store as a secret, formatted as a standard base64-encoded ([RFC 4648](https://tools.ietf.org/html/rfc4648#section-4)) string. It must be empty if the Driver field is set, in which case the data is loaded from an external secret store. The maximum allowed size is 500KB, as defined in [MaxSecretSize](https://pkg.go.dev/github.com/moby/swarmkit/v2@v2.0.0/api/validation#MaxSecretSize). This field is only used to _create_ a secret, and is not returned by other endpoints. */ Data?: string | Redacted.Redacted | undefined; /** Name of the secrets driver used to fetch the secret's value from an external secret store. */ Driver?: Driver | undefined; /** Templating driver, if applicable Templating controls whether and how to evaluate the config payload as a template. If no driver is set, no templating is used. */ Templating?: Driver | undefined; } export interface Secret { ID?: string | undefined; Version?: ObjectVersion | undefined; CreatedAt?: string | undefined; UpdatedAt?: string | undefined; Spec?: SecretSpec | undefined; } export type ListSecretResponseBodyList = Array; export type ListSecretResponse = ListSecretResponseBodyList; export interface ListServiceRequest { /** A JSON encoded value of the filters (a `map[string][]string`) to process on the services list. Available filters: - `id=` - `label=` - `mode=["replicated"|"global"]` - `name=` */ filters?: string | undefined; /** Include service status, with count of running and desired tasks. */ status?: boolean | undefined; } /** User-defined key/value metadata. */ export type ServiceSpecLabelsMap = { [key: string]: string | undefined }; export type ServiceSpecModeReplicated = CreateServiceRequestModeReplicated; /** The mode used for services with a finite number of tasks that run to a completed state. */ export type ServiceSpecModeReplicatedJob = CreateServiceRequestModeReplicatedJob; /** Scheduling mode for the service. */ export type ServiceSpecMode = CreateServiceRequestMode; /** Action to take if an updated task fails to run, or stops running during the update. */ export type ServiceSpecUpdateConfigFailureAction = "continue" | "pause" | "rollback"; /** The order of operations when rolling out an updated task. Either the old task is shut down before the new task is started, or the new task is started before the old task is shut down. */ export type ServiceSpecUpdateConfigOrder = "stop-first" | "start-first"; /** Specification for the update strategy of the service. */ export interface ServiceSpecUpdateConfig { /** Maximum number of tasks to be updated in one iteration (0 means unlimited parallelism). */ Parallelism?: number | undefined; /** Amount of time between updates, in nanoseconds. */ Delay?: number | undefined; /** Action to take if an updated task fails to run, or stops running during the update. */ FailureAction?: ServiceSpecUpdateConfigFailureAction | undefined; /** Amount of time to monitor each updated task for failures, in nanoseconds. */ Monitor?: number | undefined; /** The fraction of tasks that may fail during an update before the failure action is invoked, specified as a floating point number between 0 and 1. */ MaxFailureRatio?: number | undefined; /** The order of operations when rolling out an updated task. Either the old task is shut down before the new task is started, or the new task is started before the old task is shut down. */ Order?: ServiceSpecUpdateConfigOrder | undefined; } /** Action to take if an rolled back task fails to run, or stops running during the rollback. */ export type ServiceSpecRollbackConfigFailureAction = "continue" | "pause"; /** The order of operations when rolling back a task. Either the old task is shut down before the new task is started, or the new task is started before the old task is shut down. */ export type ServiceSpecRollbackConfigOrder = "stop-first" | "start-first"; /** Specification for the rollback strategy of the service. */ export interface ServiceSpecRollbackConfig { /** Maximum number of tasks to be rolled back in one iteration (0 means unlimited parallelism). */ Parallelism?: number | undefined; /** Amount of time between rollback iterations, in nanoseconds. */ Delay?: number | undefined; /** Action to take if an rolled back task fails to run, or stops running during the rollback. */ FailureAction?: ServiceSpecRollbackConfigFailureAction | undefined; /** Amount of time to monitor each rolled back task for failures, in nanoseconds. */ Monitor?: number | undefined; /** The fraction of tasks that may fail during a rollback before the failure action is invoked, specified as a floating point number between 0 and 1. */ MaxFailureRatio?: number | undefined; /** The order of operations when rolling back a task. Either the old task is shut down before the new task is started, or the new task is started before the old task is shut down. */ Order?: ServiceSpecRollbackConfigOrder | undefined; } /** Specifies which networks the service should attach to. Deprecated: This field is deprecated since v1.44. The Networks field in TaskSpec should be used instead. */ export type ServiceSpecNetworksList = Array; /** User modifiable configuration for a service. */ export interface ServiceSpec { /** Name of the service. */ Name?: string | undefined; /** User-defined key/value metadata. */ Labels?: ServiceSpecLabelsMap | undefined; TaskTemplate?: TaskSpec | undefined; /** Scheduling mode for the service. */ Mode?: CreateServiceRequestMode | undefined; /** Specification for the update strategy of the service. */ UpdateConfig?: ServiceSpecUpdateConfig | undefined; /** Specification for the rollback strategy of the service. */ RollbackConfig?: ServiceSpecRollbackConfig | undefined; /** Specifies which networks the service should attach to. Deprecated: This field is deprecated since v1.44. The Networks field in TaskSpec should be used instead. */ Networks?: ServiceSpecNetworksList | undefined; EndpointSpec?: EndpointSpec | undefined; } export type ServiceEndpointPortsList = Array; export interface ServiceEndpointVirtualIPsItem { NetworkID?: string | undefined; Addr?: string | undefined; } export type ServiceEndpointVirtualIPsList = Array; export interface ServiceEndpoint { Spec?: EndpointSpec | undefined; Ports?: ServiceEndpointPortsList | undefined; VirtualIPs?: ServiceEndpointVirtualIPsList | undefined; } export type ServiceUpdateStatusState = "updating" | "paused" | "completed"; /** The status of a service update. */ export interface ServiceUpdateStatus { State?: ServiceUpdateStatusState | undefined; StartedAt?: string | undefined; CompletedAt?: string | undefined; Message?: string | undefined; } /** The status of the service's tasks. Provided only when requested as part of a ServiceList operation. */ export interface ServiceServiceStatus { /** The number of tasks for the service currently in the Running state. */ RunningTasks?: number | undefined; /** The number of tasks for the service desired to be running. For replicated services, this is the replica count from the service spec. For global services, this is computed by taking count of all tasks for the service with a Desired State other than Shutdown. */ DesiredTasks?: number | undefined; /** The number of tasks for a job that are in the Completed state. This field must be cross-referenced with the service type, as the value of 0 may mean the service is not in a job mode, or it may mean the job-mode service has no tasks yet Completed. */ CompletedTasks?: number | undefined; } /** The status of the service when it is in one of ReplicatedJob or GlobalJob modes. Absent on Replicated and Global mode services. The JobIteration is an ObjectVersion, but unlike the Service's version, does not need to be sent with an update request. */ export interface ServiceJobStatus { /** JobIteration is a value increased each time a Job is executed, successfully or otherwise. "Executed", in this case, means the job as a whole has been started, not that an individual Task has been launched. A job is "Executed" when its ServiceSpec is updated. JobIteration can be used to disambiguate Tasks belonging to different executions of a job. Though JobIteration will increase with each subsequent execution, it may not necessarily increase by 1, and so JobIteration should not be used to */ JobIteration?: ObjectVersion | undefined; /** The last time, as observed by the server, that this job was started. */ LastExecution?: string | undefined; } export interface Service { ID?: string | undefined; Version?: ObjectVersion | undefined; CreatedAt?: string | undefined; UpdatedAt?: string | undefined; Spec?: ServiceSpec | undefined; Endpoint?: ServiceEndpoint | undefined; /** The status of a service update. */ UpdateStatus?: ServiceUpdateStatus | undefined; /** The status of the service's tasks. Provided only when requested as part of a ServiceList operation. */ ServiceStatus?: ServiceServiceStatus | undefined; /** The status of the service when it is in one of ReplicatedJob or GlobalJob modes. Absent on Replicated and Global mode services. The JobIteration is an ObjectVersion, but unlike the Service's version, does not need to be sent with an update request. */ JobStatus?: ServiceJobStatus | undefined; } export type ListServiceResponseBodyList = Array; export type ListServiceResponse = ListServiceResponseBodyList; export interface ListTaskRequest { /** A JSON encoded value of the filters (a `map[string][]string`) to process on the tasks list. Available filters: - `desired-state=(running | shutdown | accepted)` - `id=` - `label=key` or `label="key=value"` - `name=` - `node=` - `service=` */ filters?: string | undefined; } /** User-defined key/value metadata. */ export type TaskLabelsMap = { [key: string]: string | undefined }; export type TaskState = | "new" | "allocated" | "pending" | "assigned" | "accepted" | "preparing" | "ready" | "starting" | "running" | "complete" | "shutdown" | "failed" | "rejected" | "remove" | "orphaned"; /** represents the status of a container. */ export interface ContainerStatus { ContainerID?: string | undefined; PID?: number | undefined; ExitCode?: number | undefined; } export type PortStatusPortsList = Array; /** represents the port status of a task's host ports whose service has published host ports */ export interface PortStatus { Ports?: PortStatusPortsList | undefined; } /** represents the status of a task. */ export interface TaskStatus { Timestamp?: string | undefined; State?: TaskState | undefined; Message?: string | undefined; Err?: string | undefined; ContainerStatus?: ContainerStatus | undefined; PortStatus?: PortStatus | undefined; } /** The IP addresses (in CIDR notation) assigned to the task on this network. To maintain backward compatibility this field accepts CIDR notation, but only the IP address is used. */ export type NetworkAttachmentAddressesList = Array; /** Specifies how a task is attached to a network, and the addresses the task was assigned on that network. */ export interface NetworkAttachment { Network?: Network | undefined; /** The IP addresses (in CIDR notation) assigned to the task on this network. To maintain backward compatibility this field accepts CIDR notation, but only the IP address is used. */ Addresses?: NetworkAttachmentAddressesList | undefined; } /** The networks that this task is attached to, and the addresses the task was assigned on each of them. */ export type TaskNetworksAttachmentsList = Array; export interface Task { /** The ID of the task. */ ID?: string | undefined; Version?: ObjectVersion | undefined; CreatedAt?: string | undefined; UpdatedAt?: string | undefined; /** Name of the task. */ Name?: string | undefined; /** User-defined key/value metadata. */ Labels?: TaskLabelsMap | undefined; Spec?: TaskSpec | undefined; /** The ID of the service this task is part of. */ ServiceID?: string | undefined; Slot?: number | undefined; /** The ID of the node that this task is on. */ NodeID?: string | undefined; AssignedGenericResources?: GenericResources | undefined; Status?: TaskStatus | undefined; DesiredState?: TaskState | undefined; /** If the Service this Task belongs to is a job-mode service, contains the JobIteration of the Service this Task was created for. Absent if the Task was created for a Replicated or Global Service. */ JobIteration?: ObjectVersion | undefined; /** The networks that this task is attached to, and the addresses the task was assigned on each of them. */ NetworksAttachments?: TaskNetworksAttachmentsList | undefined; } export type ListTaskResponseBodyList = Array; export type ListTaskResponse = ListTaskResponseBodyList; export interface ListVolumeRequest { /** JSON encoded value of the filters (a `map[string][]string`) to process on the volumes list. Available filters: - `dangling=` When set to `true` (or `1`), returns all volumes that are not in use by a container. When set to `false` (or `0`), only volumes that are in use by one or more containers are returned. - `driver=` Matches volumes based on their driver. - `label=` or `label=:` Matches volumes based on the presence of a `label` alone or a `label` and a value. - `name=` Matches all or part of a volume name. */ filters?: string | undefined; } /** List of volumes */ export type VolumeListResponseVolumesList = Array; /** Warnings that occurred when fetching the list of volumes. */ export type VolumeListResponseWarningsList = Array; /** Volume list response */ export interface VolumeListResponse { /** List of volumes */ Volumes?: VolumeListResponseVolumesList | undefined; /** Warnings that occurred when fetching the list of volumes. */ Warnings?: VolumeListResponseWarningsList | undefined; } export interface NetworkInspectRequest { /** Network ID or name */ id: string; /** Detailed inspect output for troubleshooting */ verbose?: boolean | undefined; /** Filter the network by scope (swarm, global, or local) */ scope?: string | undefined; } /** Network-specific options uses when creating the network. */ export type NetworkInspectResponseOptionsMap = { [key: string]: string | undefined }; /** Metadata specific to the network being created. */ export type NetworkInspectResponseLabelsMap = { [key: string]: string | undefined }; /** List of peer nodes for an overlay network. This field is only present for overlay networks, and omitted for other network types. */ export type NetworkInspectResponsePeersList = Array; /** contains network resources allocated and used for a container in a network. */ export interface EndpointResource { Name?: string | undefined; EndpointID?: string | undefined; MacAddress?: string | undefined; IPv4Address?: string | undefined; IPv6Address?: string | undefined; } /** Contains endpoints attached to the network. */ export type NetworkInspectResponseContainersMap = { [key: string]: EndpointResource | undefined }; /** List of services using the network. This field is only present for swarm scope networks, and omitted for local scope networks. */ export type NetworkInspectResponseServicesMap = { [key: string]: unknown | undefined }; export interface SubnetStatus { /** Number of IP addresses in the subnet that are in use or reserved and are therefore unavailable for allocation, saturating at 264 - 1. */ IPsInUse?: number | undefined; /** Number of IP addresses within the network's IPRange for the subnet that are available for allocation, saturating at 264 - 1. */ DynamicIPsAvailable?: number | undefined; } export type IPAMStatusSubnetsMap = { [key: string]: SubnetStatus | undefined }; export interface IPAMStatus { Subnets?: IPAMStatusSubnetsMap | undefined; } /** provides runtime information about the network such as the number of allocated IPs. */ export interface NetworkStatus { IPAM?: IPAMStatus | undefined; } export interface NetworkInspectResponse { /** Name of the network. */ Name?: string | undefined; /** ID that uniquely identifies a network on a single machine. */ Id?: string | undefined; /** Date and time at which the network was created in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds. */ Created?: string | undefined; /** The level at which the network exists (e.g. `swarm` for cluster-wide or `local` for machine level) */ Scope?: string | undefined; /** The name of the driver used to create the network (e.g. `bridge`, `overlay`). */ Driver?: string | undefined; /** Whether the network was created with IPv4 enabled. */ EnableIPv4?: boolean | undefined; /** Whether the network was created with IPv6 enabled. */ EnableIPv6?: boolean | undefined; /** The network's IP Address Management. */ IPAM?: IPAM | undefined; /** Whether the network is created to only allow internal networking connectivity. */ Internal?: boolean | undefined; /** Whether a global / swarm scope network is manually attachable by regular containers from workers in swarm mode. */ Attachable?: boolean | undefined; /** Whether the network is providing the routing-mesh for the swarm cluster. */ Ingress?: boolean | undefined; ConfigFrom?: ConfigReference | undefined; /** Whether the network is a config-only network. Config-only networks are placeholder networks for network configurations to be used by other networks. Config-only networks cannot be used directly to run containers or services. */ ConfigOnly?: boolean | undefined; /** Network-specific options uses when creating the network. */ Options?: NetworkInspectResponseOptionsMap | undefined; /** Metadata specific to the network being created. */ Labels?: NetworkInspectResponseLabelsMap | undefined; /** List of peer nodes for an overlay network. This field is only present for overlay networks, and omitted for other network types. */ Peers?: NetworkInspectResponsePeersList | undefined; /** Contains endpoints attached to the network. */ Containers?: NetworkInspectResponseContainersMap | undefined; /** List of services using the network. This field is only present for swarm scope networks, and omitted for local scope networks. */ Services?: NetworkInspectResponseServicesMap | undefined; /** provides runtime information about the network such as the number of allocated IPs. */ Status?: NetworkStatus | undefined; } export interface NetworkPruneRequest { /** Filters to process on the prune list, encoded as JSON (a `map[string][]string`). Available filters: - `until=` Prune networks created before this timestamp. The `` can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. `10m`, `1h30m`) computed relative to the daemon machine's time. - `label` (`label=`, `label==`, `label!=`, or `label!==`) Prune networks with (or without, in case `label!=...` is used) the specified labels. */ filters?: string | undefined; } /** Networks that were deleted */ export type NetworkPruneResponseNetworksDeletedList = Array; export interface NetworkPruneResponse { /** Networks that were deleted */ NetworksDeleted?: NetworkPruneResponseNetworksDeletedList | undefined; } export interface NodeInspectRequest { /** The ID or name of the node */ id: string; } export interface PauseContainerRequest { /** ID or name of the container */ id: string; } export interface PauseContainerResponse {} export interface PingSystemRequest {} export type PingSystemResponse = string; export interface PluginInspectRequest { /** The name of the plugin. The `:latest` tag is optional, and is the default if omitted. */ name: string; } export type PluginPullRequestBodyList = Array; export interface PluginPullRequest { /** Remote reference for plugin to install. The `:latest` tag is optional, and is used as the default if omitted. */ remote: string; /** Local name for the pulled plugin. The `:latest` tag is optional, and is used as the default if omitted. */ name?: string | undefined; /** A base64url-encoded auth configuration to use when pulling a plugin from a registry. Refer to the [authentication section](#section/Authentication) for details. */ xRegistryAuth?: string | Redacted.Redacted | undefined; body?: PluginPullRequestBodyList | undefined; } export interface PluginPullResponse {} export interface PluginPushRequest { /** The name of the plugin. The `:latest` tag is optional, and is the default if omitted. */ name: string; } export interface PluginPushResponse {} export type PluginUpgradeRequestBodyList = Array; export interface PluginUpgradeRequest { /** The name of the plugin. The `:latest` tag is optional, and is the default if omitted. */ name: string; /** Remote reference to upgrade to. The `:latest` tag is optional, and is used as the default if omitted. */ remote: string; /** A base64url-encoded auth configuration to use when pulling a plugin from a registry. Refer to the [authentication section](#section/Authentication) for details. */ xRegistryAuth?: string | Redacted.Redacted | undefined; body?: PluginUpgradeRequestBodyList | undefined; } export interface PluginUpgradeResponse {} export interface PutContainerArchiveRequest { /** ID or name of the container */ id: string; /** Path to a directory in the container to extract the archive's contents into. */ path: string; /** If `1`, `true`, or `True` then it will be an error if unpacking the given content would cause an existing directory to be replaced with a non-directory and vice versa. */ noOverwriteDirNonDir?: string | undefined; /** If `1`, `true`, then it will copy UID/GID maps to the dest file or dir */ copyUIDGID?: string | undefined; body: string; } export interface PutContainerArchiveResponse {} export interface RenameContainerRequest { /** ID or name of the container */ id: string; /** New name for the container */ name: string; } export interface RenameContainerResponse {} export interface ResizeContainerRequest { /** ID or name of the container */ id: string; /** Height of the TTY session in characters */ h: number; /** Width of the TTY session in characters */ w: number; } export interface ResizeContainerResponse {} export interface RestartContainerRequest { /** ID or name of the container */ id: string; /** Signal to send to the container as an integer or string (e.g. `SIGINT`). */ signal?: string | undefined; /** Number of seconds to wait before killing the container */ t?: number | undefined; } export interface RestartContainerResponse {} export interface SearchImageRequest { /** Term to search */ term: string; /** Maximum number of results to return */ limit?: number | undefined; /** A JSON encoded value of the filters (a `map[string][]string`) to process on the images list. Available filters: - `is-official=(true|false)` - `stars=` Matches images that has at least 'number' stars. */ filters?: string | undefined; } export interface SearchImageResponseBodyItem { description?: string | undefined; is_official?: boolean | undefined; /** Whether this repository has automated builds enabled.


> **Deprecated**: This field is deprecated and will always be "false". */ is_automated?: boolean | undefined; name?: string | undefined; star_count?: number | undefined; } export type SearchImageResponseBodyList = Array; export type SearchImageResponse = SearchImageResponseBodyList; export interface SecretInspectRequest { /** ID of the secret */ id: string; } export interface ServiceInspectRequest { /** ID or name of service. */ id: string; /** Fill empty fields with default values. */ insertDefaults?: boolean | undefined; } export interface ServiceLogsRequest { /** ID or name of the service */ id: string; /** Show service context and extra details provided to logs. */ details?: boolean | undefined; /** Keep connection after returning logs. */ follow?: boolean | undefined; /** Return logs from `stdout` */ stdout?: boolean | undefined; /** Return logs from `stderr` */ stderr?: boolean | undefined; /** Only return logs since this time, as a UNIX timestamp */ since?: number | undefined; /** Add timestamps to every log line */ timestamps?: boolean | undefined; /** Only return this number of log lines from the end of the logs. Specify as an integer or `all` to output all log lines. */ tail?: string | undefined; } export type ServiceLogsResponse = string; export interface SessionRequest {} export interface SessionResponse {} export type SetPluginRequestBodyList = Array; export interface SetPluginRequest { /** The name of the plugin. The `:latest` tag is optional, and is the default if omitted. */ name: string; body?: SetPluginRequestBodyList | undefined; } export interface SetPluginResponse {} export interface StartContainerRequest { /** ID or name of the container */ id: string; /** Override the key sequence for detaching a container. Format is a single character `[a-Z]` or `ctrl-` where `` is one of: `a-z`, `@`, `^`, `[`, `,` or `_`. */ detachKeys?: string | undefined; } export interface StartContainerResponse {} export interface StopContainerRequest { /** ID or name of the container */ id: string; /** Signal to send to the container as an integer or string (e.g. `SIGINT`). */ signal?: string | undefined; /** Number of seconds to wait before killing the container */ t?: number | undefined; } export interface StopContainerResponse {} /** Default Address Pool specifies default subnet pools for global scope networks. */ export type SwarmInitRequestDefaultAddrPoolList = Array; /** User-defined key/value metadata. */ export type SwarmSpecLabelsMap = { [key: string]: string | undefined }; /** Orchestration configuration. */ export interface SwarmSpecOrchestration { /** The number of historic tasks to keep per instance or node. If negative, never remove completed or failed tasks. */ TaskHistoryRetentionLimit?: number | undefined; } /** Raft configuration. */ export interface SwarmSpecRaft { /** The number of log entries between snapshots. */ SnapshotInterval?: number | undefined; /** The number of snapshots to keep beyond the current snapshot. */ KeepOldSnapshots?: number | undefined; /** The number of log entries to keep around to sync up slow followers after a snapshot is created. */ LogEntriesForSlowFollowers?: number | undefined; /** The number of ticks that a follower will wait for a message from the leader before becoming a candidate and starting an election. `ElectionTick` must be greater than `HeartbeatTick`. A tick currently defaults to one second, so these translate directly to seconds currently, but this is NOT guaranteed. */ ElectionTick?: number | undefined; /** The number of ticks between heartbeats. Every HeartbeatTick ticks, the leader will send a heartbeat to the followers. A tick currently defaults to one second, so these translate directly to seconds currently, but this is NOT guaranteed. */ HeartbeatTick?: number | undefined; } /** Dispatcher configuration. */ export interface SwarmSpecDispatcher { /** The delay for an agent to send a heartbeat to the dispatcher. */ HeartbeatPeriod?: number | undefined; } /** Protocol for communication with the external CA (currently only `cfssl` is supported). */ export type SwarmSpecCAConfigExternalCAsItemProtocol = "cfssl"; /** An object with key/value pairs that are interpreted as protocol-specific options for the external CA driver. */ export type SwarmSpecCAConfigExternalCAsItemOptionsMap = { [key: string]: string | undefined }; export interface SwarmSpecCAConfigExternalCAsItem { /** Protocol for communication with the external CA (currently only `cfssl` is supported). */ Protocol?: SwarmSpecCAConfigExternalCAsItemProtocol | (string & {}) | undefined; /** URL where certificate signing requests should be sent. */ URL?: string | undefined; /** An object with key/value pairs that are interpreted as protocol-specific options for the external CA driver. */ Options?: SwarmSpecCAConfigExternalCAsItemOptionsMap | undefined; /** The root CA certificate (in PEM format) this external CA uses to issue TLS certificates (assumed to be to the current swarm root CA certificate if not provided). */ CACert?: string | undefined; } /** Configuration for forwarding signing requests to an external certificate authority. */ export type SwarmSpecCAConfigExternalCAsList = Array; /** CA configuration. */ export interface SwarmSpecCAConfig { /** The duration node certificates are issued for. */ NodeCertExpiry?: number | undefined; /** Configuration for forwarding signing requests to an external certificate authority. */ ExternalCAs?: SwarmSpecCAConfigExternalCAsList | undefined; /** The desired signing CA certificate for all swarm node TLS leaf certificates, in PEM format. */ SigningCACert?: string | undefined; /** The desired signing CA key for all swarm node TLS leaf certificates, in PEM format. */ SigningCAKey?: string | undefined; /** An integer whose purpose is to force swarm to generate a new signing CA certificate and key, if none have been specified in `SigningCACert` and `SigningCAKey` */ ForceRotate?: number | undefined; } /** Parameters related to encryption-at-rest. */ export interface SwarmSpecEncryptionConfig { /** If set, generate a key and use it to lock data stored on the managers. */ AutoLockManagers?: boolean | undefined; } /** Driver-specific options for the selected log driver, specified as key/value pairs. */ export type SwarmSpecTaskDefaultsLogDriverOptionsMap = { [key: string]: string | undefined }; /** The log driver to use for tasks created in the orchestrator if unspecified by a service. Updating this value only affects new tasks. Existing tasks continue to use their previously configured log driver until recreated. */ export interface SwarmSpecTaskDefaultsLogDriver { /** The log driver to use as a default for new tasks. */ Name?: string | undefined; /** Driver-specific options for the selected log driver, specified as key/value pairs. */ Options?: SwarmSpecTaskDefaultsLogDriverOptionsMap | undefined; } /** Defaults for creating tasks in this cluster. */ export interface SwarmSpecTaskDefaults { /** The log driver to use for tasks created in the orchestrator if unspecified by a service. Updating this value only affects new tasks. Existing tasks continue to use their previously configured log driver until recreated. */ LogDriver?: SwarmSpecTaskDefaultsLogDriver | undefined; } /** User modifiable swarm configuration. */ export interface SwarmSpec { /** Name of the swarm. */ Name?: string | undefined; /** User-defined key/value metadata. */ Labels?: SwarmSpecLabelsMap | undefined; /** Orchestration configuration. */ Orchestration?: SwarmSpecOrchestration | null | undefined; /** Raft configuration. */ Raft?: SwarmSpecRaft | undefined; /** Dispatcher configuration. */ Dispatcher?: SwarmSpecDispatcher | null | undefined; /** CA configuration. */ CAConfig?: SwarmSpecCAConfig | null | undefined; /** Parameters related to encryption-at-rest. */ EncryptionConfig?: SwarmSpecEncryptionConfig | undefined; /** Defaults for creating tasks in this cluster. */ TaskDefaults?: SwarmSpecTaskDefaults | undefined; } export interface SwarmInitRequest { /** Listen address used for inter-manager communication, as well as determining the networking interface used for the VXLAN Tunnel Endpoint (VTEP). This can either be an address/port combination in the form `192.168.1.1:4567`, or an interface followed by a port number, like `eth0:4567`. If the port number is omitted, the default swarm listening port is used. */ ListenAddr?: string | undefined; /** Externally reachable address advertised to other nodes. This can either be an address/port combination in the form `192.168.1.1:4567`, or an interface followed by a port number, like `eth0:4567`. If the port number is omitted, the port number from the listen address is used. If `AdvertiseAddr` is not specified, it will be automatically detected when possible. */ AdvertiseAddr?: string | undefined; /** Address or interface to use for data path traffic (format: ``), for example, `192.168.1.1`, or an interface, like `eth0`. If `DataPathAddr` is unspecified, the same address as `AdvertiseAddr` is used. The `DataPathAddr` specifies the address that global scope network drivers will publish towards other nodes in order to reach the containers running on this node. Using this parameter it is possible to separate the container data traffic from the management traffic of the cluster. */ DataPathAddr?: string | undefined; /** DataPathPort specifies the data path port number for data traffic. Acceptable port range is 1024 to 49151. if no port is set or is set to 0, default port 4789 will be used. */ DataPathPort?: number | undefined; /** Default Address Pool specifies default subnet pools for global scope networks. */ DefaultAddrPool?: SwarmInitRequestDefaultAddrPoolList | undefined; /** Force creation of a new swarm. */ ForceNewCluster?: boolean | undefined; /** SubnetSize specifies the subnet size of the networks created from the default subnet pool. */ SubnetSize?: number | undefined; Spec?: SwarmSpec | undefined; } export type SwarmInitResponse = string; export interface SwarmInspectRequest {} /** Default Address Pool specifies default subnet pools for global scope networks. */ export type SwarmInspectResponseDefaultAddrPoolList = Array; /** JoinTokens contains the tokens workers and managers need to join the swarm. */ export interface JoinTokens { /** The token workers can use to join the swarm. */ Worker?: string | undefined; /** The token managers can use to join the swarm. */ Manager?: string | undefined; } export interface SwarmInspectResponse { /** The ID of the swarm. */ ID?: string | undefined; Version?: ObjectVersion | undefined; /** Date and time at which the swarm was initialised in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds. */ CreatedAt?: string | undefined; /** Date and time at which the swarm was last updated in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds. */ UpdatedAt?: string | undefined; Spec?: SwarmSpec | undefined; TLSInfo?: TLSInfo | undefined; /** Whether there is currently a root CA rotation in progress for the swarm */ RootRotationInProgress?: boolean | undefined; /** DataPathPort specifies the data path port number for data traffic. Acceptable port range is 1024 to 49151. If no port is set or is set to 0, the default port (4789) is used. */ DataPathPort?: number | undefined; /** Default Address Pool specifies default subnet pools for global scope networks. */ DefaultAddrPool?: SwarmInspectResponseDefaultAddrPoolList | undefined; /** SubnetSize specifies the subnet size of the networks created from the default subnet pool. */ SubnetSize?: number | undefined; JoinTokens?: JoinTokens | undefined; } export interface SwarmUnlockkeyRequest {} export interface SwarmUnlockkeyResponse { /** The swarm's unlock key. */ UnlockKey?: string | undefined; } export interface SystemAuthRequest { username?: string | undefined; password?: string | Redacted.Redacted | undefined; serveraddress?: string | undefined; } /** An identity token was generated successfully. */ export interface AuthResponse { /** The status of the authentication */ Status: string; /** An opaque token used to authenticate a user after a successful login */ IdentityToken?: string | Redacted.Redacted | undefined; } export type SystemDataUsageRequestTypeItem = "container" | "image" | "volume" | "build-cache"; export type SystemDataUsageRequestTypeList = Array; export interface SystemDataUsageRequest { /** Object types, for which to compute and return data. */ type?: SystemDataUsageRequestTypeList | undefined; /** Show detailed information on space usage. */ verbose?: boolean | undefined; } /** List of image summaries. */ export type ImagesDiskUsageItemsList = Array; /** represents system data usage for image resources. */ export interface ImagesDiskUsage { /** Count of active images. */ ActiveCount?: number | undefined; /** Count of all images. */ TotalCount?: number | undefined; /** Disk space that can be reclaimed by removing unused images. */ Reclaimable?: number | undefined; /** Disk space in use by images. */ TotalSize?: number | undefined; /** List of image summaries. */ Items?: ImagesDiskUsageItemsList | undefined; } /** List of container summaries. */ export type ContainersDiskUsageItemsList = Array; /** represents system data usage information for container resources. */ export interface ContainersDiskUsage { /** Count of active containers. */ ActiveCount?: number | undefined; /** Count of all containers. */ TotalCount?: number | undefined; /** Disk space that can be reclaimed by removing inactive containers. */ Reclaimable?: number | undefined; /** Disk space in use by containers. */ TotalSize?: number | undefined; /** List of container summaries. */ Items?: ContainersDiskUsageItemsList | undefined; } /** List of volumes. */ export type VolumesDiskUsageItemsList = Array; /** represents system data usage for volume resources. */ export interface VolumesDiskUsage { /** Count of active volumes. */ ActiveCount?: number | undefined; /** Count of all volumes. */ TotalCount?: number | undefined; /** Disk space that can be reclaimed by removing inactive volumes. */ Reclaimable?: number | undefined; /** Disk space in use by volumes. */ TotalSize?: number | undefined; /** List of volumes. */ Items?: VolumesDiskUsageItemsList | undefined; } /** List of build cache records. */ export type BuildCacheDiskUsageItemsList = Array; /** represents system data usage for build cache resources. */ export interface BuildCacheDiskUsage { /** Count of active build cache records. */ ActiveCount?: number | undefined; /** Count of all build cache records. */ TotalCount?: number | undefined; /** Disk space that can be reclaimed by removing inactive build cache records. */ Reclaimable?: number | undefined; /** Disk space in use by build cache records. */ TotalSize?: number | undefined; /** List of build cache records. */ Items?: BuildCacheDiskUsageItemsList | undefined; } export interface SystemDataUsageResponse { ImageUsage?: ImagesDiskUsage | undefined; ContainerUsage?: ContainersDiskUsage | undefined; VolumeUsage?: VolumesDiskUsage | undefined; BuildCacheUsage?: BuildCacheDiskUsage | undefined; } export interface SystemEventsRequest { /** Show events created since this timestamp then stream new events. */ since?: string | undefined; /** Show events created until this timestamp then stop streaming. */ until?: string | undefined; /** A JSON encoded value of filters (a `map[string][]string`) to process on the event list. Available filters: - `config=` config name or ID - `container=` container name or ID - `daemon=` daemon name or ID - `event=` event type - `image=` image name or ID - `label=` image or container label - `network=` network name or ID - `node=` node ID - `plugin`= plugin name or ID - `scope`= local or swarm - `secret=` secret name or ID - `service=` service name or ID - `type=` object to filter by, one of `container`, `image`, `volume`, `network`, `daemon`, `plugin`, `node`, `service`, `secret` or `config` - `volume=` volume name */ filters?: string | undefined; } /** The type of object emitting the event */ export type EventMessageType = | "builder" | "config" | "container" | "daemon" | "image" | "network" | "node" | "plugin" | "secret" | "service" | "volume"; /** Various key/value attributes of the object, depending on its type. */ export type EventActorAttributesMap = { [key: string]: string | undefined }; /** Actor describes something that generates events, like a container, network, or a volume. */ export interface EventActor { /** The ID of the object emitting the event */ ID?: string | undefined; /** Various key/value attributes of the object, depending on its type. */ Attributes?: EventActorAttributesMap | undefined; } /** Scope of the event. Engine events are `local` scope. Cluster (Swarm) events are `swarm` scope. */ export type EventMessageScope = "local" | "swarm"; /** EventMessage represents the information an event contains. */ export interface EventMessage { /** The type of object emitting the event */ Type?: EventMessageType | undefined; /** The type of event */ Action?: string | undefined; Actor?: EventActor | undefined; /** Scope of the event. Engine events are `local` scope. Cluster (Swarm) events are `swarm` scope. */ scope?: EventMessageScope | undefined; /** Timestamp of event */ time?: number | undefined; /** Timestamp of event, with nanosecond accuracy */ timeNano?: number | undefined; } export interface SystemInfo2Request {} export type SystemInfoDriverStatusItemList = Array; /** Information specific to the storage driver, provided as "label" / "value" pairs. This information is provided by the storage driver, and formatted in a way consistent with the output of `docker info` on the command line.


> **Note**: The information returned in this field, including the > formatting of values and labels, should not be considered stable, > and may change without notice. */ export type SystemInfoDriverStatusList = Array; /** Names of available volume-drivers, and network-driver plugins. */ export type PluginsInfoVolumeList = Array; /** Names of available network-drivers, and network-driver plugins. */ export type PluginsInfoNetworkList = Array; /** Names of available authorization plugins. */ export type PluginsInfoAuthorizationList = Array; /** Names of available logging-drivers, and logging-driver plugins. */ export type PluginsInfoLogList = Array; /** Available plugins per type.


> **Note**: Only unmanaged (V1) plugins are included in this list. > V1 plugins are "lazily" loaded, and are not returned in this list > if there is no resource using the plugin. */ export interface PluginsInfo { /** Names of available volume-drivers, and network-driver plugins. */ Volume?: PluginsInfoVolumeList | undefined; /** Names of available network-drivers, and network-driver plugins. */ Network?: PluginsInfoNetworkList | undefined; /** Names of available authorization plugins. */ Authorization?: PluginsInfoAuthorizationList | undefined; /** Names of available logging-drivers, and logging-driver plugins. */ Log?: PluginsInfoLogList | undefined; } /** The driver to use for managing cgroups. */ export type SystemInfoCgroupDriver = "cgroupfs" | "systemd" | "none"; /** The version of the cgroup. */ export type SystemInfoCgroupVersion = "1" | "2"; /** List of IP ranges of insecure registries, using the CIDR syntax ([RFC 4632](https://tools.ietf.org/html/4632)). Insecure registries accept un-encrypted (HTTP) and/or untrusted (HTTPS with certificates from unknown CAs) communication. By default, local registries (`::1/128` and `127.0.0.0/8`) are configured as insecure. All other registries are secure. Communicating with an insecure registry is not possible if the daemon assumes that registry is secure. This configuration override this behavior, insecure communication with registries whose resolved IP address is within the subnet described by the CIDR syntax. Registries can also be marked insecure by hostname. Those registries are listed under `IndexConfigs` and have their `Secure` field set to `false`. > **Warning**: Using this option can be useful when running a local > registry, but introduces security vulnerabilities. This option > should therefore ONLY be used for testing purposes. For increased > security, users should add their CA to their system's list of trusted > CAs instead of enabling this option. */ export type RegistryServiceConfigInsecureRegistryCIDRsList = Array; /** List of mirrors, expressed as URIs. */ export type IndexInfoMirrorsList = Array; /** IndexInfo contains information about a registry. */ export interface IndexInfo { /** Name of the registry, such as "docker.io". */ Name?: string | undefined; /** List of mirrors, expressed as URIs. */ Mirrors?: IndexInfoMirrorsList | undefined; /** Indicates if the registry is part of the list of insecure registries. If `false`, the registry is insecure. Insecure registries accept un-encrypted (HTTP) and/or untrusted (HTTPS with certificates from unknown CAs) communication. > **Warning**: Insecure registries can be useful when running a local > registry. However, because its use creates security vulnerabilities > it should ONLY be enabled for testing purposes. For increased > security, users should add their CA to their system's list of > trusted CAs instead of enabling this option. */ Secure?: boolean | undefined; /** Indicates whether this is an official registry (i.e., Docker Hub / docker.io) */ Official?: boolean | undefined; } export type RegistryServiceConfigIndexConfigsMap = { [key: string]: IndexInfo | null | undefined }; /** List of registry URLs that act as a mirror for the official (`docker.io`) registry. */ export type RegistryServiceConfigMirrorsList = Array; /** RegistryServiceConfig stores daemon registry services configuration. */ export interface RegistryServiceConfig { /** List of IP ranges of insecure registries, using the CIDR syntax ([RFC 4632](https://tools.ietf.org/html/4632)). Insecure registries accept un-encrypted (HTTP) and/or untrusted (HTTPS with certificates from unknown CAs) communication. By default, local registries (`::1/128` and `127.0.0.0/8`) are configured as insecure. All other registries are secure. Communicating with an insecure registry is not possible if the daemon assumes that registry is secure. This configuration override this behavior, insecure communication with registries whose resolved IP address is within the subnet described by the CIDR syntax. Registries can also be marked insecure by hostname. Those registries are listed under `IndexConfigs` and have their `Secure` field set to `false`. > **Warning**: Using this option can be useful when running a local > registry, but introduces security vulnerabilities. This option > should therefore ONLY be used for testing purposes. For increased > security, users should add their CA to their system's list of trusted > CAs instead of enabling this option. */ InsecureRegistryCIDRs?: RegistryServiceConfigInsecureRegistryCIDRsList | undefined; IndexConfigs?: RegistryServiceConfigIndexConfigsMap | undefined; /** List of registry URLs that act as a mirror for the official (`docker.io`) registry. */ Mirrors?: RegistryServiceConfigMirrorsList | undefined; } /** User-defined labels (key/value metadata) as set on the daemon.


> **Note**: When part of a Swarm, nodes can both have _daemon_ labels, > set through the daemon configuration, and _node_ labels, set from a > manager node in the Swarm. Node labels are not included in this > field. Node labels can be retrieved using the `/nodes/(id)` endpoint > on a manager node in the Swarm. */ export type SystemInfoLabelsList = Array; /** List of command-line arguments to pass to the runtime when invoked. */ export type RuntimeRuntimeArgsList = Array; /** Information specific to the runtime. While this API specification does not define data provided by runtimes, the following well-known properties may be provided by runtimes: `org.opencontainers.runtime-spec.features`: features structure as defined in the [OCI Runtime Specification](https://github.com/opencontainers/runtime-spec/blob/main/features.md), in a JSON string representation.


> **Note**: The information returned in this field, including the > formatting of values and labels, should not be considered stable, > and may change without notice. */ export type RuntimeStatusMap = { [key: string]: string | undefined }; /** Runtime describes an [OCI compliant](https://github.com/opencontainers/runtime-spec) runtime. The runtime is invoked by the daemon via the `containerd` daemon. OCI runtimes act as an interface to the Linux kernel namespaces, cgroups, and SELinux. */ export interface Runtime { /** Name and, optional, path, of the OCI executable binary. If the path is omitted, the daemon searches the host's `$PATH` for the binary and uses the first result. */ path?: string | undefined; /** List of command-line arguments to pass to the runtime when invoked. */ runtimeArgs?: RuntimeRuntimeArgsList | null | undefined; /** Information specific to the runtime. While this API specification does not define data provided by runtimes, the following well-known properties may be provided by runtimes: `org.opencontainers.runtime-spec.features`: features structure as defined in the [OCI Runtime Specification](https://github.com/opencontainers/runtime-spec/blob/main/features.md), in a JSON string representation.


> **Note**: The information returned in this field, including the > formatting of values and labels, should not be considered stable, > and may change without notice. */ status?: RuntimeStatusMap | null | undefined; } /** List of [OCI compliant](https://github.com/opencontainers/runtime-spec) runtimes configured on the daemon. Keys hold the "name" used to reference the runtime. The Docker daemon relies on an OCI compliant runtime (invoked via the `containerd` daemon) as its interface to the Linux kernel namespaces, cgroups, and SELinux. The default runtime is `runc`, and automatically configured. Additional runtimes can be configured by the user and will be listed here. */ export type SystemInfoRuntimesMap = { [key: string]: Runtime | undefined }; /** Current local status of this node. */ export type LocalNodeState = "" | "inactive" | "pending" | "active" | "error" | "locked"; /** Represents a peer-node in the swarm */ export interface PeerNode { /** Unique identifier of for this node in the swarm. */ NodeID?: string | undefined; /** IP address and ports at which this node can be reached. */ Addr?: string | undefined; } /** List of ID's and addresses of other managers in the swarm. */ export type SwarmInfoRemoteManagersList = Array; /** Default Address Pool specifies default subnet pools for global scope networks. */ export type ClusterInfoDefaultAddrPoolList = Array; /** ClusterInfo represents information about the swarm as is returned by the "/info" endpoint. Join-tokens are not included. */ export interface ClusterInfo { /** The ID of the swarm. */ ID?: string | undefined; Version?: ObjectVersion | undefined; /** Date and time at which the swarm was initialised in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds. */ CreatedAt?: string | undefined; /** Date and time at which the swarm was last updated in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds. */ UpdatedAt?: string | undefined; Spec?: SwarmSpec | undefined; TLSInfo?: TLSInfo | undefined; /** Whether there is currently a root CA rotation in progress for the swarm */ RootRotationInProgress?: boolean | undefined; /** DataPathPort specifies the data path port number for data traffic. Acceptable port range is 1024 to 49151. If no port is set or is set to 0, the default port (4789) is used. */ DataPathPort?: number | undefined; /** Default Address Pool specifies default subnet pools for global scope networks. */ DefaultAddrPool?: ClusterInfoDefaultAddrPoolList | undefined; /** SubnetSize specifies the subnet size of the networks created from the default subnet pool. */ SubnetSize?: number | undefined; } /** Represents generic information about swarm. */ export interface SwarmInfo { /** Unique identifier of for this node in the swarm. */ NodeID?: string | undefined; /** IP address at which this node can be reached by other nodes in the swarm. */ NodeAddr?: string | undefined; LocalNodeState?: LocalNodeState | undefined; ControlAvailable?: boolean | undefined; Error?: string | undefined; /** List of ID's and addresses of other managers in the swarm. */ RemoteManagers?: SwarmInfoRemoteManagersList | null | undefined; /** Total number of nodes in the swarm. */ Nodes?: number | null | undefined; /** Total number of managers in the swarm. */ Managers?: number | null | undefined; Cluster?: ClusterInfo | null | undefined; } /** Represents the isolation technology to use as a default for containers. The supported values are platform-specific. If no isolation value is specified on daemon start, on Windows client, the default is `hyperv`, and on Windows server, the default is `process`. This option is currently not used on other platforms. */ export type SystemInfoIsolation = "default" | "hyperv" | "process" | ""; /** Commit holds the Git-commit (SHA1) that a binary was built from, as reported in the version-string of external tools, such as `containerd`, or `runC`. */ export interface Commit { /** Actual commit ID of external tool. */ ID?: string | undefined; } /** List of security features that are enabled on the daemon, such as apparmor, seccomp, SELinux, user-namespaces (userns), rootless and no-new-privileges. Additional configuration options for each security feature may be present, and are included as a comma-separated list of key/value pairs. */ export type SystemInfoSecurityOptionsList = Array; export interface SystemInfoDefaultAddressPoolsItem { /** The network address in CIDR format */ Base?: string | undefined; /** The network pool size */ Size?: number | undefined; } /** List of custom default address pools for local networks, which can be specified in the daemon.json file or dockerd option. Example: a Base "10.10.0.0/16" with Size 24 will define the set of 256 10.10.[0-255].0/24 address pools. */ export type SystemInfoDefaultAddressPoolsList = Array; export type FirewallInfoInfoItemList = Array; /** Information about the firewall backend, provided as "label" / "value" pairs.


> **Note**: The information returned in this field, including the > formatting of values and labels, should not be considered stable, > and may change without notice. */ export type FirewallInfoInfoList = Array; /** Information about the daemon's firewalling configuration. This field is currently only used on Linux, and omitted on other platforms. */ export interface FirewallInfo { /** The name of the firewall backend driver. */ Driver?: string | undefined; /** Information about the firewall backend, provided as "label" / "value" pairs.


> **Note**: The information returned in this field, including the > formatting of values and labels, should not be considered stable, > and may change without notice. */ Info?: FirewallInfoInfoList | undefined; } /** DeviceInfo represents a device that can be used by a container. */ export interface DeviceInfo { /** The origin device driver. */ Source?: string | undefined; /** The unique identifier for the device within its source driver. For CDI devices, this would be an FQDN like "vendor.com/gpu=0". */ ID?: string | undefined; } /** List of devices discovered by device drivers. Each device includes information about its source driver, kind, name, and additional driver-specific attributes. */ export type SystemInfoDiscoveredDevicesList = Array; export type NRIInfoInfoItemList = Array; /** Information about NRI, provided as "label" / "value" pairs.


> **Note**: The information returned in this field, including the > formatting of values and labels, should not be considered stable, > and may change without notice. */ export type NRIInfoInfoList = Array; /** Information about the Node Resource Interface (NRI). This field is only present if NRI is enabled. */ export interface NRIInfo { /** Information about NRI, provided as "label" / "value" pairs.


> **Note**: The information returned in this field, including the > formatting of values and labels, should not be considered stable, > and may change without notice. */ Info?: NRIInfoInfoList | undefined; } /** List of warnings / informational messages about missing features, or issues related to the daemon configuration. These messages can be printed by the client as information to the user. */ export type SystemInfoWarningsList = Array; /** List of directories where (Container Device Interface) CDI specifications are located. These specifications define vendor-specific modifications to an OCI runtime specification for a container being created. An empty list indicates that CDI device injection is disabled. Note that since using CDI device injection requires the daemon to have experimental enabled. For non-experimental daemons an empty list will always be returned. */ export type SystemInfoCDISpecDirsList = Array; /** The namespaces that the daemon uses for running containers and plugins in containerd. These namespaces can be configured in the daemon configuration, and are considered to be used exclusively by the daemon, Tampering with the containerd instance may cause unexpected behavior. As these namespaces are considered to be exclusively accessed by the daemon, it is not recommended to change these values, or to change them to a value that is used by other systems, such as cri-containerd. */ export interface ContainerdInfoNamespaces { /** The default containerd namespace used for containers managed by the daemon. The default namespace for containers is "moby", but will be suffixed with the `.` of the remapped `root` if user-namespaces are enabled and the containerd image-store is used. */ Containers?: string | undefined; /** The default containerd namespace used for plugins managed by the daemon. The default namespace for plugins is "plugins.moby", but will be suffixed with the `.` of the remapped `root` if user-namespaces are enabled and the containerd image-store is used. */ Plugins?: string | undefined; } /** Information for connecting to the containerd instance that is used by the daemon. This is included for debugging purposes only. */ export interface ContainerdInfo { /** The address of the containerd socket. */ Address?: string | undefined; /** The namespaces that the daemon uses for running containers and plugins in containerd. These namespaces can be configured in the daemon configuration, and are considered to be used exclusively by the daemon, Tampering with the containerd instance may cause unexpected behavior. As these namespaces are considered to be exclusively accessed by the daemon, it is not recommended to change these values, or to change them to a value that is used by other systems, such as cri-containerd. */ Namespaces?: ContainerdInfoNamespaces | undefined; } export interface SystemInfo { /** Unique identifier of the daemon.


> **Note**: The format of the ID itself is not part of the API, and > should not be considered stable. */ ID?: string | undefined; /** Total number of containers on the host. */ Containers?: number | undefined; /** Number of containers with status `"running"`. */ ContainersRunning?: number | undefined; /** Number of containers with status `"paused"`. */ ContainersPaused?: number | undefined; /** Number of containers with status `"stopped"`. */ ContainersStopped?: number | undefined; /** Total number of images on the host. Both _tagged_ and _untagged_ (dangling) images are counted. */ Images?: number | undefined; /** Name of the storage driver in use. */ Driver?: string | undefined; /** Information specific to the storage driver, provided as "label" / "value" pairs. This information is provided by the storage driver, and formatted in a way consistent with the output of `docker info` on the command line.


> **Note**: The information returned in this field, including the > formatting of values and labels, should not be considered stable, > and may change without notice. */ DriverStatus?: SystemInfoDriverStatusList | undefined; /** Root directory of persistent Docker state. Defaults to `/var/lib/docker` on Linux, and `C:\ProgramData\docker` on Windows. */ DockerRootDir?: string | undefined; Plugins?: PluginsInfo | undefined; /** Indicates if the host has memory limit support enabled. */ MemoryLimit?: boolean | undefined; /** Indicates if the host has memory swap limit support enabled. */ SwapLimit?: boolean | undefined; /** Indicates if CPU CFS(Completely Fair Scheduler) period is supported by the host. */ CpuCfsPeriod?: boolean | undefined; /** Indicates if CPU CFS(Completely Fair Scheduler) quota is supported by the host. */ CpuCfsQuota?: boolean | undefined; /** Indicates if CPU Shares limiting is supported by the host. */ CPUShares?: boolean | undefined; /** Indicates if CPUsets (cpuset.cpus, cpuset.mems) are supported by the host. See [cpuset(7)](https://www.kernel.org/doc/Documentation/cgroup-v1/cpusets.txt) */ CPUSet?: boolean | undefined; /** Indicates if the host kernel has PID limit support enabled. */ PidsLimit?: boolean | undefined; /** Indicates if OOM killer disable is supported on the host. */ OomKillDisable?: boolean | undefined; /** Indicates IPv4 forwarding is enabled. */ IPv4Forwarding?: boolean | undefined; /** Indicates if the daemon is running in debug-mode / with debug-level logging enabled. */ Debug?: boolean | undefined; /** The total number of file Descriptors in use by the daemon process. This information is only returned if debug-mode is enabled. */ NFd?: number | undefined; /** The number of goroutines that currently exist. This information is only returned if debug-mode is enabled. */ NGoroutines?: number | undefined; /** Current system-time in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds. */ SystemTime?: string | undefined; /** The logging driver to use as a default for new containers. */ LoggingDriver?: string | undefined; /** The driver to use for managing cgroups. */ CgroupDriver?: SystemInfoCgroupDriver | undefined; /** The version of the cgroup. */ CgroupVersion?: SystemInfoCgroupVersion | undefined; /** Number of event listeners subscribed. */ NEventsListener?: number | undefined; /** Kernel version of the host. On Linux, this information obtained from `uname`. On Windows this information is queried from the HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\ registry value, for example _"10.0 14393 (14393.1198.amd64fre.rs1_release_sec.170427-1353)"_. */ KernelVersion?: string | undefined; /** Name of the host's operating system, for example: "Ubuntu 24.04 LTS" or "Windows Server 2016 Datacenter" */ OperatingSystem?: string | undefined; /** Version of the host's operating system


> **Note**: The information returned in this field, including its > very existence, and the formatting of values, should not be considered > stable, and may change without notice. */ OSVersion?: string | undefined; /** Generic type of the operating system of the host, as returned by the Go runtime (`GOOS`). Currently returned values are "linux" and "windows". A full list of possible values can be found in the [Go documentation](https://go.dev/doc/install/source#environment). */ OSType?: string | undefined; /** Hardware architecture of the host, as returned by the operating system. This is equivalent to the output of `uname -m` on Linux. Unlike `Arch` (from `/version`), this reports the machine's native architecture, which can differ from the Go runtime architecture when running a binary compiled for a different architecture (for example, a 32-bit binary running on 64-bit hardware). */ Architecture?: string | undefined; /** The number of logical CPUs usable by the daemon. The number of available CPUs is checked by querying the operating system when the daemon starts. Changes to operating system CPU allocation after the daemon is started are not reflected. */ NCPU?: number | undefined; /** Total amount of physical memory available on the host, in bytes. */ MemTotal?: number | undefined; /** Address / URL of the index server that is used for image search, and as a default for user authentication for Docker Hub and Docker Cloud. */ IndexServerAddress?: string | undefined; RegistryConfig?: RegistryServiceConfig | null | undefined; GenericResources?: GenericResources | undefined; /** HTTP-proxy configured for the daemon. This value is obtained from the [`HTTP_PROXY`](https://www.gnu.org/software/wget/manual/html_node/Proxies.html) environment variable. Credentials ([user info component](https://tools.ietf.org/html/rfc3986#section-3.2.1)) in the proxy URL are masked in the API response. Containers do not automatically inherit this configuration. */ HttpProxy?: string | undefined; /** HTTPS-proxy configured for the daemon. This value is obtained from the [`HTTPS_PROXY`](https://www.gnu.org/software/wget/manual/html_node/Proxies.html) environment variable. Credentials ([user info component](https://tools.ietf.org/html/rfc3986#section-3.2.1)) in the proxy URL are masked in the API response. Containers do not automatically inherit this configuration. */ HttpsProxy?: string | undefined; /** Comma-separated list of domain extensions for which no proxy should be used. This value is obtained from the [`NO_PROXY`](https://www.gnu.org/software/wget/manual/html_node/Proxies.html) environment variable. Containers do not automatically inherit this configuration. */ NoProxy?: string | undefined; /** Hostname of the host. */ Name?: string | undefined; /** User-defined labels (key/value metadata) as set on the daemon.


> **Note**: When part of a Swarm, nodes can both have _daemon_ labels, > set through the daemon configuration, and _node_ labels, set from a > manager node in the Swarm. Node labels are not included in this > field. Node labels can be retrieved using the `/nodes/(id)` endpoint > on a manager node in the Swarm. */ Labels?: SystemInfoLabelsList | undefined; /** Indicates if experimental features are enabled on the daemon. */ ExperimentalBuild?: boolean | undefined; /** Version string of the daemon. */ ServerVersion?: string | undefined; /** List of [OCI compliant](https://github.com/opencontainers/runtime-spec) runtimes configured on the daemon. Keys hold the "name" used to reference the runtime. The Docker daemon relies on an OCI compliant runtime (invoked via the `containerd` daemon) as its interface to the Linux kernel namespaces, cgroups, and SELinux. The default runtime is `runc`, and automatically configured. Additional runtimes can be configured by the user and will be listed here. */ Runtimes?: SystemInfoRuntimesMap | undefined; /** Name of the default OCI runtime that is used when starting containers. The default can be overridden per-container at create time. */ DefaultRuntime?: string | undefined; Swarm?: SwarmInfo | undefined; /** Indicates if live restore is enabled. If enabled, containers are kept running when the daemon is shutdown or upon daemon start if running containers are detected. */ LiveRestoreEnabled?: boolean | undefined; /** Represents the isolation technology to use as a default for containers. The supported values are platform-specific. If no isolation value is specified on daemon start, on Windows client, the default is `hyperv`, and on Windows server, the default is `process`. This option is currently not used on other platforms. */ Isolation?: SystemInfoIsolation | undefined; /** Name and, optional, path of the `docker-init` binary. If the path is omitted, the daemon searches the host's `$PATH` for the binary and uses the first result. */ InitBinary?: string | undefined; ContainerdCommit?: Commit | undefined; RuncCommit?: Commit | undefined; InitCommit?: Commit | undefined; /** List of security features that are enabled on the daemon, such as apparmor, seccomp, SELinux, user-namespaces (userns), rootless and no-new-privileges. Additional configuration options for each security feature may be present, and are included as a comma-separated list of key/value pairs. */ SecurityOptions?: SystemInfoSecurityOptionsList | undefined; /** Reports a summary of the product license on the daemon. If a commercial license has been applied to the daemon, information such as number of nodes, and expiration are included. */ ProductLicense?: string | undefined; /** List of custom default address pools for local networks, which can be specified in the daemon.json file or dockerd option. Example: a Base "10.10.0.0/16" with Size 24 will define the set of 256 10.10.[0-255].0/24 address pools. */ DefaultAddressPools?: SystemInfoDefaultAddressPoolsList | undefined; FirewallBackend?: FirewallInfo | null | undefined; /** List of devices discovered by device drivers. Each device includes information about its source driver, kind, name, and additional driver-specific attributes. */ DiscoveredDevices?: SystemInfoDiscoveredDevicesList | undefined; NRI?: NRIInfo | null | undefined; /** List of warnings / informational messages about missing features, or issues related to the daemon configuration. These messages can be printed by the client as information to the user. */ Warnings?: SystemInfoWarningsList | undefined; /** List of directories where (Container Device Interface) CDI specifications are located. These specifications define vendor-specific modifications to an OCI runtime specification for a container being created. An empty list indicates that CDI device injection is disabled. Note that since using CDI device injection requires the daemon to have experimental enabled. For non-experimental daemons an empty list will always be returned. */ CDISpecDirs?: SystemInfoCDISpecDirsList | undefined; Containerd?: ContainerdInfo | null | undefined; } export interface SystemVersion2Request {} export interface SystemVersionPlatform { Name: string; } export interface SystemVersionComponentsItem { /** Name of the component */ Name: string; /** Version of the component */ Version: string; /** Key/value pairs of strings with additional information about the component. These values are intended for informational purposes only, and their content is not defined, and not part of the API specification. These messages can be printed by the client as information to the user. */ Details?: unknown | null | undefined; } /** Information about system components */ export type SystemVersionComponentsList = Array; /** Response of Engine API: GET "/version" */ export interface SystemVersion { Platform?: SystemVersionPlatform | undefined; /** Information about system components */ Components?: SystemVersionComponentsList | undefined; /** The version of the daemon */ Version?: string | undefined; /** The default (and highest) API version that is supported by the daemon */ ApiVersion?: string | undefined; /** The minimum API version that is supported by the daemon */ MinAPIVersion?: string | undefined; /** The Git commit of the source code that was used to build the daemon */ GitCommit?: string | undefined; /** The version Go used to compile the daemon, and the version of the Go runtime in use. */ GoVersion?: string | undefined; /** The operating system that the daemon is running on ("linux" or "windows") */ Os?: string | undefined; /** Architecture of the daemon, as returned by the Go runtime (`GOARCH`). A full list of possible values can be found in the [Go documentation](https://go.dev/doc/install/source#environment). */ Arch?: string | undefined; /** The kernel version (`uname -r`) that the daemon is running on. This field is omitted when empty. */ KernelVersion?: string | undefined; /** Indicates if the daemon is started with experimental features enabled. This field is omitted when empty / false. */ Experimental?: boolean | undefined; /** The date and time that the daemon was compiled. */ BuildTime?: string | undefined; } export interface TaskInspectRequest { /** ID of the task */ id: string; } export interface TaskLogsRequest { /** ID of the task */ id: string; /** Show task context and extra details provided to logs. */ details?: boolean | undefined; /** Keep connection after returning logs. */ follow?: boolean | undefined; /** Return logs from `stdout` */ stdout?: boolean | undefined; /** Return logs from `stderr` */ stderr?: boolean | undefined; /** Only return logs since this time, as a UNIX timestamp */ since?: number | undefined; /** Add timestamps to every log line */ timestamps?: boolean | undefined; /** Only return this number of log lines from the end of the logs. Specify as an integer or `all` to output all log lines. */ tail?: string | undefined; } export type TaskLogsResponse = string; export interface UnlockSwarmRequest { /** The swarm's unlock key. */ UnlockKey?: string | undefined; } export interface UnlockSwarmResponse {} export interface UnpauseContainerRequest { /** ID or name of the container */ id: string; } export interface UnpauseContainerResponse {} /** User-defined key/value metadata. */ export type UpdateConfigRequestLabelsMap = { [key: string]: string | undefined }; export interface UpdateConfigRequest { /** The ID or name of the config */ id: string; /** The version number of the config object being updated. This is required to avoid conflicting writes. */ version: number; /** User-defined name of the config. */ Name?: string | undefined; /** User-defined key/value metadata. */ Labels?: UpdateConfigRequestLabelsMap | undefined; /** Data is the data to store as a config, formatted as a standard base64-encoded ([RFC 4648](https://tools.ietf.org/html/rfc4648#section-4)) string. The maximum allowed size is 1000KB, as defined in [MaxConfigSize](https://pkg.go.dev/github.com/moby/swarmkit/v2@v2.0.0-20250103191802-8c1959736554/manager/controlapi#MaxConfigSize). */ Data?: string | undefined; /** Templating driver, if applicable Templating controls whether and how to evaluate the config payload as a template. If no driver is set, no templating is used. */ Templating?: Driver | undefined; } export interface UpdateConfigResponse {} export type UpdateContainerRequestBlkioWeightDeviceItem = HostConfigBlkioWeightDeviceItem; /** Block IO weight (relative device weight) in the form: ``` [{"Path": "device_path", "Weight": weight}] ``` */ export type UpdateContainerRequestBlkioWeightDeviceList = Array; /** Limit read rate (bytes per second) from a device, in the form: ``` [{"Path": "device_path", "Rate": rate}] ``` */ export type UpdateContainerRequestBlkioDeviceReadBpsList = Array; /** Limit write rate (bytes per second) to a device, in the form: ``` [{"Path": "device_path", "Rate": rate}] ``` */ export type UpdateContainerRequestBlkioDeviceWriteBpsList = Array; /** Limit read rate (IO per second) from a device, in the form: ``` [{"Path": "device_path", "Rate": rate}] ``` */ export type UpdateContainerRequestBlkioDeviceReadIOpsList = Array; /** Limit write rate (IO per second) to a device, in the form: ``` [{"Path": "device_path", "Rate": rate}] ``` */ export type UpdateContainerRequestBlkioDeviceWriteIOpsList = Array; /** A list of devices to add to the container. */ export type UpdateContainerRequestDevicesList = Array; /** a list of cgroup rules to apply to the container */ export type UpdateContainerRequestDeviceCgroupRulesList = Array; /** A list of requests for devices to be sent to device drivers. */ export type UpdateContainerRequestDeviceRequestsList = Array; export type UpdateContainerRequestUlimitsItem = HostConfigUlimitsItem; /** A list of resource limits to set in the container. For example: ``` {"Name": "nofile", "Soft": 1024, "Hard": 2048} ``` */ export type UpdateContainerRequestUlimitsList = Array; export interface UpdateContainerRequest { /** ID or name of the container */ id: string; /** An integer value representing this container's relative CPU weight versus other containers. */ CpuShares?: number | undefined; /** Memory limit in bytes. */ Memory?: number | undefined; /** Path to `cgroups` under which the container's `cgroup` is created. If the path is not absolute, the path is considered to be relative to the `cgroups` path of the init process. Cgroups are created if they do not already exist. */ CgroupParent?: string | undefined; /** Block IO weight (relative weight). */ BlkioWeight?: number | undefined; /** Block IO weight (relative device weight) in the form: ``` [{"Path": "device_path", "Weight": weight}] ``` */ BlkioWeightDevice?: UpdateContainerRequestBlkioWeightDeviceList | undefined; /** Limit read rate (bytes per second) from a device, in the form: ``` [{"Path": "device_path", "Rate": rate}] ``` */ BlkioDeviceReadBps?: UpdateContainerRequestBlkioDeviceReadBpsList | undefined; /** Limit write rate (bytes per second) to a device, in the form: ``` [{"Path": "device_path", "Rate": rate}] ``` */ BlkioDeviceWriteBps?: UpdateContainerRequestBlkioDeviceWriteBpsList | undefined; /** Limit read rate (IO per second) from a device, in the form: ``` [{"Path": "device_path", "Rate": rate}] ``` */ BlkioDeviceReadIOps?: UpdateContainerRequestBlkioDeviceReadIOpsList | undefined; /** Limit write rate (IO per second) to a device, in the form: ``` [{"Path": "device_path", "Rate": rate}] ``` */ BlkioDeviceWriteIOps?: UpdateContainerRequestBlkioDeviceWriteIOpsList | undefined; /** The length of a CPU period in microseconds. */ CpuPeriod?: number | undefined; /** Microseconds of CPU time that the container can get in a CPU period. */ CpuQuota?: number | undefined; /** The length of a CPU real-time period in microseconds. Set to 0 to allocate no time allocated to real-time tasks. */ CpuRealtimePeriod?: number | undefined; /** The length of a CPU real-time runtime in microseconds. Set to 0 to allocate no time allocated to real-time tasks. */ CpuRealtimeRuntime?: number | undefined; /** CPUs in which to allow execution (e.g., `0-3`, `0,1`). */ CpusetCpus?: string | undefined; /** Memory nodes (MEMs) in which to allow execution (0-3, 0,1). Only effective on NUMA systems. */ CpusetMems?: string | undefined; /** A list of devices to add to the container. */ Devices?: UpdateContainerRequestDevicesList | undefined; /** a list of cgroup rules to apply to the container */ DeviceCgroupRules?: UpdateContainerRequestDeviceCgroupRulesList | undefined; /** A list of requests for devices to be sent to device drivers. */ DeviceRequests?: UpdateContainerRequestDeviceRequestsList | undefined; /** Memory soft limit in bytes. */ MemoryReservation?: number | undefined; /** Total memory limit (memory + swap). Set as `-1` to enable unlimited swap. */ MemorySwap?: number | undefined; /** Tune a container's memory swappiness behavior. Accepts an integer between 0 and 100. */ MemorySwappiness?: number | undefined; /** CPU quota in units of 10-9 CPUs. */ NanoCpus?: number | undefined; /** Disable OOM Killer for the container. */ OomKillDisable?: boolean | undefined; /** Run an init inside the container that forwards signals and reaps processes. This field is omitted if empty, and the default (as configured on the daemon) is used. */ Init?: boolean | null | undefined; /** Tune a container's PIDs limit. Set `0` or `-1` for unlimited, or `null` to not change. */ PidsLimit?: number | null | undefined; /** A list of resource limits to set in the container. For example: ``` {"Name": "nofile", "Soft": 1024, "Hard": 2048} ``` */ Ulimits?: UpdateContainerRequestUlimitsList | undefined; /** The number of usable CPUs (Windows only). On Windows Server containers, the processor resource controls are mutually exclusive. The order of precedence is `CPUCount` first, then `CPUShares`, and `CPUPercent` last. */ CpuCount?: number | undefined; /** The usable percentage of the available CPUs (Windows only). On Windows Server containers, the processor resource controls are mutually exclusive. The order of precedence is `CPUCount` first, then `CPUShares`, and `CPUPercent` last. */ CpuPercent?: number | undefined; /** Maximum IOps for the container system drive (Windows only) */ IOMaximumIOps?: number | undefined; /** Maximum IO in bytes per second for the container system drive (Windows only). */ IOMaximumBandwidth?: number | undefined; RestartPolicy?: RestartPolicy | undefined; } /** Warnings encountered when updating the container. */ export type ContainerUpdateResponseWarningsList = Array; /** Response for a successful container-update. */ export interface ContainerUpdateResponse { /** Warnings encountered when updating the container. */ Warnings?: ContainerUpdateResponseWarningsList | undefined; } /** User-defined key/value metadata. */ export type UpdateNodeRequestLabelsMap = { [key: string]: string | undefined }; /** Role of the node. */ export type UpdateNodeRequestRole = "worker" | "manager"; /** Availability of the node. */ export type UpdateNodeRequestAvailability = "active" | "pause" | "drain"; export interface UpdateNodeRequest { /** The ID of the node */ id: string; /** The version number of the node object being updated. This is required to avoid conflicting writes. */ version: number; /** Name for the node. */ Name?: string | undefined; /** User-defined key/value metadata. */ Labels?: UpdateNodeRequestLabelsMap | undefined; /** Role of the node. */ Role?: UpdateNodeRequestRole | (string & {}) | undefined; /** Availability of the node. */ Availability?: UpdateNodeRequestAvailability | (string & {}) | undefined; } export interface UpdateNodeResponse {} /** User-defined key/value metadata. */ export type UpdateSecretRequestLabelsMap = { [key: string]: string | undefined }; export interface UpdateSecretRequest { /** The ID or name of the secret */ id: string; /** The version number of the secret object being updated. This is required to avoid conflicting writes. */ version: number; /** User-defined name of the secret. */ Name?: string | undefined; /** User-defined key/value metadata. */ Labels?: UpdateSecretRequestLabelsMap | undefined; /** Data is the data to store as a secret, formatted as a standard base64-encoded ([RFC 4648](https://tools.ietf.org/html/rfc4648#section-4)) string. It must be empty if the Driver field is set, in which case the data is loaded from an external secret store. The maximum allowed size is 500KB, as defined in [MaxSecretSize](https://pkg.go.dev/github.com/moby/swarmkit/v2@v2.0.0/api/validation#MaxSecretSize). This field is only used to _create_ a secret, and is not returned by other endpoints. */ Data?: string | undefined; /** Name of the secrets driver used to fetch the secret's value from an external secret store. */ Driver?: Driver | undefined; /** Templating driver, if applicable Templating controls whether and how to evaluate the config payload as a template. If no driver is set, no templating is used. */ Templating?: Driver | undefined; } export interface UpdateSecretResponse {} export type UpdateServiceRequestRegistryAuthFrom = "spec" | "previous-spec"; /** User-defined key/value metadata. */ export type UpdateServiceRequestLabelsMap = { [key: string]: string | undefined }; export type UpdateServiceRequestModeReplicated = CreateServiceRequestModeReplicated; /** The mode used for services with a finite number of tasks that run to a completed state. */ export type UpdateServiceRequestModeReplicatedJob = CreateServiceRequestModeReplicatedJob; /** Scheduling mode for the service. */ export type UpdateServiceRequestMode = CreateServiceRequestMode; /** Action to take if an updated task fails to run, or stops running during the update. */ export type UpdateServiceRequestUpdateConfigFailureAction = "continue" | "pause" | "rollback"; /** The order of operations when rolling out an updated task. Either the old task is shut down before the new task is started, or the new task is started before the old task is shut down. */ export type UpdateServiceRequestUpdateConfigOrder = "stop-first" | "start-first"; /** Specification for the update strategy of the service. */ export interface UpdateServiceRequestUpdateConfig { /** Maximum number of tasks to be updated in one iteration (0 means unlimited parallelism). */ Parallelism?: number | undefined; /** Amount of time between updates, in nanoseconds. */ Delay?: number | undefined; /** Action to take if an updated task fails to run, or stops running during the update. */ FailureAction?: UpdateServiceRequestUpdateConfigFailureAction | (string & {}) | undefined; /** Amount of time to monitor each updated task for failures, in nanoseconds. */ Monitor?: number | undefined; /** The fraction of tasks that may fail during an update before the failure action is invoked, specified as a floating point number between 0 and 1. */ MaxFailureRatio?: number | undefined; /** The order of operations when rolling out an updated task. Either the old task is shut down before the new task is started, or the new task is started before the old task is shut down. */ Order?: UpdateServiceRequestUpdateConfigOrder | (string & {}) | undefined; } /** Action to take if an rolled back task fails to run, or stops running during the rollback. */ export type UpdateServiceRequestRollbackConfigFailureAction = "continue" | "pause"; /** The order of operations when rolling back a task. Either the old task is shut down before the new task is started, or the new task is started before the old task is shut down. */ export type UpdateServiceRequestRollbackConfigOrder = "stop-first" | "start-first"; /** Specification for the rollback strategy of the service. */ export interface UpdateServiceRequestRollbackConfig { /** Maximum number of tasks to be rolled back in one iteration (0 means unlimited parallelism). */ Parallelism?: number | undefined; /** Amount of time between rollback iterations, in nanoseconds. */ Delay?: number | undefined; /** Action to take if an rolled back task fails to run, or stops running during the rollback. */ FailureAction?: UpdateServiceRequestRollbackConfigFailureAction | (string & {}) | undefined; /** Amount of time to monitor each rolled back task for failures, in nanoseconds. */ Monitor?: number | undefined; /** The fraction of tasks that may fail during a rollback before the failure action is invoked, specified as a floating point number between 0 and 1. */ MaxFailureRatio?: number | undefined; /** The order of operations when rolling back a task. Either the old task is shut down before the new task is started, or the new task is started before the old task is shut down. */ Order?: UpdateServiceRequestRollbackConfigOrder | (string & {}) | undefined; } /** Specifies which networks the service should attach to. Deprecated: This field is deprecated since v1.44. The Networks field in TaskSpec should be used instead. */ export type UpdateServiceRequestNetworksList = Array; export interface UpdateServiceRequest { /** ID or name of service. */ id: string; /** The version number of the service object being updated. This is required to avoid conflicting writes. This version number should be the value as currently set on the service *before* the update. You can find the current version by calling `GET /services/{id}` */ version: number; /** If the `X-Registry-Auth` header is not specified, this parameter indicates where to find registry authorization credentials. */ registryAuthFrom?: UpdateServiceRequestRegistryAuthFrom | (string & {}) | undefined; /** Set to this parameter to `previous` to cause a server-side rollback to the previous service spec. The supplied spec will be ignored in this case. */ rollback?: string | undefined; /** A base64url-encoded auth configuration for pulling from private registries. Refer to the [authentication section](#section/Authentication) for details. */ xRegistryAuth?: string | Redacted.Redacted | undefined; /** Name of the service. */ Name?: string | undefined; /** User-defined key/value metadata. */ Labels?: UpdateServiceRequestLabelsMap | undefined; TaskTemplate?: TaskSpec | undefined; /** Scheduling mode for the service. */ Mode?: CreateServiceRequestMode | undefined; /** Specification for the update strategy of the service. */ UpdateConfig?: UpdateServiceRequestUpdateConfig | undefined; /** Specification for the rollback strategy of the service. */ RollbackConfig?: UpdateServiceRequestRollbackConfig | undefined; /** Specifies which networks the service should attach to. Deprecated: This field is deprecated since v1.44. The Networks field in TaskSpec should be used instead. */ Networks?: UpdateServiceRequestNetworksList | undefined; EndpointSpec?: EndpointSpec | undefined; } /** Optional warning messages */ export type ServiceUpdateResponseWarningsList = Array; export interface ServiceUpdateResponse { /** Optional warning messages */ Warnings?: ServiceUpdateResponseWarningsList | undefined; } /** User-defined key/value metadata. */ export type UpdateSwarmRequestLabelsMap = { [key: string]: string | undefined }; /** Orchestration configuration. */ export type UpdateSwarmRequestOrchestration = SwarmSpecOrchestration; /** Raft configuration. */ export type UpdateSwarmRequestRaft = SwarmSpecRaft; /** Dispatcher configuration. */ export type UpdateSwarmRequestDispatcher = SwarmSpecDispatcher; /** Protocol for communication with the external CA (currently only `cfssl` is supported). */ export type UpdateSwarmRequestCAConfigExternalCAsItemProtocol = "cfssl"; /** An object with key/value pairs that are interpreted as protocol-specific options for the external CA driver. */ export type UpdateSwarmRequestCAConfigExternalCAsItemOptionsMap = { [key: string]: string | undefined; }; export interface UpdateSwarmRequestCAConfigExternalCAsItem { /** Protocol for communication with the external CA (currently only `cfssl` is supported). */ Protocol?: UpdateSwarmRequestCAConfigExternalCAsItemProtocol | (string & {}) | undefined; /** URL where certificate signing requests should be sent. */ URL?: string | undefined; /** An object with key/value pairs that are interpreted as protocol-specific options for the external CA driver. */ Options?: UpdateSwarmRequestCAConfigExternalCAsItemOptionsMap | undefined; /** The root CA certificate (in PEM format) this external CA uses to issue TLS certificates (assumed to be to the current swarm root CA certificate if not provided). */ CACert?: string | undefined; } /** Configuration for forwarding signing requests to an external certificate authority. */ export type UpdateSwarmRequestCAConfigExternalCAsList = Array; /** CA configuration. */ export interface UpdateSwarmRequestCAConfig { /** The duration node certificates are issued for. */ NodeCertExpiry?: number | undefined; /** Configuration for forwarding signing requests to an external certificate authority. */ ExternalCAs?: UpdateSwarmRequestCAConfigExternalCAsList | undefined; /** The desired signing CA certificate for all swarm node TLS leaf certificates, in PEM format. */ SigningCACert?: string | undefined; /** The desired signing CA key for all swarm node TLS leaf certificates, in PEM format. */ SigningCAKey?: string | undefined; /** An integer whose purpose is to force swarm to generate a new signing CA certificate and key, if none have been specified in `SigningCACert` and `SigningCAKey` */ ForceRotate?: number | undefined; } /** Parameters related to encryption-at-rest. */ export type UpdateSwarmRequestEncryptionConfig = SwarmSpecEncryptionConfig; /** Driver-specific options for the selected log driver, specified as key/value pairs. */ export type UpdateSwarmRequestTaskDefaultsLogDriverOptionsMap = { [key: string]: string | undefined; }; /** The log driver to use for tasks created in the orchestrator if unspecified by a service. Updating this value only affects new tasks. Existing tasks continue to use their previously configured log driver until recreated. */ export interface UpdateSwarmRequestTaskDefaultsLogDriver { /** The log driver to use as a default for new tasks. */ Name?: string | undefined; /** Driver-specific options for the selected log driver, specified as key/value pairs. */ Options?: UpdateSwarmRequestTaskDefaultsLogDriverOptionsMap | undefined; } /** Defaults for creating tasks in this cluster. */ export interface UpdateSwarmRequestTaskDefaults { /** The log driver to use for tasks created in the orchestrator if unspecified by a service. Updating this value only affects new tasks. Existing tasks continue to use their previously configured log driver until recreated. */ LogDriver?: UpdateSwarmRequestTaskDefaultsLogDriver | undefined; } export interface UpdateSwarmRequest { /** The version number of the swarm object being updated. This is required to avoid conflicting writes. */ version: number; /** Rotate the worker join token. */ rotateWorkerToken?: boolean | undefined; /** Rotate the manager join token. */ rotateManagerToken?: boolean | undefined; /** Rotate the manager unlock key. */ rotateManagerUnlockKey?: boolean | undefined; /** Name of the swarm. */ Name?: string | undefined; /** User-defined key/value metadata. */ Labels?: UpdateSwarmRequestLabelsMap | undefined; /** Orchestration configuration. */ Orchestration?: SwarmSpecOrchestration | null | undefined; /** Raft configuration. */ Raft?: SwarmSpecRaft | undefined; /** Dispatcher configuration. */ Dispatcher?: SwarmSpecDispatcher | null | undefined; /** CA configuration. */ CAConfig?: UpdateSwarmRequestCAConfig | null | undefined; /** Parameters related to encryption-at-rest. */ EncryptionConfig?: SwarmSpecEncryptionConfig | undefined; /** Defaults for creating tasks in this cluster. */ TaskDefaults?: UpdateSwarmRequestTaskDefaults | undefined; } export interface UpdateSwarmResponse {} export interface UpdateVolumeRequest { /** The name or ID of the volume */ name: string; /** The version number of the volume being updated. This is required to avoid conflicting writes. Found in the volume's `ClusterVolume` field. */ version: number; Spec?: ClusterVolumeSpec | undefined; } export interface UpdateVolumeResponse {} export interface VolumeInspectRequest { /** Volume name or ID */ name: string; } export interface VolumePruneRequest { /** Filters to process on the prune list, encoded as JSON (a `map[string][]string`). Available filters: - `label` (`label=`, `label==`, `label!=`, or `label!==`) Prune volumes with (or without, in case `label!=...` is used) the specified labels. - `all` (`all=true`) - Consider all (local) volumes for pruning and not just anonymous volumes. */ filters?: string | undefined; } /** Volumes that were deleted */ export type VolumePruneResponseVolumesDeletedList = Array; export interface VolumePruneResponse { /** Volumes that were deleted */ VolumesDeleted?: VolumePruneResponseVolumesDeletedList | undefined; /** Disk space reclaimed in bytes */ SpaceReclaimed?: number | undefined; } export type WaitContainerRequestCondition = "not-running" | "next-exit" | "removed"; export interface WaitContainerRequest { /** ID or name of the container */ id: string; /** Wait until a container state reaches the given condition. Defaults to `not-running` if omitted or empty. */ condition?: WaitContainerRequestCondition | (string & {}) | undefined; } /** container waiting error, if any */ export interface ContainerWaitExitError { /** Details of an error */ Message?: string | undefined; } /** OK response to ContainerWait operation */ export interface ContainerWaitResponse { /** Exit code of the container */ StatusCode: number; Error?: ContainerWaitExitError | undefined; } /** Represents an error. */ export interface ErrorResponse { /** The error message. */ message: string; } export type ArchiveContainerError = BadRequest | NotFound | DockerOpError; /** Get an archive of a filesystem resource in a container Get a tar archive of a resource in the filesystem of container id. */ export const archiveContainer: API.OperationMethod< ArchiveContainerRequest, ArchiveContainerResponse, ArchiveContainerError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(2048, __c64, 0) as any as S.Schema, output: __S(2080, __c65, 0) as any as S.Schema, errors: [BadRequest, NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "ArchiveContainer", })); export type AttachContainerError = BadRequest | NotFound | DockerOpError; /** Attach to a container Attach to a container to read its output or send it input. You can attach to the same container multiple times and you can reattach to containers that have been detached. Either the `stream` or `logs` parameter must be `true` for this endpoint to do anything. See the [documentation for the `docker attach` command](https://docs.docker.com/engine/reference/commandline/attach/) for more details. ### Hijacking This endpoint hijacks the HTTP connection to transport `stdin`, `stdout`, and `stderr` on the same socket. This is the response from the daemon for an attach request: ``` HTTP/1.1 200 OK Content-Type: application/vnd.docker.raw-stream [STREAM] ``` After the headers and two new lines, the TCP connection can now be used for raw, bidirectional communication between the client and server. To hint potential proxies about connection hijacking, the Docker client can also optionally send connection upgrade headers. For example, the client sends this request to upgrade the connection: ``` POST /containers/16253994b7c4/attach?stream=1&stdout=1 HTTP/1.1 Upgrade: tcp Connection: Upgrade ``` The Docker daemon will respond with a `101 UPGRADED` response, and will similarly follow with the raw stream: ``` HTTP/1.1 101 UPGRADED Content-Type: application/vnd.docker.raw-stream Connection: Upgrade Upgrade: tcp [STREAM] ``` ### Stream format When the TTY setting is disabled in [`POST /containers/create`](#operation/ContainerCreate), the HTTP Content-Type header is set to application/vnd.docker.multiplexed-stream and the stream over the hijacked connected is multiplexed to separate out `stdout` and `stderr`. The stream consists of a series of frames, each containing a header and a payload. The header contains the information which the stream writes (`stdout` or `stderr`). It also contains the size of the associated frame encoded in the last four bytes (`uint32`). It is encoded on the first eight bytes like this: ```go header := [8]byte{STREAM_TYPE, 0, 0, 0, SIZE1, SIZE2, SIZE3, SIZE4} ``` `STREAM_TYPE` can be: - 0: `stdin` (is written on `stdout`) - 1: `stdout` - 2: `stderr` `SIZE1, SIZE2, SIZE3, SIZE4` are the four bytes of the `uint32` size encoded as big endian. Following the header is the payload, which is the specified number of bytes of `STREAM_TYPE`. The simplest way to implement this protocol is the following: 1. Read 8 bytes. 2. Choose `stdout` or `stderr` depending on the first byte. 3. Extract the frame size from the last four bytes. 4. Read the extracted size and output it on the correct output. 5. Goto 1. ### Stream format when using a TTY When the TTY setting is enabled in [`POST /containers/create`](#operation/ContainerCreate), the stream is not multiplexed. The data exchanged over the hijacked connection is simply the raw data from the process PTY and client's `stdin`. */ export const attachContainer: API.OperationMethod< AttachContainerRequest, AttachContainerResponse, AttachContainerError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(2464, __c77, 0) as any as S.Schema, output: __S(2080, __c65, 0) as any as S.Schema, errors: [BadRequest, NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "AttachContainer", })); export type BuildPruneError = DockerOpError; /** Delete builder cache */ export const buildPrune: API.OperationMethod< BuildPruneRequest, BuildPruneResponse, BuildPruneError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(2816, __c88, 0) as any as S.Schema, output: __S(2817, __c88, 1) as any as S.Schema, errors: [], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "BuildPrune", })); export type CommitImageError = NotFound | DockerOpError; /** Create a new image from a container */ export const commitImage: API.OperationMethod< CommitImageRequest, IDResponse, CommitImageError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(3424, __c107, 0) as any as S.Schema, output: __S(3520, __c110, 0) as any as S.Schema, errors: [NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "CommitImage", })); export type ConfigInspectError = NotFound | DockerOpError; /** Inspect a config */ export const configInspect: API.OperationMethod< ConfigInspectRequest, Config, ConfigInspectError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(3904, __c122, 0) as any as S.Schema, output: __S(4001, __c125, 1) as any as S.Schema, errors: [NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "ConfigInspect", })); export type ConnectNetworkError = BadRequest | Forbidden | NotFound | DockerOpError; /** Connect a container to a network The network must be either a local-scoped network or a swarm-scoped network with the `attachable` option set. A network cannot be re-attached to a running container */ export const connectNetwork: API.OperationMethod< ConnectNetworkRequest, ConnectNetworkResponse, ConnectNetworkError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(4416, __c138, 0) as any as S.Schema, output: __S(2080, __c65, 0) as any as S.Schema, errors: [BadRequest, Forbidden, NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "ConnectNetwork", })); export type ContainerAttachWebsocketError = BadRequest | NotFound | DockerOpError; /** Attach to a container via a websocket */ export const containerAttachWebsocket: API.OperationMethod< ContainerAttachWebsocketRequest, ContainerAttachWebsocketResponse, ContainerAttachWebsocketError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(32, __c1, 0) as any as S.Schema, output: __S(2080, __c65, 0) as any as S.Schema, errors: [BadRequest, NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "ContainerAttachWebsocket", })); export type ContainerChangesError = NotFound | DockerOpError; /** Get changes on a container's filesystem Returns which files in a container's filesystem have been added, deleted, or modified. The `Kind` of modification can be one of: - `0`: Modified ("C") - `1`: Added ("A") - `2`: Deleted ("D") */ export const containerChanges: API.OperationMethod< ContainerChangesRequest, ContainerChangesResponse, ContainerChangesError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(416, __c13, 0) as any as S.Schema, output: __S(419, __c13, 3) as any as S.Schema, errors: [NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "ContainerChanges", })); export type ContainerInspectError = NotFound | DockerOpError; /** Inspect a container Return low-level information about a container. */ export const containerInspect: API.OperationMethod< ContainerInspectRequest, ContainerInspectResponse, ContainerInspectError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(448, __c14, 0) as any as S.Schema, output: __S(458, __c14, 10) as any as S.Schema, errors: [NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "ContainerInspect", })); export type ContainerLogsError = NotFound | DockerOpError; /** Get container logs Get `stdout` and `stderr` logs from a container. Note: This endpoint works only for containers with the `json-file` or `journald` logging driver. */ export const containerLogs: API.OperationMethod< ContainerLogsRequest, ContainerLogsResponse, ContainerLogsError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(832, __c26, 0) as any as S.Schema, output: __S(864, __c27, 0) as any as S.Schema, errors: [NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "ContainerLogs", })); export type ContainerPruneError = DockerOpError; /** Delete stopped containers */ export const containerPrune: API.OperationMethod< ContainerPruneRequest, ContainerPruneResponse, ContainerPruneError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(896, __c28, 0) as any as S.Schema, output: __S(897, __c28, 1) as any as S.Schema, errors: [], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "ContainerPrune", })); export type ContainerStatsError = NotFound | DockerOpError; /** Get container stats based on resource usage This endpoint returns a live stream of a container's resource usage statistics. The `precpu_stats` is the CPU statistic of the *previous* read, and is used to calculate the CPU usage percentage. It is not an exact copy of the `cpu_stats` field. If either `precpu_stats.online_cpus` or `cpu_stats.online_cpus` is nil then for compatibility with older daemons the length of the corresponding `cpu_usage.percpu_usage` array should be used. On a cgroup v2 host, the following fields are not set * `blkio_stats`: all fields other than `io_service_bytes_recursive` * `cpu_stats`: `cpu_usage.percpu_usage` * `memory_stats`: `max_usage` and `failcnt` Also, `memory_stats.stats` fields are incompatible with cgroup v1. To calculate the values shown by the `stats` command of the docker cli tool the following formulas can be used: * used_memory = `memory_stats.usage - memory_stats.stats.cache` (cgroups v1) * used_memory = `memory_stats.usage - memory_stats.stats.inactive_file` (cgroups v2) * available_memory = `memory_stats.limit` * Memory usage % = `(used_memory / available_memory) * 100.0` * cpu_delta = `cpu_stats.cpu_usage.total_usage - precpu_stats.cpu_usage.total_usage` * system_cpu_delta = `cpu_stats.system_cpu_usage - precpu_stats.system_cpu_usage` * number_cpus = `length(cpu_stats.cpu_usage.percpu_usage)` or `cpu_stats.online_cpus` * CPU usage % = `(cpu_delta / system_cpu_delta) * number_cpus * 100.0` */ export const containerStats: API.OperationMethod< ContainerStatsRequest, ContainerStatsResponse, ContainerStatsError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(928, __c29, 0) as any as S.Schema, output: __S(941, __c29, 13) as any as S.Schema, errors: [NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "ContainerStats", })); export type ContainerTopError = NotFound | DockerOpError; /** List processes running inside a container On Unix systems, this is done by running the `ps` command. This endpoint is not supported on Windows. */ export const containerTop: API.OperationMethod< ContainerTopRequest, ContainerTopResponse, ContainerTopError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(960, __c30, 0) as any as S.Schema, output: __S(961, __c30, 1) as any as S.Schema, errors: [NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "ContainerTop", })); export type CreateConfigError = Conflict | DockerOpError; /** Create a config */ export const createConfig: API.OperationMethod< CreateConfigRequest, IDResponse, CreateConfigError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(992, __c31, 0) as any as S.Schema, output: __S(3520, __c110, 0) as any as S.Schema, errors: [Conflict], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "CreateConfig", })); export type CreateContainerError = BadRequest | NotFound | Conflict | DockerOpError; /** Create a container */ export const createContainer: API.OperationMethod< CreateContainerRequest, ContainerCreateResponse, CreateContainerError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(1025, __c32, 1) as any as S.Schema, output: __S(1026, __c32, 2) as any as S.Schema, errors: [BadRequest, NotFound, Conflict], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "CreateContainer", })); export type CreateImageError = NotFound | DockerOpError; /** Create an image Pull or import an image. */ export const createImage: API.OperationMethod< CreateImageRequest, CreateImageResponse, CreateImageError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(1056, __c33, 0) as any as S.Schema, output: __S(2080, __c65, 0) as any as S.Schema, errors: [NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "CreateImage", })); export type CreateNetworkError = BadRequest | Forbidden | NotFound | DockerOpError; /** Create a network */ export const createNetwork: API.OperationMethod< CreateNetworkRequest, NetworkCreateResponse, CreateNetworkError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(1088, __c34, 0) as any as S.Schema, output: __S(1089, __c34, 1) as any as S.Schema, errors: [BadRequest, Forbidden, NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "CreateNetwork", })); export type CreatePluginError = DockerOpError; /** Create a plugin */ export const createPlugin: API.OperationMethod< CreatePluginRequest, CreatePluginResponse, CreatePluginError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(1152, __c36, 0) as any as S.Schema, output: __S(2080, __c65, 0) as any as S.Schema, errors: [], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "CreatePlugin", })); export type CreateSecretError = Conflict | DockerOpError; /** Create a secret */ export const createSecret: API.OperationMethod< CreateSecretRequest, IDResponse, CreateSecretError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(1184, __c37, 0) as any as S.Schema, output: __S(3520, __c110, 0) as any as S.Schema, errors: [Conflict], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "CreateSecret", })); export type CreateServiceError = BadRequest | Forbidden | Conflict | DockerOpError; /** Create a service */ export const createService: API.OperationMethod< CreateServiceRequest, ServiceCreateResponse, CreateServiceError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(1216, __c38, 0) as any as S.Schema, output: __S(1217, __c38, 1) as any as S.Schema, errors: [BadRequest, Forbidden, Conflict], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "CreateService", })); export type CreateVolumeError = DockerOpError; /** Create a volume */ export const createVolume: API.OperationMethod< CreateVolumeRequest, Volume, CreateVolumeError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(1408, __c44, 0) as any as S.Schema, output: __S(1477, __c46, 5) as any as S.Schema, errors: [], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "CreateVolume", })); export type DeleteConfigError = NotFound | DockerOpError; /** Delete a config */ export const deleteConfig: API.OperationMethod< DeleteConfigRequest, DeleteConfigResponse, DeleteConfigError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(1504, __c47, 0) as any as S.Schema, output: __S(2080, __c65, 0) as any as S.Schema, errors: [NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DeleteConfig", })); export type DeleteContainerError = BadRequest | NotFound | Conflict | DockerOpError; /** Remove a container */ export const deleteContainer: API.OperationMethod< DeleteContainerRequest, DeleteContainerResponse, DeleteContainerError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(1536, __c48, 0) as any as S.Schema, output: __S(2080, __c65, 0) as any as S.Schema, errors: [BadRequest, NotFound, Conflict], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DeleteContainer", })); export type DeleteImageError = NotFound | Conflict | DockerOpError; /** Remove an image Remove an image, along with any untagged parent images that were referenced by that image. Images can't be removed if they have descendant images, are being used by a running container or are being used by a build. */ export const deleteImage: API.OperationMethod< DeleteImageRequest, DeleteImageResponse, DeleteImageError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(1568, __c49, 0) as any as S.Schema, output: __S(1569, __c49, 1) as any as S.Schema, errors: [NotFound, Conflict], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DeleteImage", })); export type DeleteNetworkError = Forbidden | NotFound | DockerOpError; /** Remove a network */ export const deleteNetwork: API.OperationMethod< DeleteNetworkRequest, DeleteNetworkResponse, DeleteNetworkError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(1632, __c51, 0) as any as S.Schema, output: __S(2080, __c65, 0) as any as S.Schema, errors: [Forbidden, NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DeleteNetwork", })); export type DeleteNodeError = NotFound | DockerOpError; /** Delete a node */ export const deleteNode: API.OperationMethod< DeleteNodeRequest, DeleteNodeResponse, DeleteNodeError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(1664, __c52, 0) as any as S.Schema, output: __S(2080, __c65, 0) as any as S.Schema, errors: [NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DeleteNode", })); export type DeletePluginError = NotFound | DockerOpError; /** Remove a plugin */ export const deletePlugin: API.OperationMethod< DeletePluginRequest, Plugin, DeletePluginError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(1696, __c53, 0) as any as S.Schema, output: __S(1742, __c54, 14) as any as S.Schema, errors: [NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DeletePlugin", })); export type DeleteSecretError = NotFound | DockerOpError; /** Delete a secret */ export const deleteSecret: API.OperationMethod< DeleteSecretRequest, DeleteSecretResponse, DeleteSecretError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(1760, __c55, 0) as any as S.Schema, output: __S(2080, __c65, 0) as any as S.Schema, errors: [NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DeleteSecret", })); export type DeleteServiceError = NotFound | DockerOpError; /** Delete a service */ export const deleteService: API.OperationMethod< DeleteServiceRequest, DeleteServiceResponse, DeleteServiceError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(1792, __c56, 0) as any as S.Schema, output: __S(2080, __c65, 0) as any as S.Schema, errors: [NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DeleteService", })); export type DeleteVolumeError = NotFound | Conflict | DockerOpError; /** Remove a volume Instruct the driver to remove the volume. */ export const deleteVolume: API.OperationMethod< DeleteVolumeRequest, DeleteVolumeResponse, DeleteVolumeError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(1824, __c57, 0) as any as S.Schema, output: __S(2080, __c65, 0) as any as S.Schema, errors: [NotFound, Conflict], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DeleteVolume", })); export type DisablePluginError = NotFound | DockerOpError; /** Disable a plugin */ export const disablePlugin: API.OperationMethod< DisablePluginRequest, DisablePluginResponse, DisablePluginError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(1856, __c58, 0) as any as S.Schema, output: __S(2080, __c65, 0) as any as S.Schema, errors: [NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DisablePlugin", })); export type DisconnectNetworkError = Forbidden | NotFound | DockerOpError; /** Disconnect a container from a network */ export const disconnectNetwork: API.OperationMethod< DisconnectNetworkRequest, DisconnectNetworkResponse, DisconnectNetworkError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(1888, __c59, 0) as any as S.Schema, output: __S(2080, __c65, 0) as any as S.Schema, errors: [Forbidden, NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DisconnectNetwork", })); export type DistributionInspect2Error = DockerOpError; /** Get image information from the registry Return image digest and platform information by contacting the registry. */ export const distributionInspect2: API.OperationMethod< DistributionInspectRequest, DistributionInspect, DistributionInspect2Error, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(1920, __c60, 0) as any as S.Schema, output: __S(1922, __c60, 2) as any as S.Schema, errors: [], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "DistributionInspect2", })); export type EnablePluginError = NotFound | DockerOpError; /** Enable a plugin */ export const enablePlugin: API.OperationMethod< EnablePluginRequest, EnablePluginResponse, EnablePluginError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(1952, __c61, 0) as any as S.Schema, output: __S(2080, __c65, 0) as any as S.Schema, errors: [NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "EnablePlugin", })); export type ExecContainerError = NotFound | Conflict | DockerOpError; /** Create an exec instance Run a command inside a running container. */ export const execContainer: API.OperationMethod< ExecContainerRequest, IDResponse, ExecContainerError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(1984, __c62, 0) as any as S.Schema, output: __S(3520, __c110, 0) as any as S.Schema, errors: [NotFound, Conflict], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "ExecContainer", })); export type ExecInspectError = NotFound | DockerOpError; /** Inspect an exec instance Return low-level information about an exec instance. */ export const execInspect: API.OperationMethod< ExecInspectRequest, ExecInspectResponse, ExecInspectError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(2016, __c63, 0) as any as S.Schema, output: __S(2018, __c63, 2) as any as S.Schema, errors: [NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "ExecInspect", })); export type ExecResizeError = BadRequest | NotFound | DockerOpError; /** Resize an exec instance Resize the TTY session used by an exec instance. This endpoint only works if `tty` was specified as part of creating and starting the exec instance. */ export const execResize: API.OperationMethod< ExecResizeRequest, ExecResizeResponse, ExecResizeError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(2112, __c66, 0) as any as S.Schema, output: __S(2080, __c65, 0) as any as S.Schema, errors: [BadRequest, NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "ExecResize", })); export type ExecStartError = NotFound | Conflict | DockerOpError; /** Start an exec instance Starts a previously set up exec instance. If detach is true, this endpoint returns immediately after starting the command. Otherwise, it sets up an interactive session with the command. */ export const execStart: API.OperationMethod< ExecStartRequest, ExecStartResponse, ExecStartError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(2144, __c67, 0) as any as S.Schema, output: __S(2080, __c65, 0) as any as S.Schema, errors: [NotFound, Conflict], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "ExecStart", })); export type ExportContainerError = NotFound | DockerOpError; /** Export a container Export the contents of a container as a tarball. */ export const exportContainer: API.OperationMethod< ExportContainerRequest, ExportContainerResponse, ExportContainerError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(2176, __c68, 0) as any as S.Schema, output: __S(2080, __c65, 0) as any as S.Schema, errors: [NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "ExportContainer", })); export type GetImageError = DockerOpError; /** Export an image Get a tarball containing all images and metadata for a repository. If `name` is a specific name and tag (e.g. `ubuntu:latest`), then only that image (and its parents) are returned. If `name` is an image ID, similarly only that image (and its parents) are returned, but with the exclusion of the `repositories` file in the tarball, as there were no image names referenced. ### Image tarball format An image tarball contains [Content as defined in the OCI Image Layout Specification](https://github.com/opencontainers/image-spec/blob/v1.1.1/image-layout.md#content). Additionally, includes the manifest.json file associated with a backwards compatible docker save format. If the tarball defines a repository, the tarball should also include a `repositories` file at the root that contains a list of repository and tag names mapped to layer IDs. ```json { "hello-world": { "latest": "565a9d68a73f6706862bfe8409a7f659776d4d60a8d096eb4a3cbce6999cc2a1" } } ``` */ export const getImage: API.OperationMethod< GetImageRequest, GetImageResponse, GetImageError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(2208, __c69, 0) as any as S.Schema, output: __S(864, __c27, 0) as any as S.Schema, errors: [], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "GetImage", })); export type GetPluginPrivilegesError = DockerOpError; /** Get plugin privileges */ export const getPluginPrivileges: API.OperationMethod< GetPluginPrivilegesRequest, GetPluginPrivilegesResponse, GetPluginPrivilegesError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(2240, __c70, 0) as any as S.Schema, output: __S(2241, __c70, 1) as any as S.Schema, errors: [], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "GetPluginPrivileges", })); export type ImageAttestationsError = BadRequest | NotFound | DockerOpError; /** Get attestation statements for an image Return the in-toto attestation statements attached to the image for the given platform. The daemon locates the attestation manifest(s) that reference the matching platform image manifest, reads their statement layers, and returns the verbatim statement JSON together with layer metadata. If the image has no attestations an empty array is returned. */ export const imageAttestations: API.OperationMethod< ImageAttestationsRequest, ImageAttestationsResponse, ImageAttestationsError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(2272, __c71, 0) as any as S.Schema, output: __S(2275, __c71, 3) as any as S.Schema, errors: [BadRequest, NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "ImageAttestations", })); export type ImageBuildError = BadRequest | DockerOpError; /** Build an image Build an image from a tar archive with a `Dockerfile` in it. The `Dockerfile` specifies how the image is built from the tar archive. It is typically in the archive's root, but can be at a different path or have a different name by specifying the `dockerfile` parameter. [See the `Dockerfile` reference for more information](https://docs.docker.com/engine/reference/builder/). The Docker daemon performs a preliminary validation of the `Dockerfile` before starting the build, and returns an error if the syntax is incorrect. After that, each instruction is run one-by-one until the ID of the new image is output. The build is canceled if the client drops the connection by quitting or being killed. */ export const imageBuild: API.OperationMethod< ImageBuildRequest, ImageBuildResponse, ImageBuildError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(2304, __c72, 0) as any as S.Schema, output: __S(2080, __c65, 0) as any as S.Schema, errors: [BadRequest], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "ImageBuild", })); export type ImageGetAllError = DockerOpError; /** Export several images Get a tarball containing all images and metadata for several image repositories. For each value of the `names` parameter: if it is a specific name and tag (e.g. `ubuntu:latest`), then only that image (and its parents) are returned; if it is an image ID, similarly only that image (and its parents) are returned and there would be no names referenced in the 'repositories' file for this image ID. For details on the format, see the [export image endpoint](#operation/ImageGet). */ export const imageGetAll: API.OperationMethod< ImageGetAllRequest, ImageGetAllResponse, ImageGetAllError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(2336, __c73, 0) as any as S.Schema, output: __S(864, __c27, 0) as any as S.Schema, errors: [], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "ImageGetAll", })); export type ImageHistoryError = NotFound | DockerOpError; /** Get the history of an image Return parent layers of an image. */ export const imageHistory: API.OperationMethod< ImageHistoryRequest, ImageHistoryResponse, ImageHistoryError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(2368, __c74, 0) as any as S.Schema, output: __S(2371, __c74, 3) as any as S.Schema, errors: [NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "ImageHistory", })); export type ImageInspect2Error = NotFound | DockerOpError; /** Inspect an image Return low-level information about an image. */ export const imageInspect2: API.OperationMethod< ImageInspectRequest, ImageInspect, ImageInspect2Error, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(2400, __c75, 0) as any as S.Schema, output: __S(2404, __c75, 4) as any as S.Schema, errors: [NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "ImageInspect2", })); export type ImageLoadError = DockerOpError; /** Import images Load a set of images and tags into a repository. For details on the format, see the [export image endpoint](#operation/ImageGet). */ export const imageLoad: API.OperationMethod< ImageLoadRequest, ImageLoadResponse, ImageLoadError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(2496, __c78, 0) as any as S.Schema, output: __S(2080, __c65, 0) as any as S.Schema, errors: [], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "ImageLoad", })); export type ImagePruneError = DockerOpError; /** Delete unused images */ export const imagePrune: API.OperationMethod< ImagePruneRequest, ImagePruneResponse, ImagePruneError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(2528, __c79, 0) as any as S.Schema, output: __S(2529, __c79, 1) as any as S.Schema, errors: [], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "ImagePrune", })); export type ImagePushError = NotFound | DockerOpError; /** Push an image Push an image to a registry. If you wish to push an image on to a private registry, that image must already have a tag which references the registry. For example, `registry.example.com/myimage:latest`. The push is cancelled if the HTTP connection is closed. */ export const imagePush: API.OperationMethod< ImagePushRequest, ImagePushResponse, ImagePushError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(2560, __c80, 0) as any as S.Schema, output: __S(2080, __c65, 0) as any as S.Schema, errors: [NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "ImagePush", })); export type ImageTagError = BadRequest | NotFound | Conflict | DockerOpError; /** Tag an image Create a tag that refers to a source image. This creates an additional reference (tag) to the source image. The tag can include a different repository name and/or tag. If the repository or tag already exists, it will be overwritten. */ export const imageTag: API.OperationMethod< ImageTagRequest, ImageTagResponse, ImageTagError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(2592, __c81, 0) as any as S.Schema, output: __S(2080, __c65, 0) as any as S.Schema, errors: [BadRequest, NotFound, Conflict], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "ImageTag", })); export type JoinSwarmError = BadRequest | DockerOpError; /** Join an existing swarm */ export const joinSwarm: API.OperationMethod< JoinSwarmRequest, JoinSwarmResponse, JoinSwarmError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(2624, __c82, 0) as any as S.Schema, output: __S(2080, __c65, 0) as any as S.Schema, errors: [BadRequest], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "JoinSwarm", })); export type KillContainerError = NotFound | Conflict | DockerOpError; /** Kill a container Send a POSIX signal to a container, defaulting to killing to the container. */ export const killContainer: API.OperationMethod< KillContainerRequest, KillContainerResponse, KillContainerError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(2656, __c83, 0) as any as S.Schema, output: __S(2080, __c65, 0) as any as S.Schema, errors: [NotFound, Conflict], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "KillContainer", })); export type LeaveSwarmError = DockerOpError; /** Leave a swarm */ export const leaveSwarm: API.OperationMethod< LeaveSwarmRequest, LeaveSwarmResponse, LeaveSwarmError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(2688, __c84, 0) as any as S.Schema, output: __S(2080, __c65, 0) as any as S.Schema, errors: [], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "LeaveSwarm", })); export type ListConfigError = DockerOpError; /** List configs */ export const listConfig: API.OperationMethod< ListConfigRequest, ListConfigResponse, ListConfigError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(2720, __c85, 0) as any as S.Schema, output: __S(2722, __c85, 2) as any as S.Schema, errors: [], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "ListConfig", })); export type ListContainerError = BadRequest | DockerOpError; /** List containers Returns a list of containers. For details on the format, see the [inspect endpoint](#operation/ContainerInspect). Note that it uses a different, smaller representation of a container than inspecting a single container. For example, the list of linked containers is not propagated . */ export const listContainer: API.OperationMethod< ListContainerRequest, ListContainerResponse, ListContainerError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(2752, __c86, 0) as any as S.Schema, output: __S(2760, __c86, 8) as any as S.Schema, errors: [BadRequest], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "ListContainer", })); export type ListImageError = DockerOpError; /** List Images Returns a list of images on the server. Note that it uses a different, smaller representation of an image than inspecting a single image. */ export const listImage: API.OperationMethod< ListImageRequest, ListImageResponse, ListImageError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(2784, __c87, 0) as any as S.Schema, output: __S(2787, __c87, 3) as any as S.Schema, errors: [], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "ListImage", })); export type ListNetworkError = DockerOpError; /** List networks Returns a list of networks. For details on the format, see the [network inspect endpoint](#operation/NetworkInspect). Note that it uses a different, smaller representation of a network than inspecting a single network. For example, the list of containers attached to the network is not propagated in API versions 1.28 and up. */ export const listNetwork: API.OperationMethod< ListNetworkRequest, ListNetworkResponse, ListNetworkError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(2880, __c90, 0) as any as S.Schema, output: __S(2882, __c90, 2) as any as S.Schema, errors: [], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "ListNetwork", })); export type ListNodeError = DockerOpError; /** List nodes */ export const listNode: API.OperationMethod< ListNodeRequest, ListNodeResponse, ListNodeError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(2976, __c93, 0) as any as S.Schema, output: __S(2978, __c93, 2) as any as S.Schema, errors: [], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "ListNode", })); export type ListPluginError = DockerOpError; /** List plugins Returns information about installed plugins. */ export const listPlugin: API.OperationMethod< ListPluginRequest, ListPluginResponse, ListPluginError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(3072, __c96, 0) as any as S.Schema, output: __S(3074, __c96, 2) as any as S.Schema, errors: [], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "ListPlugin", })); export type ListSecretError = DockerOpError; /** List secrets */ export const listSecret: API.OperationMethod< ListSecretRequest, ListSecretResponse, ListSecretError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(3104, __c97, 0) as any as S.Schema, output: __S(3106, __c97, 2) as any as S.Schema, errors: [], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "ListSecret", })); export type ListServiceError = DockerOpError; /** List services */ export const listService: API.OperationMethod< ListServiceRequest, ListServiceResponse, ListServiceError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(3168, __c99, 0) as any as S.Schema, output: __S(3170, __c99, 2) as any as S.Schema, errors: [], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "ListService", })); export type ListTaskError = DockerOpError; /** List tasks */ export const listTask: API.OperationMethod< ListTaskRequest, ListTaskResponse, ListTaskError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(3232, __c101, 0) as any as S.Schema, output: __S(3234, __c101, 2) as any as S.Schema, errors: [], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "ListTask", })); export type ListVolumeError = DockerOpError; /** List volumes */ export const listVolume: API.OperationMethod< ListVolumeRequest, VolumeListResponse, ListVolumeError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(3296, __c103, 0) as any as S.Schema, output: __S(3298, __c103, 2) as any as S.Schema, errors: [], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "ListVolume", })); export type NetworkInspectError = NotFound | DockerOpError; /** Inspect a network */ export const networkInspect: API.OperationMethod< NetworkInspectRequest, NetworkInspectResponse, NetworkInspectError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(3328, __c104, 0) as any as S.Schema, output: __S(3335, __c104, 7) as any as S.Schema, errors: [NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "NetworkInspect", })); export type NetworkPruneError = DockerOpError; /** Delete unused networks */ export const networkPrune: API.OperationMethod< NetworkPruneRequest, NetworkPruneResponse, NetworkPruneError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(3360, __c105, 0) as any as S.Schema, output: __S(3361, __c105, 1) as any as S.Schema, errors: [], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "NetworkPrune", })); export type NodeInspectError = NotFound | DockerOpError; /** Inspect a node */ export const nodeInspect: API.OperationMethod< NodeInspectRequest, Node, NodeInspectError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(3392, __c106, 0) as any as S.Schema, output: __S(3015, __c94, 7) as any as S.Schema, errors: [NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "NodeInspect", })); export type PauseContainerError = NotFound | DockerOpError; /** Pause a container Use the freezer cgroup to suspend all processes in a container. Traditionally, when suspending a process the `SIGSTOP` signal is used, which is observable by the process being suspended. With the freezer cgroup the process is unaware, and unable to capture, that it is being suspended, and subsequently resumed. */ export const pauseContainer: API.OperationMethod< PauseContainerRequest, PauseContainerResponse, PauseContainerError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(3584, __c112, 0) as any as S.Schema, output: __S(2080, __c65, 0) as any as S.Schema, errors: [NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "PauseContainer", })); export type PingSystemError = DockerOpError; /** Ping This is a dummy endpoint you can use to test if the server is accessible. */ export const pingSystem: API.OperationMethod< PingSystemRequest, PingSystemResponse, PingSystemError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(3616, __c113, 0) as any as S.Schema, output: __S(864, __c27, 0) as any as S.Schema, errors: [], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "PingSystem", })); export type PluginInspectError = NotFound | DockerOpError; /** Inspect a plugin */ export const pluginInspect: API.OperationMethod< PluginInspectRequest, Plugin, PluginInspectError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(3648, __c114, 0) as any as S.Schema, output: __S(1742, __c54, 14) as any as S.Schema, errors: [NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "PluginInspect", })); export type PluginPullError = DockerOpError; /** Install a plugin Pulls and installs a plugin. After the plugin is installed, it can be enabled using the [`POST /plugins/{name}/enable` endpoint](#operation/PostPluginsEnable). */ export const pluginPull: API.OperationMethod< PluginPullRequest, PluginPullResponse, PluginPullError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(3680, __c115, 0) as any as S.Schema, output: __S(2080, __c65, 0) as any as S.Schema, errors: [], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "PluginPull", })); export type PluginPushError = NotFound | DockerOpError; /** Push a plugin Push a plugin to the registry. */ export const pluginPush: API.OperationMethod< PluginPushRequest, PluginPushResponse, PluginPushError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(3712, __c116, 0) as any as S.Schema, output: __S(2080, __c65, 0) as any as S.Schema, errors: [NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "PluginPush", })); export type PluginUpgradeError = NotFound | DockerOpError; /** Upgrade a plugin */ export const pluginUpgrade: API.OperationMethod< PluginUpgradeRequest, PluginUpgradeResponse, PluginUpgradeError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(3744, __c117, 0) as any as S.Schema, output: __S(2080, __c65, 0) as any as S.Schema, errors: [NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "PluginUpgrade", })); export type PutContainerArchiveError = BadRequest | Forbidden | NotFound | DockerOpError; /** Extract an archive of files or folders to a directory in a container Upload a tar archive to be extracted to a path in the filesystem of container id. `path` parameter is asserted to be a directory. If it exists as a file, 400 error will be returned with message "not a directory". */ export const putContainerArchive: API.OperationMethod< PutContainerArchiveRequest, PutContainerArchiveResponse, PutContainerArchiveError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(3776, __c118, 0) as any as S.Schema, output: __S(2080, __c65, 0) as any as S.Schema, errors: [BadRequest, Forbidden, NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "PutContainerArchive", })); export type RenameContainerError = NotFound | Conflict | DockerOpError; /** Rename a container */ export const renameContainer: API.OperationMethod< RenameContainerRequest, RenameContainerResponse, RenameContainerError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(3808, __c119, 0) as any as S.Schema, output: __S(2080, __c65, 0) as any as S.Schema, errors: [NotFound, Conflict], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "RenameContainer", })); export type ResizeContainerError = NotFound | DockerOpError; /** Resize a container TTY Resize the TTY for a container. */ export const resizeContainer: API.OperationMethod< ResizeContainerRequest, ResizeContainerResponse, ResizeContainerError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(3840, __c120, 0) as any as S.Schema, output: __S(2080, __c65, 0) as any as S.Schema, errors: [NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "ResizeContainer", })); export type RestartContainerError = NotFound | DockerOpError; /** Restart a container */ export const restartContainer: API.OperationMethod< RestartContainerRequest, RestartContainerResponse, RestartContainerError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(3872, __c121, 0) as any as S.Schema, output: __S(2080, __c65, 0) as any as S.Schema, errors: [NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "RestartContainer", })); export type SearchImageError = DockerOpError; /** Search images Search for an image on Docker Hub. */ export const searchImage: API.OperationMethod< SearchImageRequest, SearchImageResponse, SearchImageError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(4032, __c126, 0) as any as S.Schema, output: __S(4035, __c126, 3) as any as S.Schema, errors: [], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "SearchImage", })); export type SecretInspectError = NotFound | DockerOpError; /** Inspect a secret */ export const secretInspect: API.OperationMethod< SecretInspectRequest, Secret, SecretInspectError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(4064, __c127, 0) as any as S.Schema, output: __S(3137, __c98, 1) as any as S.Schema, errors: [NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "SecretInspect", })); export type ServiceInspectError = NotFound | DockerOpError; /** Inspect a service */ export const serviceInspect: API.OperationMethod< ServiceInspectRequest, Service, ServiceInspectError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(4096, __c128, 0) as any as S.Schema, output: __S(3207, __c100, 7) as any as S.Schema, errors: [NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "ServiceInspect", })); export type ServiceLogsError = NotFound | DockerOpError; /** Get service logs Get `stdout` and `stderr` logs from a service. See also [`/containers/{id}/logs`](#operation/ContainerLogs). **Note**: This endpoint works only for services with the `local`, `json-file` or `journald` logging drivers. */ export const serviceLogs: API.OperationMethod< ServiceLogsRequest, ServiceLogsResponse, ServiceLogsError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(4128, __c129, 0) as any as S.Schema, output: __S(864, __c27, 0) as any as S.Schema, errors: [NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "ServiceLogs", })); export type SessionError = BadRequest | DockerOpError; /** Initialize interactive session Start a new interactive session with a server. Session allows server to call back to the client for advanced capabilities. > **Deprecated**: This endpoint is deprecated and will be removed in a future version. > Server should support gRPC directly on the listening socket. ### Hijacking This endpoint hijacks the HTTP connection to HTTP2 transport that allows the client to expose gPRC services on that connection. For example, the client sends this request to upgrade the connection: ``` POST /session HTTP/1.1 Upgrade: h2c Connection: Upgrade ``` The Docker daemon responds with a `101 UPGRADED` response follow with the raw stream: ``` HTTP/1.1 101 UPGRADED Connection: Upgrade Upgrade: h2c ``` */ export const session: API.OperationMethod< SessionRequest, SessionResponse, SessionError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(4160, __c130, 0) as any as S.Schema, output: __S(2080, __c65, 0) as any as S.Schema, errors: [BadRequest], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "Session", })); export type SetPluginError = NotFound | DockerOpError; /** Configure a plugin */ export const setPlugin: API.OperationMethod< SetPluginRequest, SetPluginResponse, SetPluginError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(4192, __c131, 0) as any as S.Schema, output: __S(2080, __c65, 0) as any as S.Schema, errors: [NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "SetPlugin", })); export type StartContainerError = BadRequest | NotFound | DockerOpError; /** Start a container */ export const startContainer: API.OperationMethod< StartContainerRequest, StartContainerResponse, StartContainerError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(4224, __c132, 0) as any as S.Schema, output: __S(2080, __c65, 0) as any as S.Schema, errors: [BadRequest, NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "StartContainer", })); export type StopContainerError = NotFound | DockerOpError; /** Stop a container */ export const stopContainer: API.OperationMethod< StopContainerRequest, StopContainerResponse, StopContainerError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(4256, __c133, 0) as any as S.Schema, output: __S(2080, __c65, 0) as any as S.Schema, errors: [NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "StopContainer", })); export type SwarmInitError = BadRequest | DockerOpError; /** Initialize a new swarm */ export const swarmInit: API.OperationMethod< SwarmInitRequest, SwarmInitResponse, SwarmInitError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(4288, __c134, 0) as any as S.Schema, output: __S(864, __c27, 0) as any as S.Schema, errors: [BadRequest], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "SwarmInit", })); export type SwarmInspectError = NotFound | DockerOpError; /** Inspect swarm */ export const swarmInspect: API.OperationMethod< SwarmInspectRequest, SwarmInspectResponse, SwarmInspectError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(4384, __c137, 0) as any as S.Schema, output: __S(4386, __c137, 2) as any as S.Schema, errors: [NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "SwarmInspect", })); export type SwarmUnlockkeyError = DockerOpError; /** Get the unlock key */ export const swarmUnlockkey: API.OperationMethod< SwarmUnlockkeyRequest, SwarmUnlockkeyResponse, SwarmUnlockkeyError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(4480, __c140, 0) as any as S.Schema, output: __S(4481, __c140, 1) as any as S.Schema, errors: [], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "SwarmUnlockkey", })); export type SystemAuthError = DockerOpError; /** Check auth configuration Validate credentials for a registry and, if available, get an identity token for accessing the registry without password. */ export const systemAuth: API.OperationMethod< SystemAuthRequest, AuthResponse, SystemAuthError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(4512, __c141, 0) as any as S.Schema, output: __S(4513, __c141, 1) as any as S.Schema, errors: [], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "SystemAuth", })); export type SystemDataUsageError = DockerOpError; /** Get data usage information */ export const systemDataUsage: API.OperationMethod< SystemDataUsageRequest, SystemDataUsageResponse, SystemDataUsageError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(4545, __c142, 1) as any as S.Schema, output: __S(4548, __c142, 4) as any as S.Schema, errors: [], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "SystemDataUsage", })); export type SystemEventsError = BadRequest | DockerOpError; /** Monitor events Stream real-time events from the server. Various objects within Docker report events when something happens to them. Containers report these events: `attach`, `commit`, `copy`, `create`, `destroy`, `detach`, `die`, `exec_create`, `exec_detach`, `exec_start`, `exec_die`, `export`, `health_status`, `kill`, `oom`, `pause`, `rename`, `resize`, `restart`, `start`, `stop`, `top`, `unpause`, `update`, and `prune` Images report these events: `create`, `delete`, `import`, `load`, `pull`, `push`, `save`, `tag`, `untag`, and `prune` Volumes report these events: `create`, `mount`, `unmount`, `destroy`, and `prune` Networks report these events: `create`, `connect`, `disconnect`, `destroy`, `update`, `remove`, and `prune` The Docker daemon reports these events: `reload` Services report these events: `create`, `update`, and `remove` Nodes report these events: `create`, `update`, and `remove` Secrets report these events: `create`, `update`, and `remove` Configs report these events: `create`, `update`, and `remove` The Builder reports `prune` events */ export const systemEvents: API.OperationMethod< SystemEventsRequest, EventMessage, SystemEventsError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(4576, __c143, 0) as any as S.Schema, output: __S(4578, __c143, 2) as any as S.Schema, errors: [BadRequest], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "SystemEvents", })); export type SystemInfo2Error = DockerOpError; /** Get system information */ export const systemInfo2: API.OperationMethod< SystemInfo2Request, SystemInfo, SystemInfo2Error, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(4608, __c144, 0) as any as S.Schema, output: __S(4628, __c144, 20) as any as S.Schema, errors: [], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "SystemInfo2", })); export type SystemVersion2Error = DockerOpError; /** Get version Returns the version of Docker that is running and various information about the system that Docker is running on. */ export const systemVersion2: API.OperationMethod< SystemVersion2Request, SystemVersion, SystemVersion2Error, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(4640, __c145, 0) as any as S.Schema, output: __S(4644, __c145, 4) as any as S.Schema, errors: [], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "SystemVersion2", })); export type TaskInspectError = NotFound | DockerOpError; /** Inspect a task */ export const taskInspect: API.OperationMethod< TaskInspectRequest, Task, TaskInspectError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(4672, __c146, 0) as any as S.Schema, output: __S(3269, __c102, 5) as any as S.Schema, errors: [NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "TaskInspect", })); export type TaskLogsError = NotFound | DockerOpError; /** Get task logs Get `stdout` and `stderr` logs from a task. See also [`/containers/{id}/logs`](#operation/ContainerLogs). **Note**: This endpoint works only for services with the `local`, `json-file` or `journald` logging drivers. */ export const taskLogs: API.OperationMethod< TaskLogsRequest, TaskLogsResponse, TaskLogsError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(4704, __c147, 0) as any as S.Schema, output: __S(864, __c27, 0) as any as S.Schema, errors: [NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "TaskLogs", })); export type UnlockSwarmError = DockerOpError; /** Unlock a locked manager */ export const unlockSwarm: API.OperationMethod< UnlockSwarmRequest, UnlockSwarmResponse, UnlockSwarmError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(4736, __c148, 0) as any as S.Schema, output: __S(2080, __c65, 0) as any as S.Schema, errors: [], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "UnlockSwarm", })); export type UnpauseContainerError = NotFound | DockerOpError; /** Unpause a container Resume a container which has been paused. */ export const unpauseContainer: API.OperationMethod< UnpauseContainerRequest, UnpauseContainerResponse, UnpauseContainerError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(4768, __c149, 0) as any as S.Schema, output: __S(2080, __c65, 0) as any as S.Schema, errors: [NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "UnpauseContainer", })); export type UpdateConfigError = BadRequest | NotFound | DockerOpError; /** Update a Config */ export const updateConfig: API.OperationMethod< UpdateConfigRequest, UpdateConfigResponse, UpdateConfigError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(64, __c2, 0) as any as S.Schema, output: __S(2080, __c65, 0) as any as S.Schema, errors: [BadRequest, NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "UpdateConfig", })); export type UpdateContainerError = NotFound | DockerOpError; /** Update a container Change various configuration options of a container without having to recreate it. */ export const updateContainer: API.OperationMethod< UpdateContainerRequest, ContainerUpdateResponse, UpdateContainerError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(96, __c3, 0) as any as S.Schema, output: __S(128, __c4, 0) as any as S.Schema, errors: [NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "UpdateContainer", })); export type UpdateNodeError = BadRequest | NotFound | DockerOpError; /** Update a node */ export const updateNode: API.OperationMethod< UpdateNodeRequest, UpdateNodeResponse, UpdateNodeError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(160, __c5, 0) as any as S.Schema, output: __S(2080, __c65, 0) as any as S.Schema, errors: [BadRequest, NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "UpdateNode", })); export type UpdateSecretError = BadRequest | NotFound | DockerOpError; /** Update a Secret */ export const updateSecret: API.OperationMethod< UpdateSecretRequest, UpdateSecretResponse, UpdateSecretError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(192, __c6, 0) as any as S.Schema, output: __S(2080, __c65, 0) as any as S.Schema, errors: [BadRequest, NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "UpdateSecret", })); export type UpdateServiceError = BadRequest | NotFound | DockerOpError; /** Update a service */ export const updateService: API.OperationMethod< UpdateServiceRequest, ServiceUpdateResponse, UpdateServiceError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(224, __c7, 0) as any as S.Schema, output: __S(128, __c4, 0) as any as S.Schema, errors: [BadRequest, NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "UpdateService", })); export type UpdateSwarmError = BadRequest | DockerOpError; /** Update a swarm */ export const updateSwarm: API.OperationMethod< UpdateSwarmRequest, UpdateSwarmResponse, UpdateSwarmError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(256, __c8, 0) as any as S.Schema, output: __S(2080, __c65, 0) as any as S.Schema, errors: [BadRequest], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "UpdateSwarm", })); export type UpdateVolumeError = BadRequest | NotFound | DockerOpError; /** "Update a volume. Valid only for Swarm cluster volumes" */ export const updateVolume: API.OperationMethod< UpdateVolumeRequest, UpdateVolumeResponse, UpdateVolumeError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(288, __c9, 0) as any as S.Schema, output: __S(2080, __c65, 0) as any as S.Schema, errors: [BadRequest, NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "UpdateVolume", })); export type VolumeInspectError = NotFound | DockerOpError; /** Inspect a volume */ export const volumeInspect: API.OperationMethod< VolumeInspectRequest, Volume, VolumeInspectError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(320, __c10, 0) as any as S.Schema, output: __S(1477, __c46, 5) as any as S.Schema, errors: [NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "VolumeInspect", })); export type VolumePruneError = DockerOpError; /** Delete unused volumes */ export const volumePrune: API.OperationMethod< VolumePruneRequest, VolumePruneResponse, VolumePruneError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(352, __c11, 0) as any as S.Schema, output: __S(353, __c11, 1) as any as S.Schema, errors: [], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "VolumePrune", })); export type WaitContainerError = BadRequest | NotFound | DockerOpError; /** Wait for a container Block until a container stops, then returns the exit code. */ export const waitContainer: API.OperationMethod< WaitContainerRequest, ContainerWaitResponse, WaitContainerError, DockerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(384, __c12, 0) as any as S.Schema, output: __S(386, __c12, 2) as any as S.Schema, errors: [BadRequest, NotFound], serviceErrors: DockerServiceErrors, protocol: DockerProtocol, retry: Retry.Retry, telemetry: TELEMETRY, span: "WaitContainer", })); // Schema builders: each runs one schema initializer, on that schema's first use. function __c0(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ message: S.String, }), ).annotate({ identifier: "ErrorResponse" }); } } function __c1(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ id: S.String.pipe(T.Label()), detachKeys: S.optional(S.String.pipe(T.Query())), logs: S.optional(S.Boolean.pipe(T.Query())), stream: S.optional(S.Boolean.pipe(T.Query())), stdin: S.optional(S.Boolean.pipe(T.Query())), stdout: S.optional(S.Boolean.pipe(T.Query())), stderr: S.optional(S.Boolean.pipe(T.Query())), }).pipe(T.Http({ method: "GET", uri: "/containers/{id}/attach/ws", code: 200 })), ).annotate({ identifier: "ContainerAttachWebsocketRequest" }); } } function __c2(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ id: S.String.pipe(T.Label()), version: S.Number.pipe(T.Query()), Name: S.optional(S.String), Labels: S.optional(__S(3552, __c111, 0)), Data: S.optional(S.String), Templating: S.optional(__S(3936, __c123, 0)), }).pipe(T.Http({ method: "POST", uri: "/configs/{id}/update", code: 200 })), ).annotate({ identifier: "UpdateConfigRequest" }); } } function __c3(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ id: S.String.pipe(T.Label()), CpuShares: S.optional(S.Number), Memory: S.optional(S.Number), CgroupParent: S.optional(S.String), BlkioWeight: S.optional(S.Number), BlkioWeightDevice: S.optional(__S(577, __c18, 1)), BlkioDeviceReadBps: S.optional(__S(579, __c18, 3)), BlkioDeviceWriteBps: S.optional(__S(579, __c18, 3)), BlkioDeviceReadIOps: S.optional(__S(579, __c18, 3)), BlkioDeviceWriteIOps: S.optional(__S(579, __c18, 3)), CpuPeriod: S.optional(S.Number), CpuQuota: S.optional(S.Number), CpuRealtimePeriod: S.optional(S.Number), CpuRealtimeRuntime: S.optional(S.Number), CpusetCpus: S.optional(S.String), CpusetMems: S.optional(S.String), Devices: S.optional(__S(581, __c18, 5)), DeviceCgroupRules: S.optional(__S(2848, __c89, 0)), DeviceRequests: S.optional(__S(583, __c18, 7)), MemoryReservation: S.optional(S.Number), MemorySwap: S.optional(S.Number), MemorySwappiness: S.optional(S.Number), NanoCpus: S.optional(S.Number), OomKillDisable: S.optional(S.Boolean), Init: S.optional(S.NullOr(S.Boolean)), PidsLimit: S.optional(S.NullOr(S.Number)), Ulimits: S.optional(__S(641, __c20, 1)), CpuCount: S.optional(S.Number), CpuPercent: S.optional(S.Number), IOMaximumIOps: S.optional(S.Number), IOMaximumBandwidth: S.optional(S.Number), RestartPolicy: S.optional(__S(584, __c18, 8)), }).pipe(T.Http({ method: "POST", uri: "/containers/{id}/update", code: 200 })), ).annotate({ identifier: "UpdateContainerRequest" }); } } function __c4(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Warnings: S.optional(__S(2848, __c89, 0)), }), ).annotate({ identifier: "ContainerUpdateResponse" }); } } function __c5(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ id: S.String.pipe(T.Label()), version: S.Number.pipe(T.Query()), Name: S.optional(S.String), Labels: S.optional(__S(3552, __c111, 0)), Role: S.optional(S.String), Availability: S.optional(S.String), }).pipe(T.Http({ method: "POST", uri: "/nodes/{id}/update", code: 200 })), ).annotate({ identifier: "UpdateNodeRequest" }); } } function __c6(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ id: S.String.pipe(T.Label()), version: S.Number.pipe(T.Query()), Name: S.optional(S.String), Labels: S.optional(__S(3552, __c111, 0)), Data: S.optional(S.String), Driver: S.optional(__S(3936, __c123, 0)), Templating: S.optional(__S(3936, __c123, 0)), }).pipe(T.Http({ method: "POST", uri: "/secrets/{id}/update", code: 200 })), ).annotate({ identifier: "UpdateSecretRequest" }); } } function __c7(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ id: S.String.pipe(T.Label()), version: S.Number.pipe(T.Query()), registryAuthFrom: S.optional(S.String.pipe(T.Query())), rollback: S.optional(S.String.pipe(T.Query())), xRegistryAuth: S.optional( S.String.pipe(T.Header("X-Registry-Auth"), T.SensitiveValue({})), ), Name: S.optional(S.String), Labels: S.optional(__S(3552, __c111, 0)), TaskTemplate: S.optional(__S(1368, __c42, 24)), Mode: S.optional(__S(1378, __c43, 2)), UpdateConfig: S.optional(__S(1379, __c43, 3)), RollbackConfig: S.optional(__S(1379, __c43, 3)), Networks: S.optional(__S(1367, __c42, 23)), EndpointSpec: S.optional(__S(1380, __c43, 4)), }).pipe(T.Http({ method: "POST", uri: "/services/{id}/update", code: 200 })), ).annotate({ identifier: "UpdateServiceRequest" }); } } function __c8(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ version: S.Number.pipe(T.Query()), rotateWorkerToken: S.optional(S.Boolean.pipe(T.Query())), rotateManagerToken: S.optional(S.Boolean.pipe(T.Query())), rotateManagerUnlockKey: S.optional(S.Boolean.pipe(T.Query())), Name: S.optional(S.String), Labels: S.optional(__S(3552, __c111, 0)), Orchestration: S.optional(S.NullOr(__S(4352, __c136, 0))), Raft: S.optional(__S(4353, __c136, 1)), Dispatcher: S.optional(S.NullOr(__S(4354, __c136, 2))), CAConfig: S.optional(S.NullOr(__S(4357, __c136, 5))), EncryptionConfig: S.optional(__S(4358, __c136, 6)), TaskDefaults: S.optional(__S(4359, __c136, 7)), }).pipe(T.Http({ method: "POST", uri: "/swarm/update", code: 200 })), ).annotate({ identifier: "UpdateSwarmRequest" }); } } function __c9(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ name: S.String.pipe(T.Label()), version: S.Number.pipe(T.Query()), Spec: S.optional(__S(1447, __c45, 7)), }).pipe(T.Http({ method: "PUT", uri: "/volumes/{name}", code: 200 })), ).annotate({ identifier: "UpdateVolumeRequest" }); } } function __c10(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ name: S.String.pipe(T.Label()), }).pipe(T.Http({ method: "GET", uri: "/volumes/{name}", code: 200 })), ).annotate({ identifier: "VolumeInspectRequest" }); } } function __c11(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ filters: S.optional(S.String.pipe(T.Query())), }).pipe(T.Http({ method: "POST", uri: "/volumes/prune", code: 200 })), ).annotate({ identifier: "VolumePruneRequest" }); case 1: return S.suspend(() => S.Struct({ VolumesDeleted: S.optional(__S(2848, __c89, 0)), SpaceReclaimed: S.optional(S.Number), }), ).annotate({ identifier: "VolumePruneResponse" }); } } function __c12(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ id: S.String.pipe(T.Label()), condition: S.optional(S.String.pipe(T.Query())), }).pipe(T.Http({ method: "POST", uri: "/containers/{id}/wait", code: 200 })), ).annotate({ identifier: "WaitContainerRequest" }); case 1: return S.suspend(() => S.Struct({ Message: S.optional(S.String), }), ).annotate({ identifier: "ContainerWaitExitError" }); case 2: return S.suspend(() => S.Struct({ StatusCode: S.Number, Error: S.optional(__S(385, __c12, 1)), }), ).annotate({ identifier: "ContainerWaitResponse" }); } } function __c13(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ id: S.String.pipe(T.Label()), }).pipe(T.Http({ method: "GET", uri: "/containers/{id}/changes", code: 200 })), ).annotate({ identifier: "ContainerChangesRequest" }); case 1: return S.suspend(() => S.Struct({ Path: S.String, Kind: S.Number, }), ).annotate({ identifier: "FilesystemChange" }); case 2: return S.Array(__S(417, __c13, 1)); case 3: return S.suspend(() => __S(418, __c13, 2).pipe(T.RawResponseRoot())).annotate({ identifier: "ContainerChangesResponse", }); } } function __c14(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ id: S.String.pipe(T.Label()), size: S.optional(S.Boolean.pipe(T.Query())), }).pipe(T.Http({ method: "GET", uri: "/containers/{id}/json", code: 200 })), ).annotate({ identifier: "ContainerInspectRequest" }); case 1: return S.suspend(() => S.Struct({ Start: S.optional(S.String), End: S.optional(S.String), ExitCode: S.optional(S.Number), Output: S.optional(S.String), }), ).annotate({ identifier: "HealthcheckResult" }); case 2: return S.Array(/*@__PURE__*/ S.NullOr(__S(449, __c14, 1))); case 3: return S.suspend(() => S.Struct({ Status: S.optional(S.String), FailingStreak: S.optional(S.Number), Log: S.optional(__S(450, __c14, 2)), }), ).annotate({ identifier: "Health" }); case 4: return S.suspend(() => S.Struct({ Status: S.optional(S.String), Running: S.optional(S.Boolean), Paused: S.optional(S.Boolean), Restarting: S.optional(S.Boolean), OOMKilled: S.optional(S.Boolean), Dead: S.optional(S.Boolean), Pid: S.optional(S.Number), ExitCode: S.optional(S.Number), Error: S.optional(S.String), StartedAt: S.optional(S.String), FinishedAt: S.optional(S.String), Health: S.optional(S.NullOr(__S(451, __c14, 3))), }), ).annotate({ identifier: "ContainerState" }); case 5: return S.suspend(() => S.Struct({ Name: S.optional(S.String), }), ).annotate({ identifier: "RootFSStorageSnapshot" }); case 6: return S.suspend(() => S.Struct({ Snapshot: S.optional(S.NullOr(__S(453, __c14, 5))), }), ).annotate({ identifier: "RootFSStorage" }); case 7: return S.suspend(() => S.Struct({ RootFS: S.optional(S.NullOr(__S(454, __c14, 6))), }), ).annotate({ identifier: "Storage" }); case 8: return S.suspend(() => S.Struct({ Hostname: S.optional(S.String), Domainname: S.optional(S.String), User: S.optional(S.String), AttachStdin: S.optional(S.Boolean), AttachStdout: S.optional(S.Boolean), AttachStderr: S.optional(S.Boolean), ExposedPorts: S.optional(S.NullOr(__S(3488, __c109, 0))), Tty: S.optional(S.Boolean), OpenStdin: S.optional(S.Boolean), StdinOnce: S.optional(S.Boolean), Env: S.optional(__S(2848, __c89, 0)), Cmd: S.optional(__S(2848, __c89, 0)), Healthcheck: S.optional(__S(3456, __c108, 0)), ArgsEscaped: S.optional(S.NullOr(S.Boolean)), Image: S.optional(S.String), Volumes: S.optional(__S(3488, __c109, 0)), WorkingDir: S.optional(S.String), Entrypoint: S.optional(__S(2848, __c89, 0)), NetworkDisabled: S.optional(S.NullOr(S.Boolean)), OnBuild: S.optional(S.NullOr(__S(2848, __c89, 0))), Labels: S.optional(__S(3552, __c111, 0)), StopSignal: S.optional(S.NullOr(S.String)), StopTimeout: S.optional(S.NullOr(S.Number)), Shell: S.optional(S.NullOr(__S(2848, __c89, 0))), }), ).annotate({ identifier: "ContainerConfig" }); case 9: return S.suspend(() => S.Struct({ SandboxID: S.optional(S.String), SandboxKey: S.optional(S.String), Ports: S.optional(__S(547, __c17, 3)), Networks: S.optional(__S(704, __c22, 0)), }), ).annotate({ identifier: "NetworkSettings" }); case 10: return S.suspend(() => S.Struct({ Id: S.optional(S.String), Created: S.optional(S.NullOr(S.String)), Path: S.optional(S.String), Args: S.optional(__S(2848, __c89, 0)), State: S.optional(S.NullOr(__S(452, __c14, 4))), Image: S.optional(S.String), ResolvConfPath: S.optional(S.String), HostnamePath: S.optional(S.String), HostsPath: S.optional(S.String), LogPath: S.optional(S.NullOr(S.String)), Name: S.optional(S.String), RestartCount: S.optional(S.Number), Driver: S.optional(S.String), Platform: S.optional(S.String), ImageManifestDescriptor: S.optional(__S(737, __c23, 1)), MountLabel: S.optional(S.String), ProcessLabel: S.optional(S.String), AppArmorProfile: S.optional(S.String), ExecIDs: S.optional(S.NullOr(__S(2848, __c89, 0))), HostConfig: S.optional(__S(548, __c17, 4)), GraphDriver: S.optional(S.NullOr(__S(768, __c24, 0))), Storage: S.optional(S.NullOr(__S(455, __c14, 7))), SizeRw: S.optional(S.NullOr(S.Number)), SizeRootFs: S.optional(S.NullOr(S.Number)), Mounts: S.optional(__S(801, __c25, 1)), Config: S.optional(__S(456, __c14, 8)), NetworkSettings: S.optional(__S(457, __c14, 9)), }), ).annotate({ identifier: "ContainerInspectResponse" }); } } function __c15(j: number): any { switch (j) { case 0: return S.Array(S.Number); } } function __c16(j: number): any { switch (j) { case 0: return S.Array(__S(2848, __c89, 0)); } } function __c17(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Type: S.optional(S.String), Config: S.optional(__S(3552, __c111, 0)), }), ).annotate({ identifier: "HostConfigLogConfig" }); case 1: return S.suspend(() => S.Struct({ HostIp: S.optional(S.String), HostPort: S.optional(S.String), }), ).annotate({ identifier: "PortBinding" }); case 2: return S.Array(__S(545, __c17, 1)); case 3: return S.Record(S.String, /*@__PURE__*/ S.NullOr(__S(546, __c17, 2))); case 4: return S.suspend(() => S.Struct({ CpuShares: S.optional(S.Number), Memory: S.optional(S.Number), CgroupParent: S.optional(S.String), BlkioWeight: S.optional(S.Number), BlkioWeightDevice: S.optional(__S(577, __c18, 1)), BlkioDeviceReadBps: S.optional(__S(579, __c18, 3)), BlkioDeviceWriteBps: S.optional(__S(579, __c18, 3)), BlkioDeviceReadIOps: S.optional(__S(579, __c18, 3)), BlkioDeviceWriteIOps: S.optional(__S(579, __c18, 3)), CpuPeriod: S.optional(S.Number), CpuQuota: S.optional(S.Number), CpuRealtimePeriod: S.optional(S.Number), CpuRealtimeRuntime: S.optional(S.Number), CpusetCpus: S.optional(S.String), CpusetMems: S.optional(S.String), Devices: S.optional(__S(581, __c18, 5)), DeviceCgroupRules: S.optional(__S(2848, __c89, 0)), DeviceRequests: S.optional(__S(583, __c18, 7)), MemoryReservation: S.optional(S.Number), MemorySwap: S.optional(S.Number), MemorySwappiness: S.optional(S.Number), NanoCpus: S.optional(S.Number), OomKillDisable: S.optional(S.Boolean), Init: S.optional(S.NullOr(S.Boolean)), PidsLimit: S.optional(S.NullOr(S.Number)), Ulimits: S.optional(__S(641, __c20, 1)), CpuCount: S.optional(S.Number), CpuPercent: S.optional(S.Number), IOMaximumIOps: S.optional(S.Number), IOMaximumBandwidth: S.optional(S.Number), Binds: S.optional(__S(2848, __c89, 0)), ContainerIDFile: S.optional(S.String), LogConfig: S.optional(__S(544, __c17, 0)), NetworkMode: S.optional(S.String), PortBindings: S.optional(__S(547, __c17, 3)), RestartPolicy: S.optional(__S(584, __c18, 8)), AutoRemove: S.optional(S.Boolean), VolumeDriver: S.optional(S.String), VolumesFrom: S.optional(__S(2848, __c89, 0)), Mounts: S.optional(__S(677, __c21, 5)), ConsoleSize: S.optional(S.NullOr(__S(480, __c15, 0))), Annotations: S.optional(__S(3552, __c111, 0)), CapAdd: S.optional(__S(2848, __c89, 0)), CapDrop: S.optional(__S(2848, __c89, 0)), CgroupnsMode: S.optional(S.String), Dns: S.optional(__S(2848, __c89, 0)), DnsOptions: S.optional(__S(2848, __c89, 0)), DnsSearch: S.optional(__S(2848, __c89, 0)), ExtraHosts: S.optional(__S(2848, __c89, 0)), GroupAdd: S.optional(__S(2848, __c89, 0)), IpcMode: S.optional(S.String), Cgroup: S.optional(S.String), Links: S.optional(__S(2848, __c89, 0)), OomScoreAdj: S.optional(S.Number), PidMode: S.optional(S.String), Privileged: S.optional(S.Boolean), PublishAllPorts: S.optional(S.Boolean), ReadonlyRootfs: S.optional(S.Boolean), SecurityOpt: S.optional(__S(2848, __c89, 0)), StorageOpt: S.optional(__S(3552, __c111, 0)), Tmpfs: S.optional(__S(3552, __c111, 0)), UTSMode: S.optional(S.String), UsernsMode: S.optional(S.String), ShmSize: S.optional(S.Number), Sysctls: S.optional(S.NullOr(__S(3552, __c111, 0))), Runtime: S.optional(S.NullOr(S.String)), Umask: S.optional(S.NullOr(S.Number)), Isolation: S.optional(S.String), MaskedPaths: S.optional(__S(2848, __c89, 0)), ReadonlyPaths: S.optional(__S(2848, __c89, 0)), }), ).annotate({ identifier: "HostConfig" }); } } function __c18(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Path: S.optional(S.String), Weight: S.optional(S.Number), }), ).annotate({ identifier: "HostConfigBlkioWeightDeviceItem" }); case 1: return S.Array(__S(576, __c18, 0)); case 2: return S.suspend(() => S.Struct({ Path: S.optional(S.String), Rate: S.optional(S.Number), }), ).annotate({ identifier: "ThrottleDevice" }); case 3: return S.Array(__S(578, __c18, 2)); case 4: return S.suspend(() => S.Struct({ PathOnHost: S.optional(S.String), PathInContainer: S.optional(S.String), CgroupPermissions: S.optional(S.String), }), ).annotate({ identifier: "DeviceMapping" }); case 5: return S.Array(__S(580, __c18, 4)); case 6: return S.suspend(() => S.Struct({ Driver: S.optional(S.String), Count: S.optional(S.Number), DeviceIDs: S.optional(__S(2848, __c89, 0)), Capabilities: S.optional(__S(512, __c16, 0)), Options: S.optional(__S(3552, __c111, 0)), }), ).annotate({ identifier: "DeviceRequest" }); case 7: return S.Array(__S(582, __c18, 6)); case 8: return S.suspend(() => S.Struct({ Name: S.optional(S.String), MaximumRetryCount: S.optional(S.Number), }), ).annotate({ identifier: "RestartPolicy" }); } } function __c19(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Name: S.optional(S.String), Options: S.optional(__S(3552, __c111, 0)), }), ).annotate({ identifier: "MountVolumeOptionsDriverConfig" }); } } function __c20(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Name: S.optional(S.String), Soft: S.optional(S.Number), Hard: S.optional(S.Number), }), ).annotate({ identifier: "HostConfigUlimitsItem" }); case 1: return S.Array(__S(640, __c20, 0)); } } function __c21(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Propagation: S.optional(S.String), NonRecursive: S.optional(S.Boolean), CreateMountpoint: S.optional(S.Boolean), ReadOnlyNonRecursive: S.optional(S.Boolean), ReadOnlyForceRecursive: S.optional(S.Boolean), }), ).annotate({ identifier: "MountBindOptions" }); case 1: return S.suspend(() => S.Struct({ NoCopy: S.optional(S.Boolean), Labels: S.optional(__S(3552, __c111, 0)), DriverConfig: S.optional(__S(608, __c19, 0)), Subpath: S.optional(S.String), }), ).annotate({ identifier: "MountVolumeOptions" }); case 2: return S.suspend(() => S.Struct({ Subpath: S.optional(S.String), }), ).annotate({ identifier: "MountImageOptions" }); case 3: return S.suspend(() => S.Struct({ SizeBytes: S.optional(S.Number), Mode: S.optional(S.Number), Options: S.optional(__S(512, __c16, 0)), }), ).annotate({ identifier: "MountTmpfsOptions" }); case 4: return S.suspend(() => S.Struct({ Target: S.optional(S.String), Source: S.optional(S.String), Type: S.optional(S.String), ReadOnly: S.optional(S.Boolean), Consistency: S.optional(S.String), BindOptions: S.optional(__S(672, __c21, 0)), VolumeOptions: S.optional(__S(673, __c21, 1)), ImageOptions: S.optional(__S(674, __c21, 2)), TmpfsOptions: S.optional(__S(675, __c21, 3)), }), ).annotate({ identifier: "Mount" }); case 5: return S.Array(__S(676, __c21, 4)); } } function __c22(j: number): any { switch (j) { case 0: return S.Record(S.String, __S(4449, __c139, 1)); } } function __c23(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ architecture: S.optional(S.String), os: S.optional(S.String), os_version: S.optional(S.String.pipe(T.Body("os.version"))), os_features: S.optional(__S(2848, __c89, 0).pipe(T.Body("os.features"))), variant: S.optional(S.String), }), ).annotate({ identifier: "OCIPlatform" }); case 1: return S.suspend(() => S.Struct({ mediaType: S.optional(S.String), digest: S.optional(S.String), size: S.optional(S.Number), urls: S.optional(S.NullOr(__S(2848, __c89, 0))), annotations: S.optional(S.NullOr(__S(3552, __c111, 0))), data: S.optional(S.NullOr(S.String)), platform: S.optional(S.NullOr(__S(736, __c23, 0))), artifactType: S.optional(S.NullOr(S.String)), }), ).annotate({ identifier: "OCIDescriptor" }); } } function __c24(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Name: S.String, Data: __S(3552, __c111, 0), }), ).annotate({ identifier: "DriverData" }); } } function __c25(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Type: S.optional(S.String), Name: S.optional(S.String), Source: S.optional(S.String), Destination: S.optional(S.String), Driver: S.optional(S.String), Mode: S.optional(S.String), RW: S.optional(S.Boolean), Propagation: S.optional(S.String), }), ).annotate({ identifier: "MountPoint" }); case 1: return S.Array(__S(800, __c25, 0)); } } function __c26(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ id: S.String.pipe(T.Label()), follow: S.optional(S.Boolean.pipe(T.Query())), stdout: S.optional(S.Boolean.pipe(T.Query())), stderr: S.optional(S.Boolean.pipe(T.Query())), since: S.optional(S.Number.pipe(T.Query())), until: S.optional(S.Number.pipe(T.Query())), timestamps: S.optional(S.Boolean.pipe(T.Query())), tail: S.optional(S.String.pipe(T.Query())), }).pipe(T.Http({ method: "GET", uri: "/containers/{id}/logs", code: 200 })), ).annotate({ identifier: "ContainerLogsRequest" }); } } function __c27(j: number): any { switch (j) { case 0: return S.suspend(() => S.String.pipe(T.RawResponseRoot())).annotate({ identifier: "ContainerLogsResponse", }); } } function __c28(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ filters: S.optional(S.String.pipe(T.Query())), }).pipe(T.Http({ method: "POST", uri: "/containers/prune", code: 200 })), ).annotate({ identifier: "ContainerPruneRequest" }); case 1: return S.suspend(() => S.Struct({ ContainersDeleted: S.optional(__S(2848, __c89, 0)), SpaceReclaimed: S.optional(S.Number), }), ).annotate({ identifier: "ContainerPruneResponse" }); } } function __c29(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ id: S.String.pipe(T.Label()), stream: S.optional(S.Boolean.pipe(T.Query())), one_shot: S.optional(S.Boolean.pipe(T.Query("one-shot"))), }).pipe(T.Http({ method: "GET", uri: "/containers/{id}/stats", code: 200 })), ).annotate({ identifier: "ContainerStatsRequest" }); case 1: return S.suspend(() => S.Struct({ total_usage: S.optional(S.Number), percpu_usage: S.optional(S.NullOr(__S(480, __c15, 0))), usage_in_kernelmode: S.optional(S.Number), usage_in_usermode: S.optional(S.Number), }), ).annotate({ identifier: "ContainerCPUUsage" }); case 2: return S.suspend(() => S.Struct({ periods: S.optional(S.Number), throttled_periods: S.optional(S.Number), throttled_time: S.optional(S.Number), }), ).annotate({ identifier: "ContainerThrottlingData" }); case 3: return S.suspend(() => S.Struct({ cpu_usage: S.optional(S.NullOr(__S(929, __c29, 1))), system_cpu_usage: S.optional(S.NullOr(S.Number)), online_cpus: S.optional(S.NullOr(S.Number)), throttling_data: S.optional(S.NullOr(__S(930, __c29, 2))), }), ).annotate({ identifier: "ContainerCPUStats" }); case 4: return S.Record(S.String, /*@__PURE__*/ S.NullOr(S.Number)); case 5: return S.suspend(() => S.Struct({ usage: S.optional(S.NullOr(S.Number)), max_usage: S.optional(S.NullOr(S.Number)), stats: S.optional(__S(932, __c29, 4)), failcnt: S.optional(S.NullOr(S.Number)), limit: S.optional(S.NullOr(S.Number)), commitbytes: S.optional(S.NullOr(S.Number)), commitpeakbytes: S.optional(S.NullOr(S.Number)), privateworkingset: S.optional(S.NullOr(S.Number)), }), ).annotate({ identifier: "ContainerMemoryStats" }); case 6: return S.suspend(() => S.Struct({ rx_bytes: S.optional(S.Number), rx_packets: S.optional(S.Number), rx_errors: S.optional(S.Number), rx_dropped: S.optional(S.Number), tx_bytes: S.optional(S.Number), tx_packets: S.optional(S.Number), tx_errors: S.optional(S.Number), tx_dropped: S.optional(S.Number), endpoint_id: S.optional(S.NullOr(S.String)), instance_id: S.optional(S.NullOr(S.String)), }), ).annotate({ identifier: "ContainerNetworkStats" }); case 7: return S.Record(S.String, /*@__PURE__*/ S.NullOr(__S(934, __c29, 6))); case 8: return S.suspend(() => S.Struct({ current: S.optional(S.NullOr(S.Number)), limit: S.optional(S.NullOr(S.Number)), }), ).annotate({ identifier: "ContainerPidsStats" }); case 9: return S.suspend(() => S.Struct({ major: S.optional(S.Number), minor: S.optional(S.Number), op: S.optional(S.String), value: S.optional(S.Number), }), ).annotate({ identifier: "ContainerBlkioStatEntry" }); case 10: return S.Array(/*@__PURE__*/ S.NullOr(__S(937, __c29, 9))); case 11: return S.suspend(() => S.Struct({ io_service_bytes_recursive: S.optional(__S(938, __c29, 10)), io_serviced_recursive: S.optional(S.NullOr(__S(938, __c29, 10))), io_queue_recursive: S.optional(S.NullOr(__S(938, __c29, 10))), io_service_time_recursive: S.optional(S.NullOr(__S(938, __c29, 10))), io_wait_time_recursive: S.optional(S.NullOr(__S(938, __c29, 10))), io_merged_recursive: S.optional(S.NullOr(__S(938, __c29, 10))), io_time_recursive: S.optional(S.NullOr(__S(938, __c29, 10))), sectors_recursive: S.optional(S.NullOr(__S(938, __c29, 10))), }), ).annotate({ identifier: "ContainerBlkioStats" }); case 12: return S.suspend(() => S.Struct({ read_count_normalized: S.optional(S.NullOr(S.Number)), read_size_bytes: S.optional(S.NullOr(S.Number)), write_count_normalized: S.optional(S.NullOr(S.Number)), write_size_bytes: S.optional(S.NullOr(S.Number)), }), ).annotate({ identifier: "ContainerStorageStats" }); case 13: return S.suspend(() => S.Struct({ id: S.optional(S.NullOr(S.String)), name: S.optional(S.NullOr(S.String)), os_type: S.optional(S.NullOr(S.String)), read: S.optional(S.String), cpu_stats: S.optional(S.NullOr(__S(931, __c29, 3))), memory_stats: S.optional(__S(933, __c29, 5)), networks: S.optional(S.NullOr(__S(935, __c29, 7))), pids_stats: S.optional(S.NullOr(__S(936, __c29, 8))), blkio_stats: S.optional(S.NullOr(__S(939, __c29, 11))), num_procs: S.optional(S.Number), storage_stats: S.optional(S.NullOr(__S(940, __c29, 12))), preread: S.optional(S.String), precpu_stats: S.optional(S.NullOr(__S(931, __c29, 3))), }), ).annotate({ identifier: "ContainerStatsResponse" }); } } function __c30(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ id: S.String.pipe(T.Label()), ps_args: S.optional(S.String.pipe(T.Query())), }).pipe(T.Http({ method: "GET", uri: "/containers/{id}/top", code: 200 })), ).annotate({ identifier: "ContainerTopRequest" }); case 1: return S.suspend(() => S.Struct({ Titles: S.optional(__S(2848, __c89, 0)), Processes: S.optional(__S(512, __c16, 0)), }), ).annotate({ identifier: "ContainerTopResponse" }); } } function __c31(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Name: S.optional(S.String), Labels: S.optional(__S(3552, __c111, 0)), Data: S.optional(S.String), Templating: S.optional(__S(3936, __c123, 0)), }).pipe(T.Http({ method: "POST", uri: "/configs/create", code: 200 })), ).annotate({ identifier: "CreateConfigRequest" }); } } function __c32(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ EndpointsConfig: S.optional(__S(704, __c22, 0)), }), ).annotate({ identifier: "NetworkingConfig" }); case 1: return S.suspend(() => S.Struct({ name: S.optional(S.String.pipe(T.Query())), platform: S.optional(S.String.pipe(T.Query())), Hostname: S.optional(S.String), Domainname: S.optional(S.String), User: S.optional(S.String), AttachStdin: S.optional(S.Boolean), AttachStdout: S.optional(S.Boolean), AttachStderr: S.optional(S.Boolean), ExposedPorts: S.optional(S.NullOr(__S(3488, __c109, 0))), Tty: S.optional(S.Boolean), OpenStdin: S.optional(S.Boolean), StdinOnce: S.optional(S.Boolean), Env: S.optional(__S(2848, __c89, 0)), Cmd: S.optional(__S(2848, __c89, 0)), Healthcheck: S.optional(__S(3456, __c108, 0)), ArgsEscaped: S.optional(S.NullOr(S.Boolean)), Image: S.optional(S.String), Volumes: S.optional(__S(3488, __c109, 0)), WorkingDir: S.optional(S.String), Entrypoint: S.optional(__S(2848, __c89, 0)), NetworkDisabled: S.optional(S.NullOr(S.Boolean)), OnBuild: S.optional(S.NullOr(__S(2848, __c89, 0))), Labels: S.optional(__S(3552, __c111, 0)), StopSignal: S.optional(S.NullOr(S.String)), StopTimeout: S.optional(S.NullOr(S.Number)), Shell: S.optional(S.NullOr(__S(2848, __c89, 0))), HostConfig: S.optional(__S(548, __c17, 4)), NetworkingConfig: S.optional(__S(1024, __c32, 0)), }).pipe(T.Http({ method: "POST", uri: "/containers/create", code: 200 })), ).annotate({ identifier: "CreateContainerRequest" }); case 2: return S.suspend(() => S.Struct({ Id: S.String, Warnings: __S(2848, __c89, 0), }), ).annotate({ identifier: "ContainerCreateResponse" }); } } function __c33(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ fromImage: S.optional(S.String.pipe(T.Query())), fromSrc: S.optional(S.String.pipe(T.Query())), repo: S.optional(S.String.pipe(T.Query())), tag: S.optional(S.String.pipe(T.Query())), message: S.optional(S.String.pipe(T.Query())), changes: S.optional(__S(2848, __c89, 0).pipe(T.Query())), platform: S.optional(S.String.pipe(T.Query())), xRegistryAuth: S.optional( S.String.pipe(T.Header("X-Registry-Auth"), T.SensitiveValue({})), ), body: S.optional(S.String.pipe(T.HttpBody())), }).pipe(T.Http({ method: "POST", uri: "/images/create", code: 200 })), ).annotate({ identifier: "CreateImageRequest" }); } } function __c34(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Name: S.String, Driver: S.optional(S.String), Scope: S.optional(S.String), Internal: S.optional(S.Boolean), Attachable: S.optional(S.Boolean), Ingress: S.optional(S.Boolean), ConfigOnly: S.optional(S.Boolean), ConfigFrom: S.optional(__S(1120, __c35, 0)), IPAM: S.optional(__S(1123, __c35, 3)), EnableIPv4: S.optional(S.Boolean), EnableIPv6: S.optional(S.Boolean), Options: S.optional(__S(3552, __c111, 0)), Labels: S.optional(__S(3552, __c111, 0)), }).pipe(T.Http({ method: "POST", uri: "/networks/create", code: 200 })), ).annotate({ identifier: "CreateNetworkRequest" }); case 1: return S.suspend(() => S.Struct({ Id: S.String, Warning: S.String, }), ).annotate({ identifier: "NetworkCreateResponse" }); } } function __c35(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Network: S.optional(S.String), }), ).annotate({ identifier: "ConfigReference" }); case 1: return S.suspend(() => S.Struct({ Subnet: S.optional(S.String), IPRange: S.optional(S.String), Gateway: S.optional(S.String), AuxiliaryAddresses: S.optional(__S(3552, __c111, 0)), }), ).annotate({ identifier: "IPAMConfig" }); case 2: return S.Array(__S(1121, __c35, 1)); case 3: return S.suspend(() => S.Struct({ Driver: S.optional(S.String), Config: S.optional(__S(1122, __c35, 2)), Options: S.optional(__S(3552, __c111, 0)), }), ).annotate({ identifier: "IPAM" }); } } function __c36(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ name: S.String.pipe(T.Query()), body: S.optional(S.String.pipe(T.HttpBody())), }).pipe(T.Http({ method: "POST", uri: "/plugins/create", code: 200 })), ).annotate({ identifier: "CreatePluginRequest" }); } } function __c37(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Name: S.optional(S.String), Labels: S.optional(__S(3552, __c111, 0)), Data: S.optional(S.String), Driver: S.optional(__S(3936, __c123, 0)), Templating: S.optional(__S(3936, __c123, 0)), }).pipe(T.Http({ method: "POST", uri: "/secrets/create", code: 200 })), ).annotate({ identifier: "CreateSecretRequest" }); } } function __c38(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ xRegistryAuth: S.optional( S.String.pipe(T.Header("X-Registry-Auth"), T.SensitiveValue({})), ), Name: S.optional(S.String), Labels: S.optional(__S(3552, __c111, 0)), TaskTemplate: S.optional(__S(1368, __c42, 24)), Mode: S.optional(__S(1378, __c43, 2)), UpdateConfig: S.optional(__S(1379, __c43, 3)), RollbackConfig: S.optional(__S(1379, __c43, 3)), Networks: S.optional(__S(1367, __c42, 23)), EndpointSpec: S.optional(__S(1380, __c43, 4)), }).pipe(T.Http({ method: "POST", uri: "/services/create", code: 200 })), ).annotate({ identifier: "CreateServiceRequest" }); case 1: return S.suspend(() => S.Struct({ ID: S.optional(S.String), Warnings: S.optional(S.NullOr(__S(2848, __c89, 0))), }), ).annotate({ identifier: "ServiceCreateResponse" }); } } function __c39(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Name: S.optional(S.String), Description: S.optional(S.String), Value: S.optional(__S(2848, __c89, 0)), }), ).annotate({ identifier: "PluginPrivilege" }); case 1: return S.Array(__S(1248, __c39, 0)); } } function __c40(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Kind: S.optional(S.String), Value: S.optional(S.String), }), ).annotate({ identifier: "GenericResourcesItemNamedResourceSpec" }); case 1: return S.suspend(() => S.Struct({ Kind: S.optional(S.String), Value: S.optional(S.Number), }), ).annotate({ identifier: "GenericResourcesItemDiscreteResourceSpec" }); case 2: return S.suspend(() => S.Struct({ NamedResourceSpec: S.optional(__S(1280, __c40, 0)), DiscreteResourceSpec: S.optional(__S(1281, __c40, 1)), }), ).annotate({ identifier: "GenericResourcesItem" }); case 3: return S.Array(__S(1282, __c40, 2)); } } function __c41(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ NanoCPUs: S.optional(S.Number), MemoryBytes: S.optional(S.Number), GenericResources: S.optional(__S(1283, __c40, 3)), }), ).annotate({ identifier: "ResourceObject" }); case 1: return S.suspend(() => S.Struct({ Architecture: S.optional(S.String), OS: S.optional(S.String), }), ).annotate({ identifier: "Platform" }); } } function __c42(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Name: S.optional(S.String), Remote: S.optional(S.String), Disabled: S.optional(S.Boolean), PluginPrivilege: S.optional(__S(1249, __c39, 1)), }), ).annotate({ identifier: "TaskSpecPluginSpec" }); case 1: return S.suspend(() => S.Struct({ Config: S.optional(S.String), File: S.optional(S.String), Registry: S.optional(S.String), }), ).annotate({ identifier: "TaskSpecContainerSpecPrivilegesCredentialSpec" }); case 2: return S.suspend(() => S.Struct({ Disable: S.optional(S.Boolean), User: S.optional(S.String), Role: S.optional(S.String), Type: S.optional(S.String), Level: S.optional(S.String), }), ).annotate({ identifier: "TaskSpecContainerSpecPrivilegesSELinuxContext" }); case 3: return S.suspend(() => S.Struct({ Mode: S.optional(S.String), Profile: S.optional(S.String), }), ).annotate({ identifier: "TaskSpecContainerSpecPrivilegesSeccomp" }); case 4: return S.suspend(() => S.Struct({ Mode: S.optional(S.String), }), ).annotate({ identifier: "TaskSpecContainerSpecPrivilegesAppArmor" }); case 5: return S.suspend(() => S.Struct({ CredentialSpec: S.optional(__S(1345, __c42, 1)), SELinuxContext: S.optional(__S(1346, __c42, 2)), Seccomp: S.optional(__S(1347, __c42, 3)), AppArmor: S.optional(__S(1348, __c42, 4)), NoNewPrivileges: S.optional(S.Boolean), }), ).annotate({ identifier: "TaskSpecContainerSpecPrivileges" }); case 6: return S.suspend(() => S.Struct({ Nameservers: S.optional(__S(2848, __c89, 0)), Search: S.optional(__S(2848, __c89, 0)), Options: S.optional(__S(2848, __c89, 0)), }), ).annotate({ identifier: "TaskSpecContainerSpecDNSConfig" }); case 7: return S.suspend(() => S.Struct({ Name: S.optional(S.String), UID: S.optional(S.String), GID: S.optional(S.String), Mode: S.optional(S.Number), }), ).annotate({ identifier: "TaskSpecContainerSpecSecretsItemFile" }); case 8: return S.suspend(() => S.Struct({ File: S.optional(__S(1351, __c42, 7)), SecretID: S.optional(S.String), SecretName: S.optional(S.String), }), ).annotate({ identifier: "TaskSpecContainerSpecSecretsItem" }); case 9: return S.Array(__S(1352, __c42, 8)); case 10: return S.suspend(() => S.Struct({ File: S.optional(__S(1351, __c42, 7)), Runtime: S.optional(S.Unknown), ConfigID: S.optional(S.String), ConfigName: S.optional(S.String), }), ).annotate({ identifier: "TaskSpecContainerSpecConfigsItem" }); case 11: return S.Array(__S(1354, __c42, 10)); case 12: return S.suspend(() => S.Struct({ Image: S.optional(S.String), Labels: S.optional(__S(3552, __c111, 0)), Command: S.optional(__S(2848, __c89, 0)), Args: S.optional(__S(2848, __c89, 0)), Hostname: S.optional(S.String), Env: S.optional(__S(2848, __c89, 0)), Dir: S.optional(S.String), User: S.optional(S.String), Groups: S.optional(__S(2848, __c89, 0)), Privileges: S.optional(__S(1349, __c42, 5)), TTY: S.optional(S.Boolean), OpenStdin: S.optional(S.Boolean), ReadOnly: S.optional(S.Boolean), Mounts: S.optional(__S(677, __c21, 5)), StopSignal: S.optional(S.String), StopGracePeriod: S.optional(S.Number), Healthcheck: S.optional(__S(3456, __c108, 0)), Hosts: S.optional(__S(2848, __c89, 0)), DNSConfig: S.optional(__S(1350, __c42, 6)), Secrets: S.optional(__S(1353, __c42, 9)), OomScoreAdj: S.optional(S.Number), Configs: S.optional(__S(1355, __c42, 11)), Isolation: S.optional(S.String), Init: S.optional(S.NullOr(S.Boolean)), Sysctls: S.optional(__S(3552, __c111, 0)), CapabilityAdd: S.optional(__S(2848, __c89, 0)), CapabilityDrop: S.optional(__S(2848, __c89, 0)), Ulimits: S.optional(__S(641, __c20, 1)), }), ).annotate({ identifier: "TaskSpecContainerSpec" }); case 13: return S.suspend(() => S.Struct({ ContainerID: S.optional(S.String), }), ).annotate({ identifier: "TaskSpecNetworkAttachmentSpec" }); case 14: return S.suspend(() => S.Struct({ NanoCPUs: S.optional(S.Number), MemoryBytes: S.optional(S.Number), Pids: S.optional(S.Number), }), ).annotate({ identifier: "Limit" }); case 15: return S.suspend(() => S.Struct({ Limits: S.optional(__S(1358, __c42, 14)), Reservations: S.optional(__S(1312, __c41, 0)), SwapBytes: S.optional(S.NullOr(S.Number)), MemorySwappiness: S.optional(S.NullOr(S.Number)), }), ).annotate({ identifier: "TaskSpecResources" }); case 16: return S.suspend(() => S.Struct({ Condition: S.optional(S.String), Delay: S.optional(S.Number), MaxAttempts: S.optional(S.Number), Window: S.optional(S.Number), }), ).annotate({ identifier: "TaskSpecRestartPolicy" }); case 17: return S.suspend(() => S.Struct({ SpreadDescriptor: S.optional(S.String), }), ).annotate({ identifier: "TaskSpecPlacementPreferencesItemSpread" }); case 18: return S.suspend(() => S.Struct({ Spread: S.optional(__S(1361, __c42, 17)), }), ).annotate({ identifier: "TaskSpecPlacementPreferencesItem" }); case 19: return S.Array(__S(1362, __c42, 18)); case 20: return S.Array(__S(1313, __c41, 1)); case 21: return S.suspend(() => S.Struct({ Constraints: S.optional(__S(2848, __c89, 0)), Preferences: S.optional(__S(1363, __c42, 19)), MaxReplicas: S.optional(S.Number), Platforms: S.optional(__S(1364, __c42, 20)), }), ).annotate({ identifier: "TaskSpecPlacement" }); case 22: return S.suspend(() => S.Struct({ Target: S.optional(S.String), Aliases: S.optional(__S(2848, __c89, 0)), DriverOpts: S.optional(__S(3552, __c111, 0)), }), ).annotate({ identifier: "NetworkAttachmentConfig" }); case 23: return S.Array(__S(1366, __c42, 22)); case 24: return S.suspend(() => S.Struct({ PluginSpec: S.optional(__S(1344, __c42, 0)), ContainerSpec: S.optional(__S(1356, __c42, 12)), NetworkAttachmentSpec: S.optional(__S(1357, __c42, 13)), Resources: S.optional(__S(1359, __c42, 15)), RestartPolicy: S.optional(__S(1360, __c42, 16)), Placement: S.optional(__S(1365, __c42, 21)), ForceUpdate: S.optional(S.Number), Runtime: S.optional(S.String), Networks: S.optional(__S(1367, __c42, 23)), LogDriver: S.optional(__S(608, __c19, 0)), }), ).annotate({ identifier: "TaskSpec" }); case 25: return S.suspend(() => S.Struct({ Name: S.optional(S.String), Protocol: S.optional(S.String), TargetPort: S.optional(S.Number), PublishedPort: S.optional(S.Number), PublishMode: S.optional(S.String), }), ).annotate({ identifier: "EndpointPortConfig" }); case 26: return S.Array(__S(1369, __c42, 25)); } } function __c43(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Replicas: S.optional(S.Number), }), ).annotate({ identifier: "CreateServiceRequestModeReplicated" }); case 1: return S.suspend(() => S.Struct({ MaxConcurrent: S.optional(S.Number), TotalCompletions: S.optional(S.Number), }), ).annotate({ identifier: "CreateServiceRequestModeReplicatedJob" }); case 2: return S.suspend(() => S.Struct({ Replicated: S.optional(__S(1376, __c43, 0)), Global: S.optional(S.Unknown), ReplicatedJob: S.optional(__S(1377, __c43, 1)), GlobalJob: S.optional(S.Unknown), }), ).annotate({ identifier: "CreateServiceRequestMode" }); case 3: return S.suspend(() => S.Struct({ Parallelism: S.optional(S.Number), Delay: S.optional(S.Number), FailureAction: S.optional(S.String), Monitor: S.optional(S.Number), MaxFailureRatio: S.optional(S.Number), Order: S.optional(S.String), }), ).annotate({ identifier: "CreateServiceRequestUpdateConfig" }); case 4: return S.suspend(() => S.Struct({ Mode: S.optional(S.String), Ports: S.optional(__S(1370, __c42, 26)), }), ).annotate({ identifier: "EndpointSpec" }); } } function __c44(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Name: S.optional(S.String), Driver: S.optional(S.String), DriverOpts: S.optional(__S(3552, __c111, 0)), Labels: S.optional(__S(3552, __c111, 0)), ClusterVolumeSpec: S.optional(__S(1447, __c45, 7)), }).pipe(T.Http({ method: "POST", uri: "/volumes/create", code: 200 })), ).annotate({ identifier: "CreateVolumeRequest" }); } } function __c45(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Key: S.optional(S.String), Secret: S.optional(S.String.pipe(T.SensitiveValue({}))), }), ).annotate({ identifier: "ClusterVolumeSpecAccessModeSecretsItem" }); case 1: return S.Array(__S(1440, __c45, 0)); case 2: return S.suspend(() => S.Struct({ Segments: S.optional(__S(3552, __c111, 0)), }), ).annotate({ identifier: "Topology" }); case 3: return S.Array(__S(1442, __c45, 2)); case 4: return S.suspend(() => S.Struct({ Requisite: S.optional(__S(1443, __c45, 3)), Preferred: S.optional(__S(1443, __c45, 3)), }), ).annotate({ identifier: "ClusterVolumeSpecAccessModeAccessibilityRequirements" }); case 5: return S.suspend(() => S.Struct({ RequiredBytes: S.optional(S.Number), LimitBytes: S.optional(S.Number), }), ).annotate({ identifier: "ClusterVolumeSpecAccessModeCapacityRange" }); case 6: return S.suspend(() => S.Struct({ Scope: S.optional(S.String), Sharing: S.optional(S.String), MountVolume: S.optional(S.Unknown), Secrets: S.optional(__S(1441, __c45, 1)), AccessibilityRequirements: S.optional(__S(1444, __c45, 4)), CapacityRange: S.optional(__S(1445, __c45, 5)), Availability: S.optional(S.String), }), ).annotate({ identifier: "ClusterVolumeSpecAccessMode" }); case 7: return S.suspend(() => S.Struct({ Group: S.optional(S.String), AccessMode: S.optional(__S(1446, __c45, 6)), }), ).annotate({ identifier: "ClusterVolumeSpec" }); } } function __c46(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ CapacityBytes: S.optional(S.Number), VolumeContext: S.optional(__S(3552, __c111, 0)), VolumeID: S.optional(S.String), AccessibleTopology: S.optional(__S(1443, __c45, 3)), }), ).annotate({ identifier: "ClusterVolumeInfo" }); case 1: return S.suspend(() => S.Struct({ NodeID: S.optional(S.String), State: S.optional(S.String), PublishContext: S.optional(__S(3552, __c111, 0)), }), ).annotate({ identifier: "ClusterVolumePublishStatusItem" }); case 2: return S.Array(__S(1473, __c46, 1)); case 3: return S.suspend(() => S.Struct({ ID: S.optional(S.String), Version: S.optional(__S(3968, __c124, 0)), CreatedAt: S.optional(S.String), UpdatedAt: S.optional(S.String), Spec: S.optional(__S(1447, __c45, 7)), Info: S.optional(__S(1472, __c46, 0)), PublishStatus: S.optional(__S(1474, __c46, 2)), }), ).annotate({ identifier: "ClusterVolume" }); case 4: return S.suspend(() => S.Struct({ Size: S.Number, RefCount: S.Number, }), ).annotate({ identifier: "VolumeUsageData" }); case 5: return S.suspend(() => S.Struct({ Name: S.String, Driver: S.String, Mountpoint: S.String, CreatedAt: S.optional(S.String), Status: S.optional(__S(3488, __c109, 0)), Labels: __S(3552, __c111, 0), Scope: S.String, ClusterVolume: S.optional(__S(1475, __c46, 3)), Options: __S(3552, __c111, 0), UsageData: S.optional(S.NullOr(__S(1476, __c46, 4))), }), ).annotate({ identifier: "Volume" }); } } function __c47(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ id: S.String.pipe(T.Label()), }).pipe(T.Http({ method: "DELETE", uri: "/configs/{id}", code: 200 })), ).annotate({ identifier: "DeleteConfigRequest" }); } } function __c48(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ id: S.String.pipe(T.Label()), v: S.optional(S.Boolean.pipe(T.Query())), force: S.optional(S.Boolean.pipe(T.Query())), link: S.optional(S.Boolean.pipe(T.Query())), }).pipe(T.Http({ method: "DELETE", uri: "/containers/{id}", code: 200 })), ).annotate({ identifier: "DeleteContainerRequest" }); } } function __c49(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ name: S.String.pipe(T.Label()), force: S.optional(S.Boolean.pipe(T.Query())), noprune: S.optional(S.Boolean.pipe(T.Query())), platforms: S.optional(__S(2848, __c89, 0).pipe(T.Query())), }).pipe(T.Http({ method: "DELETE", uri: "/images/{name}", code: 200 })), ).annotate({ identifier: "DeleteImageRequest" }); case 1: return S.suspend(() => __S(1601, __c50, 1).pipe(T.RawResponseRoot())).annotate({ identifier: "DeleteImageResponse", }); } } function __c50(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Untagged: S.optional(S.String), Deleted: S.optional(S.String), }), ).annotate({ identifier: "ImageDeleteResponseItem" }); case 1: return S.Array(__S(1600, __c50, 0)); } } function __c51(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ id: S.String.pipe(T.Label()), }).pipe(T.Http({ method: "DELETE", uri: "/networks/{id}", code: 200 })), ).annotate({ identifier: "DeleteNetworkRequest" }); } } function __c52(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ id: S.String.pipe(T.Label()), force: S.optional(S.Boolean.pipe(T.Query())), }).pipe(T.Http({ method: "DELETE", uri: "/nodes/{id}", code: 200 })), ).annotate({ identifier: "DeleteNodeRequest" }); } } function __c53(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ name: S.String.pipe(T.Label()), force: S.optional(S.Boolean.pipe(T.Query())), }).pipe(T.Http({ method: "DELETE", uri: "/plugins/{name}", code: 200 })), ).annotate({ identifier: "DeletePluginRequest" }); } } function __c54(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Name: S.String, Description: S.String, Settable: __S(2848, __c89, 0), Source: S.String, Destination: S.String, Type: S.String, Options: __S(2848, __c89, 0), }), ).annotate({ identifier: "PluginMount" }); case 1: return S.Array(__S(1728, __c54, 0)); case 2: return S.suspend(() => S.Struct({ Name: S.String, Description: S.String, Settable: __S(2848, __c89, 0), Path: S.String, }), ).annotate({ identifier: "PluginDevice" }); case 3: return S.Array(__S(1730, __c54, 2)); case 4: return S.suspend(() => S.Struct({ Mounts: __S(1729, __c54, 1), Env: __S(2848, __c89, 0), Args: __S(2848, __c89, 0), Devices: __S(1731, __c54, 3), }), ).annotate({ identifier: "PluginSettings" }); case 5: return S.suspend(() => S.Struct({ Types: __S(2848, __c89, 0), Socket: S.String, ProtocolScheme: S.optional(S.String), }), ).annotate({ identifier: "PluginConfigInterface" }); case 6: return S.suspend(() => S.Struct({ UID: S.optional(S.Number), GID: S.optional(S.Number), }), ).annotate({ identifier: "PluginConfigUser" }); case 7: return S.suspend(() => S.Struct({ Type: S.String, }), ).annotate({ identifier: "PluginConfigNetwork" }); case 8: return S.suspend(() => S.Struct({ Capabilities: __S(2848, __c89, 0), AllowAllDevices: S.Boolean, Devices: __S(1731, __c54, 3), }), ).annotate({ identifier: "PluginConfigLinux" }); case 9: return S.suspend(() => S.Struct({ Name: S.String, Description: S.String, Settable: __S(2848, __c89, 0), Value: S.String, }), ).annotate({ identifier: "PluginEnv" }); case 10: return S.Array(__S(1737, __c54, 9)); case 11: return S.suspend(() => S.Struct({ Name: S.String, Description: S.String, Settable: __S(2848, __c89, 0), Value: __S(2848, __c89, 0), }), ).annotate({ identifier: "PluginConfigArgs" }); case 12: return S.suspend(() => S.Struct({ type: S.optional(S.String), diff_ids: S.optional(__S(2848, __c89, 0)), }), ).annotate({ identifier: "PluginConfigRootfs" }); case 13: return S.suspend(() => S.Struct({ Description: S.String, Documentation: S.String, Interface: __S(1733, __c54, 5), Entrypoint: __S(2848, __c89, 0), WorkDir: S.String, User: S.optional(__S(1734, __c54, 6)), Network: __S(1735, __c54, 7), Linux: __S(1736, __c54, 8), PropagatedMount: S.String, IpcHost: S.Boolean, PidHost: S.Boolean, Mounts: __S(1729, __c54, 1), Env: __S(1738, __c54, 10), Args: __S(1739, __c54, 11), rootfs: S.optional(__S(1740, __c54, 12)), }), ).annotate({ identifier: "PluginConfig" }); case 14: return S.suspend(() => S.Struct({ Id: S.optional(S.String), Name: S.String, Enabled: S.Boolean, Settings: __S(1732, __c54, 4), PluginReference: S.optional(S.String), Config: __S(1741, __c54, 13), }), ).annotate({ identifier: "Plugin" }); } } function __c55(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ id: S.String.pipe(T.Label()), }).pipe(T.Http({ method: "DELETE", uri: "/secrets/{id}", code: 200 })), ).annotate({ identifier: "DeleteSecretRequest" }); } } function __c56(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ id: S.String.pipe(T.Label()), }).pipe(T.Http({ method: "DELETE", uri: "/services/{id}", code: 200 })), ).annotate({ identifier: "DeleteServiceRequest" }); } } function __c57(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ name: S.String.pipe(T.Label()), force: S.optional(S.Boolean.pipe(T.Query())), }).pipe(T.Http({ method: "DELETE", uri: "/volumes/{name}", code: 200 })), ).annotate({ identifier: "DeleteVolumeRequest" }); } } function __c58(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ name: S.String.pipe(T.Label()), force: S.optional(S.Boolean.pipe(T.Query())), }).pipe(T.Http({ method: "POST", uri: "/plugins/{name}/disable", code: 200 })), ).annotate({ identifier: "DisablePluginRequest" }); } } function __c59(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ id: S.String.pipe(T.Label()), Container: S.String, Force: S.optional(S.Boolean), }).pipe(T.Http({ method: "POST", uri: "/networks/{id}/disconnect", code: 200 })), ).annotate({ identifier: "DisconnectNetworkRequest" }); } } function __c60(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ name: S.String.pipe(T.Label()), }).pipe(T.Http({ method: "GET", uri: "/distribution/{name}/json", code: 200 })), ).annotate({ identifier: "DistributionInspectRequest" }); case 1: return S.Array(/*@__PURE__*/ S.NullOr(__S(736, __c23, 0))); case 2: return S.suspend(() => S.Struct({ Descriptor: __S(737, __c23, 1), Platforms: __S(1921, __c60, 1), }), ).annotate({ identifier: "DistributionInspect" }); } } function __c61(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ name: S.String.pipe(T.Label()), timeout: S.optional(S.Number.pipe(T.Query())), }).pipe(T.Http({ method: "POST", uri: "/plugins/{name}/enable", code: 200 })), ).annotate({ identifier: "EnablePluginRequest" }); } } function __c62(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ id: S.String.pipe(T.Label()), AttachStdin: S.optional(S.Boolean), AttachStdout: S.optional(S.Boolean), AttachStderr: S.optional(S.Boolean), ConsoleSize: S.optional(S.NullOr(__S(480, __c15, 0))), DetachKeys: S.optional(S.String), Tty: S.optional(S.Boolean), Env: S.optional(__S(2848, __c89, 0)), Cmd: S.optional(__S(2848, __c89, 0)), Privileged: S.optional(S.Boolean), User: S.optional(S.String), WorkingDir: S.optional(S.String), }).pipe(T.Http({ method: "POST", uri: "/containers/{id}/exec", code: 200 })), ).annotate({ identifier: "ExecContainerRequest" }); } } function __c63(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ id: S.String.pipe(T.Label()), }).pipe(T.Http({ method: "GET", uri: "/exec/{id}/json", code: 200 })), ).annotate({ identifier: "ExecInspectRequest" }); case 1: return S.suspend(() => S.Struct({ privileged: S.optional(S.Boolean), user: S.optional(S.String), tty: S.optional(S.Boolean), entrypoint: S.optional(S.String), arguments: S.optional(__S(2848, __c89, 0)), }), ).annotate({ identifier: "ProcessConfig" }); case 2: return S.suspend(() => S.Struct({ CanRemove: S.optional(S.Boolean), DetachKeys: S.optional(S.String), ID: S.optional(S.String), Running: S.optional(S.Boolean), ExitCode: S.optional(S.Number), ProcessConfig: S.optional(__S(2017, __c63, 1)), OpenStdin: S.optional(S.Boolean), OpenStderr: S.optional(S.Boolean), OpenStdout: S.optional(S.Boolean), ContainerID: S.optional(S.String), Pid: S.optional(S.Number), }), ).annotate({ identifier: "ExecInspectResponse" }); } } function __c64(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ id: S.String.pipe(T.Label()), path: S.String.pipe(T.Query()), }).pipe(T.Http({ method: "GET", uri: "/containers/{id}/archive", code: 200 })), ).annotate({ identifier: "ArchiveContainerRequest" }); } } function __c65(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({})).annotate({ identifier: "ArchiveContainerResponse" }); } } function __c66(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ id: S.String.pipe(T.Label()), h: S.Number.pipe(T.Query()), w: S.Number.pipe(T.Query()), }).pipe(T.Http({ method: "POST", uri: "/exec/{id}/resize", code: 200 })), ).annotate({ identifier: "ExecResizeRequest" }); } } function __c67(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ id: S.String.pipe(T.Label()), Detach: S.optional(S.Boolean), Tty: S.optional(S.Boolean), ConsoleSize: S.optional(S.NullOr(__S(480, __c15, 0))), }).pipe(T.Http({ method: "POST", uri: "/exec/{id}/start", code: 200 })), ).annotate({ identifier: "ExecStartRequest" }); } } function __c68(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ id: S.String.pipe(T.Label()), }).pipe(T.Http({ method: "GET", uri: "/containers/{id}/export", code: 200 })), ).annotate({ identifier: "ExportContainerRequest" }); } } function __c69(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ name: S.String.pipe(T.Label()), platform: S.optional(__S(2848, __c89, 0).pipe(T.Query())), }).pipe(T.Http({ method: "GET", uri: "/images/{name}/get", code: 200 })), ).annotate({ identifier: "GetImageRequest" }); } } function __c70(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ remote: S.String.pipe(T.Query()), }).pipe(T.Http({ method: "GET", uri: "/plugins/privileges", code: 200 })), ).annotate({ identifier: "GetPluginPrivilegesRequest" }); case 1: return S.suspend(() => __S(1249, __c39, 1).pipe(T.RawResponseRoot())).annotate({ identifier: "GetPluginPrivilegesResponse", }); } } function __c71(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ name: S.String.pipe(T.Label()), platform: S.optional(__S(2848, __c89, 0).pipe(T.Query())), type: S.optional(__S(2848, __c89, 0).pipe(T.Query())), statement: S.optional(S.Boolean.pipe(T.Query())), }).pipe(T.Http({ method: "GET", uri: "/images/{name}/attestations", code: 200 })), ).annotate({ identifier: "ImageAttestationsRequest" }); case 1: return S.suspend(() => S.Struct({ Descriptor: __S(737, __c23, 1), PredicateType: S.String, Statement: S.optional(S.NullOr(S.Unknown)), }), ).annotate({ identifier: "AttestationStatement" }); case 2: return S.Array(__S(2273, __c71, 1)); case 3: return S.suspend(() => __S(2274, __c71, 2).pipe(T.RawResponseRoot())).annotate({ identifier: "ImageAttestationsResponse", }); } } function __c72(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ dockerfile: S.optional(S.String.pipe(T.Query())), t: S.optional(S.String.pipe(T.Query())), extrahosts: S.optional(S.String.pipe(T.Query())), remote: S.optional(S.String.pipe(T.Query())), q: S.optional(S.Boolean.pipe(T.Query())), nocache: S.optional(S.Boolean.pipe(T.Query())), cachefrom: S.optional(S.String.pipe(T.Query())), pull: S.optional(S.String.pipe(T.Query())), rm: S.optional(S.Boolean.pipe(T.Query())), forcerm: S.optional(S.Boolean.pipe(T.Query())), memory: S.optional(S.Number.pipe(T.Query())), memswap: S.optional(S.Number.pipe(T.Query())), cpushares: S.optional(S.Number.pipe(T.Query())), cpusetcpus: S.optional(S.String.pipe(T.Query())), cpuperiod: S.optional(S.Number.pipe(T.Query())), cpuquota: S.optional(S.Number.pipe(T.Query())), buildargs: S.optional(S.String.pipe(T.Query())), shmsize: S.optional(S.Number.pipe(T.Query())), squash: S.optional(S.Boolean.pipe(T.Query())), labels: S.optional(S.String.pipe(T.Query())), networkmode: S.optional(S.String.pipe(T.Query())), platform: S.optional(S.String.pipe(T.Query())), target: S.optional(S.String.pipe(T.Query())), outputs: S.optional(S.String.pipe(T.Query())), version: S.optional(S.String.pipe(T.Query())), xRegistryConfig: S.optional(S.String.pipe(T.Header("X-Registry-Config"))), body: S.optional(S.String.pipe(T.HttpBody())), }).pipe(T.Http({ method: "POST", uri: "/build", code: 200 })), ).annotate({ identifier: "ImageBuildRequest" }); } } function __c73(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ names: S.optional(__S(2848, __c89, 0).pipe(T.Query())), platform: S.optional(__S(2848, __c89, 0).pipe(T.Query())), }).pipe(T.Http({ method: "GET", uri: "/images/get", code: 200 })), ).annotate({ identifier: "ImageGetAllRequest" }); } } function __c74(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ name: S.String.pipe(T.Label()), platform: S.optional(S.String.pipe(T.Query())), }).pipe(T.Http({ method: "GET", uri: "/images/{name}/history", code: 200 })), ).annotate({ identifier: "ImageHistoryRequest" }); case 1: return S.suspend(() => S.Struct({ Id: S.String, Created: S.Number, CreatedBy: S.String, Tags: __S(2848, __c89, 0), Size: S.Number, Comment: S.String, }), ).annotate({ identifier: "ImageHistoryResponseItem" }); case 2: return S.Array(__S(2369, __c74, 1)); case 3: return S.suspend(() => __S(2370, __c74, 2).pipe(T.RawResponseRoot())).annotate({ identifier: "ImageHistoryResponse", }); } } function __c75(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ name: S.String.pipe(T.Label()), manifests: S.optional(S.Boolean.pipe(T.Query())), platform: S.optional(S.String.pipe(T.Query())), }).pipe(T.Http({ method: "GET", uri: "/images/{name}/json", code: 200 })), ).annotate({ identifier: "ImageInspectRequest" }); case 1: return S.suspend(() => S.Struct({ User: S.optional(S.String), ExposedPorts: S.optional(S.NullOr(__S(3488, __c109, 0))), Env: S.optional(__S(2848, __c89, 0)), Cmd: S.optional(__S(2848, __c89, 0)), Healthcheck: S.optional(__S(3456, __c108, 0)), ArgsEscaped: S.optional(S.NullOr(S.Boolean)), Volumes: S.optional(__S(3488, __c109, 0)), WorkingDir: S.optional(S.String), Entrypoint: S.optional(__S(2848, __c89, 0)), OnBuild: S.optional(S.NullOr(__S(2848, __c89, 0))), Labels: S.optional(__S(3552, __c111, 0)), StopSignal: S.optional(S.NullOr(S.String)), Shell: S.optional(S.NullOr(__S(2848, __c89, 0))), }), ).annotate({ identifier: "ImageConfig" }); case 2: return S.suspend(() => S.Struct({ Type: S.String, Layers: S.optional(__S(2848, __c89, 0)), }), ).annotate({ identifier: "ImageInspectRootFS" }); case 3: return S.suspend(() => S.Struct({ LastTagTime: S.optional(S.NullOr(S.String)), }), ).annotate({ identifier: "ImageInspectMetadata" }); case 4: return S.suspend(() => S.Struct({ Id: S.optional(S.String), Descriptor: S.optional(S.NullOr(__S(737, __c23, 1))), Manifests: S.optional(S.NullOr(__S(2447, __c76, 15))), Identity: S.optional(S.NullOr(__S(2442, __c76, 10))), RepoTags: S.optional(__S(2848, __c89, 0)), RepoDigests: S.optional(__S(2848, __c89, 0)), Comment: S.optional(S.NullOr(S.String)), Created: S.optional(S.NullOr(S.String)), Author: S.optional(S.NullOr(S.String)), Config: S.optional(__S(2401, __c75, 1)), Architecture: S.optional(S.String), Variant: S.optional(S.NullOr(S.String)), Os: S.optional(S.String), OsVersion: S.optional(S.NullOr(S.String)), Size: S.optional(S.Number), GraphDriver: S.optional(S.NullOr(__S(768, __c24, 0))), RootFS: S.optional(__S(2402, __c75, 2)), Metadata: S.optional(__S(2403, __c75, 3)), }), ).annotate({ identifier: "ImageInspect" }); } } function __c76(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Total: S.Number, Content: S.Number, }), ).annotate({ identifier: "ImageManifestSummarySize" }); case 1: return S.suspend(() => S.Struct({ Type: S.optional(S.String), URI: S.optional(S.String), Timestamp: S.optional(S.String), }), ).annotate({ identifier: "SignatureTimestamp" }); case 2: return S.Array(__S(2433, __c76, 1)); case 3: return S.suspend(() => S.Struct({ CertificateIssuer: S.optional(S.String), SubjectAlternativeName: S.optional(S.String), Issuer: S.optional(S.String), BuildSignerURI: S.optional(S.String), BuildSignerDigest: S.optional(S.String), RunnerEnvironment: S.optional(S.String), SourceRepositoryURI: S.optional(S.String), SourceRepositoryDigest: S.optional(S.String), SourceRepositoryRef: S.optional(S.String), SourceRepositoryIdentifier: S.optional(S.String), SourceRepositoryOwnerURI: S.optional(S.String), SourceRepositoryOwnerIdentifier: S.optional(S.String), BuildConfigURI: S.optional(S.String), BuildConfigDigest: S.optional(S.String), BuildTrigger: S.optional(S.String), RunInvocationURI: S.optional(S.String), SourceRepositoryVisibilityAtSigning: S.optional(S.String), }), ).annotate({ identifier: "SignerIdentity" }); case 4: return S.suspend(() => S.Struct({ Name: S.optional(S.String), Timestamps: S.optional(__S(2434, __c76, 2)), KnownSigner: S.optional(S.String), DockerReference: S.optional(S.String), Signer: S.optional(__S(2435, __c76, 3)), SignatureType: S.optional(S.String), Error: S.optional(S.String), Warnings: S.optional(__S(2848, __c89, 0)), }), ).annotate({ identifier: "SignatureIdentity" }); case 5: return S.Array(__S(2436, __c76, 4)); case 6: return S.suspend(() => S.Struct({ Repository: S.optional(S.String), }), ).annotate({ identifier: "PullIdentity" }); case 7: return S.Array(__S(2438, __c76, 6)); case 8: return S.suspend(() => S.Struct({ Ref: S.optional(S.String), CreatedAt: S.optional(S.String), }), ).annotate({ identifier: "BuildIdentity" }); case 9: return S.Array(__S(2440, __c76, 8)); case 10: return S.suspend(() => S.Struct({ Signature: S.optional(__S(2437, __c76, 5)), Pull: S.optional(__S(2439, __c76, 7)), Build: S.optional(__S(2441, __c76, 9)), }), ).annotate({ identifier: "Identity" }); case 11: return S.suspend(() => S.Struct({ Unpacked: S.Number, }), ).annotate({ identifier: "ImageManifestSummaryImageDataSize" }); case 12: return S.suspend(() => S.Struct({ Platform: S.NullOr(__S(736, __c23, 0)), Identity: S.optional(S.NullOr(__S(2442, __c76, 10))), Containers: __S(2848, __c89, 0), Size: __S(2443, __c76, 11), }), ).annotate({ identifier: "ImageManifestSummaryImageData" }); case 13: return S.suspend(() => S.Struct({ For: S.String, }), ).annotate({ identifier: "ImageManifestSummaryAttestationData" }); case 14: return S.suspend(() => S.Struct({ ID: S.String, Descriptor: __S(737, __c23, 1), Available: S.Boolean, Size: __S(2432, __c76, 0), Kind: S.String, ImageData: S.optional(S.NullOr(__S(2444, __c76, 12))), AttestationData: S.optional(S.NullOr(__S(2445, __c76, 13))), }), ).annotate({ identifier: "ImageManifestSummary" }); case 15: return S.Array(__S(2446, __c76, 14)); } } function __c77(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ id: S.String.pipe(T.Label()), detachKeys: S.optional(S.String.pipe(T.Query())), logs: S.optional(S.Boolean.pipe(T.Query())), stream: S.optional(S.Boolean.pipe(T.Query())), stdin: S.optional(S.Boolean.pipe(T.Query())), stdout: S.optional(S.Boolean.pipe(T.Query())), stderr: S.optional(S.Boolean.pipe(T.Query())), }).pipe(T.Http({ method: "POST", uri: "/containers/{id}/attach", code: 200 })), ).annotate({ identifier: "AttachContainerRequest" }); } } function __c78(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ quiet: S.optional(S.Boolean.pipe(T.Query())), platform: S.optional(__S(2848, __c89, 0).pipe(T.Query())), body: S.optional(S.String.pipe(T.HttpBody())), }).pipe(T.Http({ method: "POST", uri: "/images/load", code: 200 })), ).annotate({ identifier: "ImageLoadRequest" }); } } function __c79(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ filters: S.optional(S.String.pipe(T.Query())), }).pipe(T.Http({ method: "POST", uri: "/images/prune", code: 200 })), ).annotate({ identifier: "ImagePruneRequest" }); case 1: return S.suspend(() => S.Struct({ ImagesDeleted: S.optional(__S(1601, __c50, 1)), SpaceReclaimed: S.optional(S.Number), }), ).annotate({ identifier: "ImagePruneResponse" }); } } function __c80(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ name: S.String.pipe(T.Label()), tag: S.optional(S.String.pipe(T.Query())), platform: S.optional(S.String.pipe(T.Query())), xRegistryAuth: S.String.pipe(T.Header("X-Registry-Auth"), T.SensitiveValue({})), }).pipe(T.Http({ method: "POST", uri: "/images/{name}/push", code: 200 })), ).annotate({ identifier: "ImagePushRequest" }); } } function __c81(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ name: S.String.pipe(T.Label()), repo: S.optional(S.String.pipe(T.Query())), tag: S.optional(S.String.pipe(T.Query())), }).pipe(T.Http({ method: "POST", uri: "/images/{name}/tag", code: 200 })), ).annotate({ identifier: "ImageTagRequest" }); } } function __c82(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ListenAddr: S.String, AdvertiseAddr: S.optional(S.String), DataPathAddr: S.optional(S.String), RemoteAddrs: __S(2848, __c89, 0), JoinToken: S.String.pipe(T.SensitiveValue({})), }).pipe(T.Http({ method: "POST", uri: "/swarm/join", code: 200 })), ).annotate({ identifier: "JoinSwarmRequest" }); } } function __c83(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ id: S.String.pipe(T.Label()), signal: S.optional(S.String.pipe(T.Query())), }).pipe(T.Http({ method: "POST", uri: "/containers/{id}/kill", code: 200 })), ).annotate({ identifier: "KillContainerRequest" }); } } function __c84(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ force: S.optional(S.Boolean.pipe(T.Query())), }).pipe(T.Http({ method: "POST", uri: "/swarm/leave", code: 200 })), ).annotate({ identifier: "LeaveSwarmRequest" }); } } function __c85(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ filters: S.optional(S.String.pipe(T.Query())), }).pipe(T.Http({ method: "GET", uri: "/configs", code: 200 })), ).annotate({ identifier: "ListConfigRequest" }); case 1: return S.Array(__S(4001, __c125, 1)); case 2: return S.suspend(() => __S(2721, __c85, 1).pipe(T.RawResponseRoot())).annotate({ identifier: "ListConfigResponse", }); } } function __c86(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ all: S.optional(S.Boolean.pipe(T.Query())), limit: S.optional(S.Number.pipe(T.Query())), size: S.optional(S.Boolean.pipe(T.Query())), filters: S.optional(S.String.pipe(T.Query())), }).pipe(T.Http({ method: "GET", uri: "/containers/json", code: 200 })), ).annotate({ identifier: "ListContainerRequest" }); case 1: return S.suspend(() => S.Struct({ IP: S.optional(S.String), PrivatePort: S.Number, PublicPort: S.optional(S.Number), Type: S.String, }), ).annotate({ identifier: "PortSummary" }); case 2: return S.Array(__S(2753, __c86, 1)); case 3: return S.suspend(() => S.Struct({ NetworkMode: S.optional(S.String), Annotations: S.optional(S.NullOr(__S(3552, __c111, 0))), }), ).annotate({ identifier: "ContainerSummaryHostConfig" }); case 4: return S.suspend(() => S.Struct({ Networks: S.optional(__S(704, __c22, 0)), }), ).annotate({ identifier: "ContainerSummaryNetworkSettings" }); case 5: return S.suspend(() => S.Struct({ Status: S.optional(S.String), FailingStreak: S.optional(S.Number), }), ).annotate({ identifier: "ContainerSummaryHealth" }); case 6: return S.suspend(() => S.Struct({ Id: S.optional(S.String), Names: S.optional(__S(2848, __c89, 0)), Image: S.optional(S.String), ImageID: S.optional(S.String), ImageManifestDescriptor: S.optional(S.NullOr(__S(737, __c23, 1))), Command: S.optional(S.String), Created: S.optional(S.Number), Ports: S.optional(__S(2754, __c86, 2)), SizeRw: S.optional(S.NullOr(S.Number)), SizeRootFs: S.optional(S.NullOr(S.Number)), Labels: S.optional(__S(3552, __c111, 0)), State: S.optional(S.String), Status: S.optional(S.String), HostConfig: S.optional(__S(2755, __c86, 3)), NetworkSettings: S.optional(__S(2756, __c86, 4)), Mounts: S.optional(__S(801, __c25, 1)), Health: S.optional(__S(2757, __c86, 5)), }), ).annotate({ identifier: "ContainerSummary" }); case 7: return S.Array(__S(2758, __c86, 6)); case 8: return S.suspend(() => __S(2759, __c86, 7).pipe(T.RawResponseRoot())).annotate({ identifier: "ListContainerResponse", }); } } function __c87(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ all: S.optional(S.Boolean.pipe(T.Query())), filters: S.optional(S.String.pipe(T.Query())), shared_size: S.optional(S.Boolean.pipe(T.Query("shared-size"))), digests: S.optional(S.Boolean.pipe(T.Query())), manifests: S.optional(S.Boolean.pipe(T.Query())), identity: S.optional(S.Boolean.pipe(T.Query())), }).pipe(T.Http({ method: "GET", uri: "/images/json", code: 200 })), ).annotate({ identifier: "ListImageRequest" }); case 1: return S.suspend(() => S.Struct({ Id: S.String, ParentId: S.String, RepoTags: __S(2848, __c89, 0), RepoDigests: __S(2848, __c89, 0), Created: S.Number, Size: S.Number, SharedSize: S.Number, Labels: __S(3552, __c111, 0), Containers: S.Number, Manifests: S.optional(__S(2447, __c76, 15)), Descriptor: S.optional(S.NullOr(__S(737, __c23, 1))), }), ).annotate({ identifier: "ImageSummary" }); case 2: return S.Array(__S(2785, __c87, 1)); case 3: return S.suspend(() => __S(2786, __c87, 2).pipe(T.RawResponseRoot())).annotate({ identifier: "ListImageResponse", }); } } function __c88(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ reserved_space: S.optional(S.Number.pipe(T.Query("reserved-space"))), max_used_space: S.optional(S.Number.pipe(T.Query("max-used-space"))), min_free_space: S.optional(S.Number.pipe(T.Query("min-free-space"))), all: S.optional(S.Boolean.pipe(T.Query())), filters: S.optional(S.String.pipe(T.Query())), }).pipe(T.Http({ method: "POST", uri: "/build/prune", code: 200 })), ).annotate({ identifier: "BuildPruneRequest" }); case 1: return S.suspend(() => S.Struct({ CachesDeleted: S.optional(__S(2848, __c89, 0)), SpaceReclaimed: S.optional(S.Number), }), ).annotate({ identifier: "BuildPruneResponse" }); } } function __c89(j: number): any { switch (j) { case 0: return S.Array(S.String); } } function __c90(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ filters: S.optional(S.String.pipe(T.Query())), }).pipe(T.Http({ method: "GET", uri: "/networks", code: 200 })), ).annotate({ identifier: "ListNetworkRequest" }); case 1: return S.Array(__S(2944, __c92, 0)); case 2: return S.suspend(() => __S(2881, __c90, 1).pipe(T.RawResponseRoot())).annotate({ identifier: "ListNetworkResponse", }); } } function __c91(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Name: S.optional(S.String), IP: S.optional(S.String), }), ).annotate({ identifier: "PeerInfo" }); case 1: return S.Array(__S(2912, __c91, 0)); } } function __c92(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Name: S.optional(S.String), Id: S.optional(S.String), Created: S.optional(S.String), Scope: S.optional(S.String), Driver: S.optional(S.String), EnableIPv4: S.optional(S.Boolean), EnableIPv6: S.optional(S.Boolean), IPAM: S.optional(__S(1123, __c35, 3)), Internal: S.optional(S.Boolean), Attachable: S.optional(S.Boolean), Ingress: S.optional(S.Boolean), ConfigFrom: S.optional(__S(1120, __c35, 0)), ConfigOnly: S.optional(S.Boolean), Options: S.optional(__S(3552, __c111, 0)), Labels: S.optional(__S(3552, __c111, 0)), Peers: S.optional(__S(2913, __c91, 1)), }), ).annotate({ identifier: "Network" }); } } function __c93(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ filters: S.optional(S.String.pipe(T.Query())), }).pipe(T.Http({ method: "GET", uri: "/nodes", code: 200 })), ).annotate({ identifier: "ListNodeRequest" }); case 1: return S.Array(__S(3015, __c94, 7)); case 2: return S.suspend(() => __S(2977, __c93, 1).pipe(T.RawResponseRoot())).annotate({ identifier: "ListNodeResponse", }); } } function __c94(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Name: S.optional(S.String), Labels: S.optional(__S(3552, __c111, 0)), Role: S.optional(S.String), Availability: S.optional(S.String), }), ).annotate({ identifier: "NodeSpec" }); case 1: return S.suspend(() => S.Struct({ Type: S.optional(S.String), Name: S.optional(S.String), }), ).annotate({ identifier: "EngineDescriptionPluginsItem" }); case 2: return S.Array(__S(3009, __c94, 1)); case 3: return S.suspend(() => S.Struct({ EngineVersion: S.optional(S.String), Labels: S.optional(__S(3552, __c111, 0)), Plugins: S.optional(__S(3010, __c94, 2)), }), ).annotate({ identifier: "EngineDescription" }); case 4: return S.suspend(() => S.Struct({ Hostname: S.optional(S.String), Platform: S.optional(__S(1313, __c41, 1)), Resources: S.optional(__S(1312, __c41, 0)), Engine: S.optional(__S(3011, __c94, 3)), TLSInfo: S.optional(__S(3040, __c95, 0)), }), ).annotate({ identifier: "NodeDescription" }); case 5: return S.suspend(() => S.Struct({ State: S.optional(S.String), Message: S.optional(S.String), Addr: S.optional(S.String), }), ).annotate({ identifier: "NodeStatus" }); case 6: return S.suspend(() => S.Struct({ Leader: S.optional(S.Boolean), Reachability: S.optional(S.String), Addr: S.optional(S.String), }), ).annotate({ identifier: "ManagerStatus" }); case 7: return S.suspend(() => S.Struct({ ID: S.optional(S.String), Version: S.optional(__S(3968, __c124, 0)), CreatedAt: S.optional(S.String), UpdatedAt: S.optional(S.String), Spec: S.optional(__S(3008, __c94, 0)), Description: S.optional(__S(3012, __c94, 4)), Status: S.optional(__S(3013, __c94, 5)), ManagerStatus: S.optional(S.NullOr(__S(3014, __c94, 6))), }), ).annotate({ identifier: "Node" }); } } function __c95(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ TrustRoot: S.optional(S.String), CertIssuerSubject: S.optional(S.String), CertIssuerPublicKey: S.optional(S.String), }), ).annotate({ identifier: "TLSInfo" }); } } function __c96(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ filters: S.optional(S.String.pipe(T.Query())), }).pipe(T.Http({ method: "GET", uri: "/plugins", code: 200 })), ).annotate({ identifier: "ListPluginRequest" }); case 1: return S.Array(__S(1742, __c54, 14)); case 2: return S.suspend(() => __S(3073, __c96, 1).pipe(T.RawResponseRoot())).annotate({ identifier: "ListPluginResponse", }); } } function __c97(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ filters: S.optional(S.String.pipe(T.Query())), }).pipe(T.Http({ method: "GET", uri: "/secrets", code: 200 })), ).annotate({ identifier: "ListSecretRequest" }); case 1: return S.Array(__S(3137, __c98, 1)); case 2: return S.suspend(() => __S(3105, __c97, 1).pipe(T.RawResponseRoot())).annotate({ identifier: "ListSecretResponse", }); } } function __c98(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Name: S.optional(S.String), Labels: S.optional(__S(3552, __c111, 0)), Data: S.optional(S.String.pipe(T.SensitiveValue({}))), Driver: S.optional(__S(3936, __c123, 0)), Templating: S.optional(__S(3936, __c123, 0)), }), ).annotate({ identifier: "SecretSpec" }); case 1: return S.suspend(() => S.Struct({ ID: S.optional(S.String), Version: S.optional(__S(3968, __c124, 0)), CreatedAt: S.optional(S.String), UpdatedAt: S.optional(S.String), Spec: S.optional(__S(3136, __c98, 0)), }), ).annotate({ identifier: "Secret" }); } } function __c99(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ filters: S.optional(S.String.pipe(T.Query())), status: S.optional(S.Boolean.pipe(T.Query())), }).pipe(T.Http({ method: "GET", uri: "/services", code: 200 })), ).annotate({ identifier: "ListServiceRequest" }); case 1: return S.Array(__S(3207, __c100, 7)); case 2: return S.suspend(() => __S(3169, __c99, 1).pipe(T.RawResponseRoot())).annotate({ identifier: "ListServiceResponse", }); } } function __c100(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Name: S.optional(S.String), Labels: S.optional(__S(3552, __c111, 0)), TaskTemplate: S.optional(__S(1368, __c42, 24)), Mode: S.optional(__S(1378, __c43, 2)), UpdateConfig: S.optional(__S(1379, __c43, 3)), RollbackConfig: S.optional(__S(1379, __c43, 3)), Networks: S.optional(__S(1367, __c42, 23)), EndpointSpec: S.optional(__S(1380, __c43, 4)), }), ).annotate({ identifier: "ServiceSpec" }); case 1: return S.suspend(() => S.Struct({ NetworkID: S.optional(S.String), Addr: S.optional(S.String), }), ).annotate({ identifier: "ServiceEndpointVirtualIPsItem" }); case 2: return S.Array(__S(3201, __c100, 1)); case 3: return S.suspend(() => S.Struct({ Spec: S.optional(__S(1380, __c43, 4)), Ports: S.optional(__S(1370, __c42, 26)), VirtualIPs: S.optional(__S(3202, __c100, 2)), }), ).annotate({ identifier: "ServiceEndpoint" }); case 4: return S.suspend(() => S.Struct({ State: S.optional(S.String), StartedAt: S.optional(S.String), CompletedAt: S.optional(S.String), Message: S.optional(S.String), }), ).annotate({ identifier: "ServiceUpdateStatus" }); case 5: return S.suspend(() => S.Struct({ RunningTasks: S.optional(S.Number), DesiredTasks: S.optional(S.Number), CompletedTasks: S.optional(S.Number), }), ).annotate({ identifier: "ServiceServiceStatus" }); case 6: return S.suspend(() => S.Struct({ JobIteration: S.optional(__S(3968, __c124, 0)), LastExecution: S.optional(S.String), }), ).annotate({ identifier: "ServiceJobStatus" }); case 7: return S.suspend(() => S.Struct({ ID: S.optional(S.String), Version: S.optional(__S(3968, __c124, 0)), CreatedAt: S.optional(S.String), UpdatedAt: S.optional(S.String), Spec: S.optional(__S(3200, __c100, 0)), Endpoint: S.optional(__S(3203, __c100, 3)), UpdateStatus: S.optional(__S(3204, __c100, 4)), ServiceStatus: S.optional(__S(3205, __c100, 5)), JobStatus: S.optional(__S(3206, __c100, 6)), }), ).annotate({ identifier: "Service" }); } } function __c101(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ filters: S.optional(S.String.pipe(T.Query())), }).pipe(T.Http({ method: "GET", uri: "/tasks", code: 200 })), ).annotate({ identifier: "ListTaskRequest" }); case 1: return S.Array(__S(3269, __c102, 5)); case 2: return S.suspend(() => __S(3233, __c101, 1).pipe(T.RawResponseRoot())).annotate({ identifier: "ListTaskResponse", }); } } function __c102(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ContainerID: S.optional(S.String), PID: S.optional(S.Number), ExitCode: S.optional(S.Number), }), ).annotate({ identifier: "ContainerStatus" }); case 1: return S.suspend(() => S.Struct({ Ports: S.optional(__S(1370, __c42, 26)), }), ).annotate({ identifier: "PortStatus" }); case 2: return S.suspend(() => S.Struct({ Timestamp: S.optional(S.String), State: S.optional(S.String), Message: S.optional(S.String), Err: S.optional(S.String), ContainerStatus: S.optional(__S(3264, __c102, 0)), PortStatus: S.optional(__S(3265, __c102, 1)), }), ).annotate({ identifier: "TaskStatus" }); case 3: return S.suspend(() => S.Struct({ Network: S.optional(__S(2944, __c92, 0)), Addresses: S.optional(__S(2848, __c89, 0)), }), ).annotate({ identifier: "NetworkAttachment" }); case 4: return S.Array(__S(3267, __c102, 3)); case 5: return S.suspend(() => S.Struct({ ID: S.optional(S.String), Version: S.optional(__S(3968, __c124, 0)), CreatedAt: S.optional(S.String), UpdatedAt: S.optional(S.String), Name: S.optional(S.String), Labels: S.optional(__S(3552, __c111, 0)), Spec: S.optional(__S(1368, __c42, 24)), ServiceID: S.optional(S.String), Slot: S.optional(S.Number), NodeID: S.optional(S.String), AssignedGenericResources: S.optional(__S(1283, __c40, 3)), Status: S.optional(__S(3266, __c102, 2)), DesiredState: S.optional(S.String), JobIteration: S.optional(__S(3968, __c124, 0)), NetworksAttachments: S.optional(__S(3268, __c102, 4)), }), ).annotate({ identifier: "Task" }); } } function __c103(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ filters: S.optional(S.String.pipe(T.Query())), }).pipe(T.Http({ method: "GET", uri: "/volumes", code: 200 })), ).annotate({ identifier: "ListVolumeRequest" }); case 1: return S.Array(__S(1477, __c46, 5)); case 2: return S.suspend(() => S.Struct({ Volumes: S.optional(__S(3297, __c103, 1)), Warnings: S.optional(__S(2848, __c89, 0)), }), ).annotate({ identifier: "VolumeListResponse" }); } } function __c104(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ id: S.String.pipe(T.Label()), verbose: S.optional(S.Boolean.pipe(T.Query())), scope: S.optional(S.String.pipe(T.Query())), }).pipe(T.Http({ method: "GET", uri: "/networks/{id}", code: 200 })), ).annotate({ identifier: "NetworkInspectRequest" }); case 1: return S.suspend(() => S.Struct({ Name: S.optional(S.String), EndpointID: S.optional(S.String), MacAddress: S.optional(S.String), IPv4Address: S.optional(S.String), IPv6Address: S.optional(S.String), }), ).annotate({ identifier: "EndpointResource" }); case 2: return S.Record(S.String, __S(3329, __c104, 1)); case 3: return S.suspend(() => S.Struct({ IPsInUse: S.optional(S.Number), DynamicIPsAvailable: S.optional(S.Number), }), ).annotate({ identifier: "SubnetStatus" }); case 4: return S.Record(S.String, __S(3331, __c104, 3)); case 5: return S.suspend(() => S.Struct({ Subnets: S.optional(__S(3332, __c104, 4)), }), ).annotate({ identifier: "IPAMStatus" }); case 6: return S.suspend(() => S.Struct({ IPAM: S.optional(__S(3333, __c104, 5)), }), ).annotate({ identifier: "NetworkStatus" }); case 7: return S.suspend(() => S.Struct({ Name: S.optional(S.String), Id: S.optional(S.String), Created: S.optional(S.String), Scope: S.optional(S.String), Driver: S.optional(S.String), EnableIPv4: S.optional(S.Boolean), EnableIPv6: S.optional(S.Boolean), IPAM: S.optional(__S(1123, __c35, 3)), Internal: S.optional(S.Boolean), Attachable: S.optional(S.Boolean), Ingress: S.optional(S.Boolean), ConfigFrom: S.optional(__S(1120, __c35, 0)), ConfigOnly: S.optional(S.Boolean), Options: S.optional(__S(3552, __c111, 0)), Labels: S.optional(__S(3552, __c111, 0)), Peers: S.optional(__S(2913, __c91, 1)), Containers: S.optional(__S(3330, __c104, 2)), Services: S.optional(__S(3488, __c109, 0)), Status: S.optional(__S(3334, __c104, 6)), }), ).annotate({ identifier: "NetworkInspectResponse" }); } } function __c105(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ filters: S.optional(S.String.pipe(T.Query())), }).pipe(T.Http({ method: "POST", uri: "/networks/prune", code: 200 })), ).annotate({ identifier: "NetworkPruneRequest" }); case 1: return S.suspend(() => S.Struct({ NetworksDeleted: S.optional(__S(2848, __c89, 0)), }), ).annotate({ identifier: "NetworkPruneResponse" }); } } function __c106(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ id: S.String.pipe(T.Label()), }).pipe(T.Http({ method: "GET", uri: "/nodes/{id}", code: 200 })), ).annotate({ identifier: "NodeInspectRequest" }); } } function __c107(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ container: S.optional(S.String.pipe(T.Query())), repo: S.optional(S.String.pipe(T.Query())), tag: S.optional(S.String.pipe(T.Query())), comment: S.optional(S.String.pipe(T.Query())), author: S.optional(S.String.pipe(T.Query())), pause: S.optional(S.Boolean.pipe(T.Query())), changes: S.optional(S.String.pipe(T.Query())), Hostname: S.optional(S.String), Domainname: S.optional(S.String), User: S.optional(S.String), AttachStdin: S.optional(S.Boolean), AttachStdout: S.optional(S.Boolean), AttachStderr: S.optional(S.Boolean), ExposedPorts: S.optional(S.NullOr(__S(3488, __c109, 0))), Tty: S.optional(S.Boolean), OpenStdin: S.optional(S.Boolean), StdinOnce: S.optional(S.Boolean), Env: S.optional(__S(2848, __c89, 0)), Cmd: S.optional(__S(2848, __c89, 0)), Healthcheck: S.optional(__S(3456, __c108, 0)), ArgsEscaped: S.optional(S.NullOr(S.Boolean)), Image: S.optional(S.String), Volumes: S.optional(__S(3488, __c109, 0)), WorkingDir: S.optional(S.String), Entrypoint: S.optional(__S(2848, __c89, 0)), NetworkDisabled: S.optional(S.NullOr(S.Boolean)), OnBuild: S.optional(S.NullOr(__S(2848, __c89, 0))), Labels: S.optional(__S(3552, __c111, 0)), StopSignal: S.optional(S.NullOr(S.String)), StopTimeout: S.optional(S.NullOr(S.Number)), Shell: S.optional(S.NullOr(__S(2848, __c89, 0))), }).pipe(T.Http({ method: "POST", uri: "/commit", code: 200 })), ).annotate({ identifier: "CommitImageRequest" }); } } function __c108(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Test: S.optional(__S(2848, __c89, 0)), Interval: S.optional(S.Number), Timeout: S.optional(S.Number), Retries: S.optional(S.Number), StartPeriod: S.optional(S.Number), StartInterval: S.optional(S.Number), }), ).annotate({ identifier: "HealthConfig" }); } } function __c109(j: number): any { switch (j) { case 0: return S.Record(S.String, S.Unknown); } } function __c110(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Id: S.String, }), ).annotate({ identifier: "IDResponse" }); } } function __c111(j: number): any { switch (j) { case 0: return S.Record(S.String, S.String); } } function __c112(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ id: S.String.pipe(T.Label()), }).pipe(T.Http({ method: "POST", uri: "/containers/{id}/pause", code: 200 })), ).annotate({ identifier: "PauseContainerRequest" }); } } function __c113(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/_ping", code: 200 })), ).annotate({ identifier: "PingSystemRequest" }); } } function __c114(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ name: S.String.pipe(T.Label()), }).pipe(T.Http({ method: "GET", uri: "/plugins/{name}/json", code: 200 })), ).annotate({ identifier: "PluginInspectRequest" }); } } function __c115(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ remote: S.String.pipe(T.Query()), name: S.optional(S.String.pipe(T.Query())), xRegistryAuth: S.optional( S.String.pipe(T.Header("X-Registry-Auth"), T.SensitiveValue({})), ), body: S.optional(__S(1249, __c39, 1).pipe(T.HttpBody())), }).pipe(T.Http({ method: "POST", uri: "/plugins/pull", code: 200 })), ).annotate({ identifier: "PluginPullRequest" }); } } function __c116(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ name: S.String.pipe(T.Label()), }).pipe(T.Http({ method: "POST", uri: "/plugins/{name}/push", code: 200 })), ).annotate({ identifier: "PluginPushRequest" }); } } function __c117(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ name: S.String.pipe(T.Label()), remote: S.String.pipe(T.Query()), xRegistryAuth: S.optional( S.String.pipe(T.Header("X-Registry-Auth"), T.SensitiveValue({})), ), body: S.optional(__S(1249, __c39, 1).pipe(T.HttpBody())), }).pipe(T.Http({ method: "POST", uri: "/plugins/{name}/upgrade", code: 200 })), ).annotate({ identifier: "PluginUpgradeRequest" }); } } function __c118(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ id: S.String.pipe(T.Label()), path: S.String.pipe(T.Query()), noOverwriteDirNonDir: S.optional(S.String.pipe(T.Query())), copyUIDGID: S.optional(S.String.pipe(T.Query())), body: S.String.pipe(T.HttpBody()), }).pipe(T.Http({ method: "PUT", uri: "/containers/{id}/archive", code: 200 })), ).annotate({ identifier: "PutContainerArchiveRequest" }); } } function __c119(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ id: S.String.pipe(T.Label()), name: S.String.pipe(T.Query()), }).pipe(T.Http({ method: "POST", uri: "/containers/{id}/rename", code: 200 })), ).annotate({ identifier: "RenameContainerRequest" }); } } function __c120(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ id: S.String.pipe(T.Label()), h: S.Number.pipe(T.Query()), w: S.Number.pipe(T.Query()), }).pipe(T.Http({ method: "POST", uri: "/containers/{id}/resize", code: 200 })), ).annotate({ identifier: "ResizeContainerRequest" }); } } function __c121(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ id: S.String.pipe(T.Label()), signal: S.optional(S.String.pipe(T.Query())), t: S.optional(S.Number.pipe(T.Query())), }).pipe(T.Http({ method: "POST", uri: "/containers/{id}/restart", code: 200 })), ).annotate({ identifier: "RestartContainerRequest" }); } } function __c122(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ id: S.String.pipe(T.Label()), }).pipe(T.Http({ method: "GET", uri: "/configs/{id}", code: 200 })), ).annotate({ identifier: "ConfigInspectRequest" }); } } function __c123(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Name: S.String, Options: S.optional(__S(3552, __c111, 0)), }), ).annotate({ identifier: "Driver" }); } } function __c124(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Index: S.optional(S.Number), }), ).annotate({ identifier: "ObjectVersion" }); } } function __c125(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Name: S.optional(S.String), Labels: S.optional(__S(3552, __c111, 0)), Data: S.optional(S.String), Templating: S.optional(__S(3936, __c123, 0)), }), ).annotate({ identifier: "ConfigSpec" }); case 1: return S.suspend(() => S.Struct({ ID: S.optional(S.String), Version: S.optional(__S(3968, __c124, 0)), CreatedAt: S.optional(S.String), UpdatedAt: S.optional(S.String), Spec: S.optional(__S(4000, __c125, 0)), }), ).annotate({ identifier: "Config" }); } } function __c126(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ term: S.String.pipe(T.Query()), limit: S.optional(S.Number.pipe(T.Query())), filters: S.optional(S.String.pipe(T.Query())), }).pipe(T.Http({ method: "GET", uri: "/images/search", code: 200 })), ).annotate({ identifier: "SearchImageRequest" }); case 1: return S.suspend(() => S.Struct({ description: S.optional(S.String), is_official: S.optional(S.Boolean), is_automated: S.optional(S.Boolean), name: S.optional(S.String), star_count: S.optional(S.Number), }), ).annotate({ identifier: "SearchImageResponseBodyItem" }); case 2: return S.Array(__S(4033, __c126, 1)); case 3: return S.suspend(() => __S(4034, __c126, 2).pipe(T.RawResponseRoot())).annotate({ identifier: "SearchImageResponse", }); } } function __c127(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ id: S.String.pipe(T.Label()), }).pipe(T.Http({ method: "GET", uri: "/secrets/{id}", code: 200 })), ).annotate({ identifier: "SecretInspectRequest" }); } } function __c128(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ id: S.String.pipe(T.Label()), insertDefaults: S.optional(S.Boolean.pipe(T.Query())), }).pipe(T.Http({ method: "GET", uri: "/services/{id}", code: 200 })), ).annotate({ identifier: "ServiceInspectRequest" }); } } function __c129(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ id: S.String.pipe(T.Label()), details: S.optional(S.Boolean.pipe(T.Query())), follow: S.optional(S.Boolean.pipe(T.Query())), stdout: S.optional(S.Boolean.pipe(T.Query())), stderr: S.optional(S.Boolean.pipe(T.Query())), since: S.optional(S.Number.pipe(T.Query())), timestamps: S.optional(S.Boolean.pipe(T.Query())), tail: S.optional(S.String.pipe(T.Query())), }).pipe(T.Http({ method: "GET", uri: "/services/{id}/logs", code: 200 })), ).annotate({ identifier: "ServiceLogsRequest" }); } } function __c130(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({}).pipe(T.Http({ method: "POST", uri: "/session", code: 200 })), ).annotate({ identifier: "SessionRequest" }); } } function __c131(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ name: S.String.pipe(T.Label()), body: S.optional(__S(2848, __c89, 0).pipe(T.HttpBody())), }).pipe(T.Http({ method: "POST", uri: "/plugins/{name}/set", code: 200 })), ).annotate({ identifier: "SetPluginRequest" }); } } function __c132(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ id: S.String.pipe(T.Label()), detachKeys: S.optional(S.String.pipe(T.Query())), }).pipe(T.Http({ method: "POST", uri: "/containers/{id}/start", code: 200 })), ).annotate({ identifier: "StartContainerRequest" }); } } function __c133(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ id: S.String.pipe(T.Label()), signal: S.optional(S.String.pipe(T.Query())), t: S.optional(S.Number.pipe(T.Query())), }).pipe(T.Http({ method: "POST", uri: "/containers/{id}/stop", code: 200 })), ).annotate({ identifier: "StopContainerRequest" }); } } function __c134(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ ListenAddr: S.optional(S.String), AdvertiseAddr: S.optional(S.String), DataPathAddr: S.optional(S.String), DataPathPort: S.optional(S.Number), DefaultAddrPool: S.optional(__S(2848, __c89, 0)), ForceNewCluster: S.optional(S.Boolean), SubnetSize: S.optional(S.Number), Spec: S.optional(__S(4320, __c135, 0)), }).pipe(T.Http({ method: "POST", uri: "/swarm/init", code: 200 })), ).annotate({ identifier: "SwarmInitRequest" }); } } function __c135(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ Name: S.optional(S.String), Labels: S.optional(__S(3552, __c111, 0)), Orchestration: S.optional(S.NullOr(__S(4352, __c136, 0))), Raft: S.optional(__S(4353, __c136, 1)), Dispatcher: S.optional(S.NullOr(__S(4354, __c136, 2))), CAConfig: S.optional(S.NullOr(__S(4357, __c136, 5))), EncryptionConfig: S.optional(__S(4358, __c136, 6)), TaskDefaults: S.optional(__S(4359, __c136, 7)), }), ).annotate({ identifier: "SwarmSpec" }); } } function __c136(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ TaskHistoryRetentionLimit: S.optional(S.Number), }), ).annotate({ identifier: "SwarmSpecOrchestration" }); case 1: return S.suspend(() => S.Struct({ SnapshotInterval: S.optional(S.Number), KeepOldSnapshots: S.optional(S.Number), LogEntriesForSlowFollowers: S.optional(S.Number), ElectionTick: S.optional(S.Number), HeartbeatTick: S.optional(S.Number), }), ).annotate({ identifier: "SwarmSpecRaft" }); case 2: return S.suspend(() => S.Struct({ HeartbeatPeriod: S.optional(S.Number), }), ).annotate({ identifier: "SwarmSpecDispatcher" }); case 3: return S.suspend(() => S.Struct({ Protocol: S.optional(S.String), URL: S.optional(S.String), Options: S.optional(__S(3552, __c111, 0)), CACert: S.optional(S.String), }), ).annotate({ identifier: "SwarmSpecCAConfigExternalCAsItem" }); case 4: return S.Array(__S(4355, __c136, 3)); case 5: return S.suspend(() => S.Struct({ NodeCertExpiry: S.optional(S.Number), ExternalCAs: S.optional(__S(4356, __c136, 4)), SigningCACert: S.optional(S.String), SigningCAKey: S.optional(S.String), ForceRotate: S.optional(S.Number), }), ).annotate({ identifier: "SwarmSpecCAConfig" }); case 6: return S.suspend(() => S.Struct({ AutoLockManagers: S.optional(S.Boolean), }), ).annotate({ identifier: "SwarmSpecEncryptionConfig" }); case 7: return S.suspend(() => S.Struct({ LogDriver: S.optional(__S(608, __c19, 0)), }), ).annotate({ identifier: "SwarmSpecTaskDefaults" }); } } function __c137(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/swarm", code: 200 })), ).annotate({ identifier: "SwarmInspectRequest" }); case 1: return S.suspend(() => S.Struct({ Worker: S.optional(S.String), Manager: S.optional(S.String), }), ).annotate({ identifier: "JoinTokens" }); case 2: return S.suspend(() => S.Struct({ ID: S.optional(S.String), Version: S.optional(__S(3968, __c124, 0)), CreatedAt: S.optional(S.String), UpdatedAt: S.optional(S.String), Spec: S.optional(__S(4320, __c135, 0)), TLSInfo: S.optional(__S(3040, __c95, 0)), RootRotationInProgress: S.optional(S.Boolean), DataPathPort: S.optional(S.Number), DefaultAddrPool: S.optional(__S(2848, __c89, 0)), SubnetSize: S.optional(S.Number), JoinTokens: S.optional(__S(4385, __c137, 1)), }), ).annotate({ identifier: "SwarmInspectResponse" }); } } function __c138(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ id: S.String.pipe(T.Label()), Container: S.String, EndpointConfig: S.optional(S.NullOr(__S(4449, __c139, 1))), }).pipe(T.Http({ method: "POST", uri: "/networks/{id}/connect", code: 200 })), ).annotate({ identifier: "ConnectNetworkRequest" }); } } function __c139(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ IPv4Address: S.optional(S.String), IPv6Address: S.optional(S.String), LinkLocalIPs: S.optional(__S(2848, __c89, 0)), }), ).annotate({ identifier: "EndpointIPAMConfig" }); case 1: return S.suspend(() => S.Struct({ IPAMConfig: S.optional(S.NullOr(__S(4448, __c139, 0))), Links: S.optional(__S(2848, __c89, 0)), MacAddress: S.optional(S.String), Aliases: S.optional(__S(2848, __c89, 0)), DriverOpts: S.optional(S.NullOr(__S(3552, __c111, 0))), GwPriority: S.optional(S.Number), NetworkID: S.optional(S.String), EndpointID: S.optional(S.String), Gateway: S.optional(S.String), IPAddress: S.optional(S.String), IPPrefixLen: S.optional(S.Number), IPv6Gateway: S.optional(S.String), GlobalIPv6Address: S.optional(S.String), GlobalIPv6PrefixLen: S.optional(S.Number), DNSNames: S.optional(__S(2848, __c89, 0)), }), ).annotate({ identifier: "EndpointSettings" }); } } function __c140(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/swarm/unlockkey", code: 200 })), ).annotate({ identifier: "SwarmUnlockkeyRequest" }); case 1: return S.suspend(() => S.Struct({ UnlockKey: S.optional(S.String), }), ).annotate({ identifier: "SwarmUnlockkeyResponse" }); } } function __c141(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ username: S.optional(S.String), password: S.optional(S.String.pipe(T.SensitiveValue({}))), serveraddress: S.optional(S.String), }).pipe(T.Http({ method: "POST", uri: "/auth", code: 200 })), ).annotate({ identifier: "SystemAuthRequest" }); case 1: return S.suspend(() => S.Struct({ Status: S.String, IdentityToken: S.optional(S.String.pipe(T.SensitiveValue({}))), }), ).annotate({ identifier: "AuthResponse" }); } } function __c142(j: number): any { switch (j) { case 0: return S.Array(S.String); case 1: return S.suspend(() => S.Struct({ type: S.optional(__S(4544, __c142, 0).pipe(T.Query())), verbose: S.optional(S.Boolean.pipe(T.Query())), }).pipe(T.Http({ method: "GET", uri: "/system/df", code: 200 })), ).annotate({ identifier: "SystemDataUsageRequest" }); case 2: return S.Array(S.Unknown); case 3: return S.suspend(() => S.Struct({ ActiveCount: S.optional(S.Number), TotalCount: S.optional(S.Number), Reclaimable: S.optional(S.Number), TotalSize: S.optional(S.Number), Items: S.optional(__S(4546, __c142, 2)), }), ).annotate({ identifier: "ImagesDiskUsage" }); case 4: return S.suspend(() => S.Struct({ ImageUsage: S.optional(__S(4547, __c142, 3)), ContainerUsage: S.optional(__S(4547, __c142, 3)), VolumeUsage: S.optional(__S(4547, __c142, 3)), BuildCacheUsage: S.optional(__S(4547, __c142, 3)), }), ).annotate({ identifier: "SystemDataUsageResponse" }); } } function __c143(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ since: S.optional(S.String.pipe(T.Query())), until: S.optional(S.String.pipe(T.Query())), filters: S.optional(S.String.pipe(T.Query())), }).pipe(T.Http({ method: "GET", uri: "/events", code: 200 })), ).annotate({ identifier: "SystemEventsRequest" }); case 1: return S.suspend(() => S.Struct({ ID: S.optional(S.String), Attributes: S.optional(__S(3552, __c111, 0)), }), ).annotate({ identifier: "EventActor" }); case 2: return S.suspend(() => S.Struct({ Type: S.optional(S.String), Action: S.optional(S.String), Actor: S.optional(__S(4577, __c143, 1)), scope: S.optional(S.String), time: S.optional(S.Number), timeNano: S.optional(S.Number), }), ).annotate({ identifier: "EventMessage" }); } } function __c144(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/info", code: 200 })), ).annotate({ identifier: "SystemInfo2Request" }); case 1: return S.suspend(() => S.Struct({ Volume: S.optional(__S(2848, __c89, 0)), Network: S.optional(__S(2848, __c89, 0)), Authorization: S.optional(__S(2848, __c89, 0)), Log: S.optional(__S(2848, __c89, 0)), }), ).annotate({ identifier: "PluginsInfo" }); case 2: return S.suspend(() => S.Struct({ Name: S.optional(S.String), Mirrors: S.optional(__S(2848, __c89, 0)), Secure: S.optional(S.Boolean), Official: S.optional(S.Boolean), }), ).annotate({ identifier: "IndexInfo" }); case 3: return S.Record(S.String, /*@__PURE__*/ S.NullOr(__S(4610, __c144, 2))); case 4: return S.suspend(() => S.Struct({ InsecureRegistryCIDRs: S.optional(__S(2848, __c89, 0)), IndexConfigs: S.optional(__S(4611, __c144, 3)), Mirrors: S.optional(__S(2848, __c89, 0)), }), ).annotate({ identifier: "RegistryServiceConfig" }); case 5: return S.suspend(() => S.Struct({ path: S.optional(S.String), runtimeArgs: S.optional(S.NullOr(__S(2848, __c89, 0))), status: S.optional(S.NullOr(__S(3552, __c111, 0))), }), ).annotate({ identifier: "Runtime" }); case 6: return S.Record(S.String, __S(4613, __c144, 5)); case 7: return S.suspend(() => S.Struct({ NodeID: S.optional(S.String), Addr: S.optional(S.String), }), ).annotate({ identifier: "PeerNode" }); case 8: return S.Array(__S(4615, __c144, 7)); case 9: return S.suspend(() => S.Struct({ ID: S.optional(S.String), Version: S.optional(__S(3968, __c124, 0)), CreatedAt: S.optional(S.String), UpdatedAt: S.optional(S.String), Spec: S.optional(__S(4320, __c135, 0)), TLSInfo: S.optional(__S(3040, __c95, 0)), RootRotationInProgress: S.optional(S.Boolean), DataPathPort: S.optional(S.Number), DefaultAddrPool: S.optional(__S(2848, __c89, 0)), SubnetSize: S.optional(S.Number), }), ).annotate({ identifier: "ClusterInfo" }); case 10: return S.suspend(() => S.Struct({ NodeID: S.optional(S.String), NodeAddr: S.optional(S.String), LocalNodeState: S.optional(S.String), ControlAvailable: S.optional(S.Boolean), Error: S.optional(S.String), RemoteManagers: S.optional(S.NullOr(__S(4616, __c144, 8))), Nodes: S.optional(S.NullOr(S.Number)), Managers: S.optional(S.NullOr(S.Number)), Cluster: S.optional(S.NullOr(__S(4617, __c144, 9))), }), ).annotate({ identifier: "SwarmInfo" }); case 11: return S.suspend(() => S.Struct({ ID: S.optional(S.String), }), ).annotate({ identifier: "Commit" }); case 12: return S.suspend(() => S.Struct({ Base: S.optional(S.String), Size: S.optional(S.Number), }), ).annotate({ identifier: "SystemInfoDefaultAddressPoolsItem" }); case 13: return S.Array(__S(4620, __c144, 12)); case 14: return S.suspend(() => S.Struct({ Driver: S.optional(S.String), Info: S.optional(__S(512, __c16, 0)), }), ).annotate({ identifier: "FirewallInfo" }); case 15: return S.suspend(() => S.Struct({ Source: S.optional(S.String), ID: S.optional(S.String), }), ).annotate({ identifier: "DeviceInfo" }); case 16: return S.Array(__S(4623, __c144, 15)); case 17: return S.suspend(() => S.Struct({ Info: S.optional(__S(512, __c16, 0)), }), ).annotate({ identifier: "NRIInfo" }); case 18: return S.suspend(() => S.Struct({ Containers: S.optional(S.String), Plugins: S.optional(S.String), }), ).annotate({ identifier: "ContainerdInfoNamespaces" }); case 19: return S.suspend(() => S.Struct({ Address: S.optional(S.String), Namespaces: S.optional(__S(4626, __c144, 18)), }), ).annotate({ identifier: "ContainerdInfo" }); case 20: return S.suspend(() => S.Struct({ ID: S.optional(S.String), Containers: S.optional(S.Number), ContainersRunning: S.optional(S.Number), ContainersPaused: S.optional(S.Number), ContainersStopped: S.optional(S.Number), Images: S.optional(S.Number), Driver: S.optional(S.String), DriverStatus: S.optional(__S(512, __c16, 0)), DockerRootDir: S.optional(S.String), Plugins: S.optional(__S(4609, __c144, 1)), MemoryLimit: S.optional(S.Boolean), SwapLimit: S.optional(S.Boolean), CpuCfsPeriod: S.optional(S.Boolean), CpuCfsQuota: S.optional(S.Boolean), CPUShares: S.optional(S.Boolean), CPUSet: S.optional(S.Boolean), PidsLimit: S.optional(S.Boolean), OomKillDisable: S.optional(S.Boolean), IPv4Forwarding: S.optional(S.Boolean), Debug: S.optional(S.Boolean), NFd: S.optional(S.Number), NGoroutines: S.optional(S.Number), SystemTime: S.optional(S.String), LoggingDriver: S.optional(S.String), CgroupDriver: S.optional(S.String), CgroupVersion: S.optional(S.String), NEventsListener: S.optional(S.Number), KernelVersion: S.optional(S.String), OperatingSystem: S.optional(S.String), OSVersion: S.optional(S.String), OSType: S.optional(S.String), Architecture: S.optional(S.String), NCPU: S.optional(S.Number), MemTotal: S.optional(S.Number), IndexServerAddress: S.optional(S.String), RegistryConfig: S.optional(S.NullOr(__S(4612, __c144, 4))), GenericResources: S.optional(__S(1283, __c40, 3)), HttpProxy: S.optional(S.String), HttpsProxy: S.optional(S.String), NoProxy: S.optional(S.String), Name: S.optional(S.String), Labels: S.optional(__S(2848, __c89, 0)), ExperimentalBuild: S.optional(S.Boolean), ServerVersion: S.optional(S.String), Runtimes: S.optional(__S(4614, __c144, 6)), DefaultRuntime: S.optional(S.String), Swarm: S.optional(__S(4618, __c144, 10)), LiveRestoreEnabled: S.optional(S.Boolean), Isolation: S.optional(S.String), InitBinary: S.optional(S.String), ContainerdCommit: S.optional(__S(4619, __c144, 11)), RuncCommit: S.optional(__S(4619, __c144, 11)), InitCommit: S.optional(__S(4619, __c144, 11)), SecurityOptions: S.optional(__S(2848, __c89, 0)), ProductLicense: S.optional(S.String), DefaultAddressPools: S.optional(__S(4621, __c144, 13)), FirewallBackend: S.optional(S.NullOr(__S(4622, __c144, 14))), DiscoveredDevices: S.optional(__S(4624, __c144, 16)), NRI: S.optional(S.NullOr(__S(4625, __c144, 17))), Warnings: S.optional(__S(2848, __c89, 0)), CDISpecDirs: S.optional(__S(2848, __c89, 0)), Containerd: S.optional(S.NullOr(__S(4627, __c144, 19))), }), ).annotate({ identifier: "SystemInfo" }); } } function __c145(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/version", code: 200 })), ).annotate({ identifier: "SystemVersion2Request" }); case 1: return S.suspend(() => S.Struct({ Name: S.String, }), ).annotate({ identifier: "SystemVersionPlatform" }); case 2: return S.suspend(() => S.Struct({ Name: S.String, Version: S.String, Details: S.optional(S.NullOr(S.Unknown)), }), ).annotate({ identifier: "SystemVersionComponentsItem" }); case 3: return S.Array(__S(4642, __c145, 2)); case 4: return S.suspend(() => S.Struct({ Platform: S.optional(__S(4641, __c145, 1)), Components: S.optional(__S(4643, __c145, 3)), Version: S.optional(S.String), ApiVersion: S.optional(S.String), MinAPIVersion: S.optional(S.String), GitCommit: S.optional(S.String), GoVersion: S.optional(S.String), Os: S.optional(S.String), Arch: S.optional(S.String), KernelVersion: S.optional(S.String), Experimental: S.optional(S.Boolean), BuildTime: S.optional(S.String), }), ).annotate({ identifier: "SystemVersion" }); } } function __c146(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ id: S.String.pipe(T.Label()), }).pipe(T.Http({ method: "GET", uri: "/tasks/{id}", code: 200 })), ).annotate({ identifier: "TaskInspectRequest" }); } } function __c147(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ id: S.String.pipe(T.Label()), details: S.optional(S.Boolean.pipe(T.Query())), follow: S.optional(S.Boolean.pipe(T.Query())), stdout: S.optional(S.Boolean.pipe(T.Query())), stderr: S.optional(S.Boolean.pipe(T.Query())), since: S.optional(S.Number.pipe(T.Query())), timestamps: S.optional(S.Boolean.pipe(T.Query())), tail: S.optional(S.String.pipe(T.Query())), }).pipe(T.Http({ method: "GET", uri: "/tasks/{id}/logs", code: 200 })), ).annotate({ identifier: "TaskLogsRequest" }); } } function __c148(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ UnlockKey: S.optional(S.String), }).pipe(T.Http({ method: "POST", uri: "/swarm/unlock", code: 200 })), ).annotate({ identifier: "UnlockSwarmRequest" }); } } function __c149(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ id: S.String.pipe(T.Label()), }).pipe(T.Http({ method: "POST", uri: "/containers/{id}/unpause", code: 200 })), ).annotate({ identifier: "UnpauseContainerRequest" }); } } // Schema table: entry i is schema j of builder f, made on first reach. function __S(i: number, f: (j: number) => unknown, j: number): any { return (__s[i] ??= __L.at(f, j)); }