UNPKG

the-moby-effect

Version:
71 lines 6.92 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 ContainerLogConfig from "./ContainerLogConfig.generated.js"; import * as ContainerResources from "./ContainerResources.generated.js"; import * as ContainerRestartPolicy from "./ContainerRestartPolicy.generated.js"; import * as MountMount from "./MountMount.generated.js"; export class ContainerHostConfig extends /*#__PURE__*/Schema.Class("ContainerHostConfig")({ Binds: /*#__PURE__*/Schema.NullOr(Schema.Array(Schema.String)).pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed(null))), ContainerIDFile: /*#__PURE__*/Schema.String.pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed(""))), LogConfig: /*#__PURE__*/Schema.NullOr(ContainerLogConfig.ContainerLogConfig).pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed(/*#__PURE__*/new ContainerLogConfig.ContainerLogConfig({ Type: "json-file", Config: null })))), NetworkMode: /*#__PURE__*/Schema.String.pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed("default"))), PortBindings: /*#__PURE__*/Schema.NullOr(PortSchemas.PortMap).pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed(null))), RestartPolicy: /*#__PURE__*/Schema.NullOr(ContainerRestartPolicy.ContainerRestartPolicy).pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed(/*#__PURE__*/new ContainerRestartPolicy.ContainerRestartPolicy({ Name: "no", MaximumRetryCount: 0n })))), AutoRemove: /*#__PURE__*/Schema.Boolean.pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed(false))), VolumeDriver: /*#__PURE__*/Schema.String.pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed(""))), VolumesFrom: /*#__PURE__*/Schema.NullOr(Schema.Array(Schema.String)).pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed(null))), ConsoleSize: /*#__PURE__*/Schema.Array(MobyNumber.BigIntFromWireString.check(Schema.isBetweenBigInt({ minimum: 0n, maximum: 2n ** 64n - 1n }))).check(Schema.isLengthBetween(2, 2)).pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed([0n, 0n]))), Annotations: /*#__PURE__*/Schema.optional(/*#__PURE__*/Schema.NullOr(/*#__PURE__*/Schema.Record(Schema.String, Schema.String))), CapAdd: /*#__PURE__*/Schema.NullOr(Schema.Array(Schema.String)).pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed(null))), CapDrop: /*#__PURE__*/Schema.NullOr(Schema.Array(Schema.String)).pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed(null))), CgroupnsMode: /*#__PURE__*/Schema.Literals(["", "private", "host"]).pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed(""))), Dns: /*#__PURE__*/Schema.NullOr(Schema.Array(Schema.String)).pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed([]))), DnsOptions: /*#__PURE__*/Schema.NullOr(Schema.Array(Schema.String)).pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed([]))), DnsSearch: /*#__PURE__*/Schema.NullOr(Schema.Array(Schema.String)).pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed([]))), ExtraHosts: /*#__PURE__*/Schema.NullOr(Schema.Array(Schema.String)).pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed(null))), GroupAdd: /*#__PURE__*/Schema.NullOr(Schema.Array(Schema.String)).pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed(null))), IpcMode: /*#__PURE__*/Schema.String.pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed(""))), Cgroup: /*#__PURE__*/Schema.String.pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed(""))), Links: /*#__PURE__*/Schema.NullOr(Schema.Array(Schema.String)).pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed(null))), OomScoreAdj: /*#__PURE__*/MobyNumber.BigIntFromWireString.check(Schema.isBetweenBigInt({ minimum: -(2n ** 63n), maximum: 2n ** 63n - 1n })).pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed(0n))), PidMode: /*#__PURE__*/Schema.String.pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed(""))), Privileged: /*#__PURE__*/Schema.Boolean.pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed(false))), PublishAllPorts: /*#__PURE__*/Schema.Boolean.pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed(false))), ReadonlyRootfs: /*#__PURE__*/Schema.Boolean.pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed(false))), SecurityOpt: /*#__PURE__*/Schema.NullOr(Schema.Array(Schema.String)).pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed(null))), StorageOpt: /*#__PURE__*/Schema.optional(/*#__PURE__*/Schema.NullOr(/*#__PURE__*/Schema.Record(Schema.String, Schema.String))), Tmpfs: /*#__PURE__*/Schema.optional(/*#__PURE__*/Schema.NullOr(/*#__PURE__*/Schema.Record(Schema.String, Schema.String))), UTSMode: /*#__PURE__*/Schema.String.pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed(""))), UsernsMode: /*#__PURE__*/Schema.String.pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed(""))), ShmSize: /*#__PURE__*/MobyNumber.BigIntFromWireString.check(Schema.isBetweenBigInt({ minimum: -(2n ** 63n), maximum: 2n ** 63n - 1n })).pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed(0n))), Sysctls: /*#__PURE__*/Schema.optional(/*#__PURE__*/Schema.NullOr(/*#__PURE__*/Schema.Record(Schema.String, Schema.String))), Runtime: /*#__PURE__*/Schema.optional(Schema.String), Isolation: /*#__PURE__*/Schema.Literals(["", "default", "process", "hyperv"]).pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed(""))), ...ContainerResources.ContainerResources.fields, Mounts: /*#__PURE__*/Schema.optional(/*#__PURE__*/Schema.NullOr(/*#__PURE__*/Schema.Array(/*#__PURE__*/Schema.NullOr(MountMount.MountMount)))), MaskedPaths: /*#__PURE__*/Schema.NullOr(Schema.Array(Schema.String)).pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed(null))), ReadonlyPaths: /*#__PURE__*/Schema.NullOr(Schema.Array(Schema.String)).pipe(/*#__PURE__*/Schema.withConstructorDefault(/*#__PURE__*/Effect.succeed(null))), Init: /*#__PURE__*/Schema.optional(/*#__PURE__*/Schema.NullOr(Schema.Boolean)) }, { identifier: "ContainerHostConfig", title: "container.HostConfig", documentation: "https://pkg.go.dev/github.com/docker/docker@v28.4.0+incompatible/api/types/container#HostConfig" }) {} //# sourceMappingURL=ContainerHostConfig.generated.js.map