the-moby-effect
Version:
Moby/Docker API client built using effect-ts
26 lines (23 loc) • 881 B
text/typescript
import * as Schema from "effect/Schema";
import * as MobyNumber from "../schemas/number.ts";
export class ContainerExecStartOptions extends Schema.Class<ContainerExecStartOptions>("ContainerExecStartOptions")(
{
Detach: Schema.Boolean,
Tty: Schema.Boolean,
ConsoleSize: Schema.optional(
Schema.NullOr(
Schema.Array(
MobyNumber.BigIntFromWireString.check(
Schema.isBetweenBigInt({ minimum: 0n, maximum: 2n ** 64n - 1n })
)
).check(Schema.isLengthBetween(2, 2))
)
),
},
{
identifier: "ContainerExecStartOptions",
title: "container.ExecStartOptions",
documentation:
"https://pkg.go.dev/github.com/docker/docker@v28.4.0+incompatible/api/types/container#ExecStartOptions",
}
) {}