the-moby-effect
Version:
Moby/Docker API client built using effect-ts
25 lines (22 loc) • 939 B
text/typescript
import * as Schema from "effect/Schema";
import * as MobyIdentifiers from "../schemas/id.ts";
import * as MobyNumber from "../schemas/number.ts";
export class ContainerExecInspect extends Schema.Class<ContainerExecInspect>("ContainerExecInspect")(
{
ID: MobyIdentifiers.ExecIdentifier,
ContainerID: MobyIdentifiers.ContainerIdentifier,
Running: Schema.Boolean,
ExitCode: MobyNumber.BigIntFromWireString.check(
Schema.isBetweenBigInt({ minimum: -(2n ** 63n), maximum: 2n ** 63n - 1n })
),
Pid: MobyNumber.BigIntFromWireString.check(
Schema.isBetweenBigInt({ minimum: -(2n ** 63n), maximum: 2n ** 63n - 1n })
),
},
{
identifier: "ContainerExecInspect",
title: "container.ExecInspect",
documentation:
"https://pkg.go.dev/github.com/docker/docker@v28.4.0+incompatible/api/types/container#ExecInspect",
}
) {}