the-moby-effect
Version:
Moby/Docker API client built using effect-ts
38 lines • 1.74 kB
JavaScript
import * as Schema from "effect/Schema";
import * as MobySchemas from "../schemas/index.js";
import * as MountPoint from "./MountPoint.generated.js";
import * as Port from "./Port.generated.js";
import * as SummaryNetworkSettings from "./SummaryNetworkSettings.generated.js";
export class ContainerListResponseItem extends /*#__PURE__*/Schema.Class("ContainerListResponseItem")({
Id: Schema.String,
Names: /*#__PURE__*/Schema.NullOr(/*#__PURE__*/Schema.Array(Schema.String)),
Image: Schema.String,
ImageID: Schema.String,
Command: Schema.String,
Created: MobySchemas.Int64,
Ports: /*#__PURE__*/Schema.NullOr(/*#__PURE__*/Schema.Array(/*#__PURE__*/Schema.NullOr(Port.Port))),
SizeRw: /*#__PURE__*/Schema.optional(MobySchemas.Int64),
SizeRootFs: /*#__PURE__*/Schema.optional(MobySchemas.Int64),
Labels: /*#__PURE__*/Schema.NullOr(/*#__PURE__*/Schema.Record({
key: Schema.String,
value: Schema.String
})),
State: Schema.String,
Status: Schema.String,
HostConfig: /*#__PURE__*/Schema.Struct({
NetworkMode: /*#__PURE__*/Schema.optional(Schema.String),
Annotations: /*#__PURE__*/Schema.optionalWith(/*#__PURE__*/Schema.Record({
key: Schema.String,
value: Schema.String
}), {
nullable: true
})
}),
NetworkSettings: /*#__PURE__*/Schema.NullOr(SummaryNetworkSettings.SummaryNetworkSettings),
Mounts: /*#__PURE__*/Schema.NullOr(/*#__PURE__*/Schema.Array(/*#__PURE__*/Schema.NullOr(MountPoint.MountPoint)))
}, {
identifier: "ContainerListResponseItem",
title: "types.Container",
documentation: "https://github.com/moby/moby/blob/a21b1a2d12e2c01542cb191eb526d7bfad0641e3/api/types/types.go#L140-L161"
}) {}
//# sourceMappingURL=ContainerListResponseItem.generated.js.map