UNPKG

the-moby-effect

Version:
40 lines 3.6 kB
import * as Effect from "effect/Effect"; import * as Schema from "effect/Schema"; import * as MobyNumber from "../schemas/number.js"; import * as PortSchemas from "../schemas/port.js"; import * as V1HealthcheckConfig from "./V1HealthcheckConfig.generated.js"; export class ContainerConfig extends /*#__PURE__*/Schema.Class("ContainerConfig")({ Hostname: /*#__PURE__*/Schema.String.pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed(""))), Domainname: /*#__PURE__*/Schema.String.pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed(""))), User: /*#__PURE__*/Schema.String.pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed(""))), AttachStdin: /*#__PURE__*/Schema.Boolean.pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed(false))), AttachStdout: /*#__PURE__*/Schema.Boolean.pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed(false))), AttachStderr: /*#__PURE__*/Schema.Boolean.pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed(false))), ExposedPorts: /*#__PURE__*/Schema.optional(/*#__PURE__*/Schema.NullOr(PortSchemas.PortSet)), Tty: /*#__PURE__*/Schema.Boolean.pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed(false))), OpenStdin: /*#__PURE__*/Schema.Boolean.pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed(false))), StdinOnce: /*#__PURE__*/Schema.Boolean.pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed(false))), Env: /*#__PURE__*/Schema.NullOr(Schema.Array(Schema.String)).pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed(null))), Cmd: /*#__PURE__*/Schema.NullOr(Schema.Array(Schema.String)).pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed(null))), Healthcheck: /*#__PURE__*/Schema.optional(/*#__PURE__*/Schema.NullOr(V1HealthcheckConfig.V1HealthcheckConfig)), ArgsEscaped: /*#__PURE__*/Schema.optional(Schema.Boolean), Image: Schema.String, Volumes: /*#__PURE__*/Schema.NullOr(Schema.Record(Schema.String, Schema.ObjectKeyword)).pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed(null))), WorkingDir: /*#__PURE__*/Schema.String.pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed(""))), Entrypoint: /*#__PURE__*/Schema.NullOr(Schema.Array(Schema.String)).pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed(null))), NetworkDisabled: /*#__PURE__*/Schema.optional(Schema.Boolean), MacAddress: /*#__PURE__*/Schema.optional(Schema.String), OnBuild: /*#__PURE__*/Schema.optional(Schema.NullOr(Schema.Array(Schema.String))).pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed(null))), Labels: /*#__PURE__*/Schema.NullOr(Schema.Record(Schema.String, Schema.String)).pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed(null))), StopSignal: /*#__PURE__*/Schema.optional(Schema.String), StopTimeout: /*#__PURE__*/Schema.optional(/*#__PURE__*/Schema.NullOr(/*#__PURE__*/MobyNumber.BigIntFromWireString.check(/*#__PURE__*/Schema.isBetweenBigInt({ minimum: -(2n ** 63n), maximum: 2n ** 63n - 1n })))), Shell: /*#__PURE__*/Schema.optional(/*#__PURE__*/Schema.NullOr(/*#__PURE__*/Schema.Array(Schema.String))) }, { identifier: "ContainerConfig", title: "container.Config", documentation: "https://pkg.go.dev/github.com/docker/docker@v28.4.0+incompatible/api/types/container#Config" }) {} //# sourceMappingURL=ContainerConfig.generated.js.map