the-moby-effect
Version:
Moby/Docker API client built using effect-ts
42 lines • 2.4 kB
JavaScript
import * as Schema from "effect/Schema";
import * as MobyIdentifiers from "../schemas/id.js";
import * as MobyNumber from "../schemas/number.js";
import * as ContainerMountPoint from "./ContainerMountPoint.generated.js";
import * as ContainerNetworkSettingsSummary from "./ContainerNetworkSettingsSummary.generated.js";
import * as ContainerPort from "./ContainerPort.generated.js";
import * as V1Descriptor from "./V1Descriptor.generated.js";
export class ContainerSummary extends /*#__PURE__*/Schema.Class("ContainerSummary")({
Id: MobyIdentifiers.ContainerIdentifier,
Names: /*#__PURE__*/Schema.NullOr(/*#__PURE__*/Schema.Array(Schema.String)),
Image: Schema.String,
ImageID: MobyIdentifiers.ImageIdentifier,
ImageManifestDescriptor: /*#__PURE__*/Schema.optional(/*#__PURE__*/Schema.NullOr(V1Descriptor.V1Descriptor)),
Command: Schema.String,
Created: /*#__PURE__*/MobyNumber.BigIntFromWireString.check(/*#__PURE__*/Schema.isBetweenBigInt({
minimum: -(2n ** 63n),
maximum: 2n ** 63n - 1n
})),
Ports: /*#__PURE__*/Schema.NullOr(/*#__PURE__*/Schema.Array(/*#__PURE__*/Schema.NullOr(ContainerPort.ContainerPort))),
SizeRw: /*#__PURE__*/Schema.optional(/*#__PURE__*/MobyNumber.BigIntFromWireString.check(/*#__PURE__*/Schema.isBetweenBigInt({
minimum: -(2n ** 63n),
maximum: 2n ** 63n - 1n
}))),
SizeRootFs: /*#__PURE__*/Schema.optional(/*#__PURE__*/MobyNumber.BigIntFromWireString.check(/*#__PURE__*/Schema.isBetweenBigInt({
minimum: -(2n ** 63n),
maximum: 2n ** 63n - 1n
}))),
Labels: /*#__PURE__*/Schema.NullOr(/*#__PURE__*/Schema.Record(Schema.String, Schema.String)),
State: Schema.String,
Status: Schema.String,
HostConfig: /*#__PURE__*/Schema.Struct({
NetworkMode: /*#__PURE__*/Schema.optional(Schema.String),
Annotations: /*#__PURE__*/Schema.optional(/*#__PURE__*/Schema.NullOr(/*#__PURE__*/Schema.Record(Schema.String, Schema.String)))
}),
NetworkSettings: /*#__PURE__*/Schema.NullOr(ContainerNetworkSettingsSummary.ContainerNetworkSettingsSummary),
Mounts: /*#__PURE__*/Schema.NullOr(/*#__PURE__*/Schema.Array(/*#__PURE__*/Schema.NullOr(ContainerMountPoint.ContainerMountPoint)))
}, {
identifier: "ContainerSummary",
title: "container.Summary",
documentation: "https://pkg.go.dev/github.com/docker/docker@v28.4.0+incompatible/api/types/container#Summary"
}) {}
//# sourceMappingURL=ContainerSummary.generated.js.map