the-moby-effect
Version:
Moby/Docker API client built using effect-ts
25 lines • 1.71 kB
JavaScript
import * as Effect from "effect/Effect";
import * as Schema from "effect/Schema";
import * as MobyNumber from "../schemas/number.js";
export class ContainerExecOptions extends /*#__PURE__*/Schema.Class("ContainerExecOptions")({
User: /*#__PURE__*/Schema.String.pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed(""))),
Privileged: /*#__PURE__*/Schema.Boolean.pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed(false))),
Tty: /*#__PURE__*/Schema.Boolean.pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed(false))),
ConsoleSize: /*#__PURE__*/Schema.optional(/*#__PURE__*/Schema.NullOr(/*#__PURE__*/Schema.Array(MobyNumber.BigIntFromWireString.check(Schema.isBetweenBigInt({
minimum: 0n,
maximum: 2n ** 64n - 1n
}))).check(/*#__PURE__*/Schema.isLengthBetween(2, 2)))),
AttachStdin: Schema.Boolean,
AttachStderr: Schema.Boolean,
AttachStdout: Schema.Boolean,
DetachKeys: /*#__PURE__*/Schema.String.pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed(""))),
Env: /*#__PURE__*/Schema.NullOr(Schema.Array(Schema.String)).pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed(null))),
WorkingDir: /*#__PURE__*/Schema.String.pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed(""))),
Cmd: /*#__PURE__*/Schema.NullOr(/*#__PURE__*/Schema.Array(Schema.String)),
Detach: Schema.Boolean
}, {
identifier: "ContainerExecOptions",
title: "container.ExecOptions",
documentation: "https://pkg.go.dev/github.com/docker/docker@v28.4.0+incompatible/api/types/container#ExecOptions"
}) {}
//# sourceMappingURL=ContainerExecOptions.generated.js.map