UNPKG

the-moby-effect

Version:
86 lines 3.75 kB
import * as Schema from "effect/Schema"; import * as MobySchemas from "../schemas/index.js"; import * as ContainerHealthConfig from "./ContainerHealthConfig.generated.js"; import * as ContainerUlimit from "./ContainerUlimit.generated.js"; import * as Mount from "./Mount.generated.js"; import * as SwarmConfigReference from "./SwarmConfigReference.generated.js"; import * as SwarmDNSConfig from "./SwarmDNSConfig.generated.js"; import * as SwarmPrivileges from "./SwarmPrivileges.generated.js"; import * as SwarmSecretReference from "./SwarmSecretReference.generated.js"; export class SwarmContainerSpec extends /*#__PURE__*/Schema.Class("SwarmContainerSpec")({ Image: /*#__PURE__*/Schema.optional(Schema.String), Labels: /*#__PURE__*/Schema.optionalWith(/*#__PURE__*/Schema.Record({ key: Schema.String, value: Schema.String }), { nullable: true }), Command: /*#__PURE__*/Schema.optionalWith(/*#__PURE__*/Schema.Array(Schema.String), { nullable: true }), Args: /*#__PURE__*/Schema.optionalWith(/*#__PURE__*/Schema.Array(Schema.String), { nullable: true }), Hostname: /*#__PURE__*/Schema.optional(Schema.String), Env: /*#__PURE__*/Schema.optionalWith(/*#__PURE__*/Schema.Array(Schema.String), { nullable: true }), Dir: /*#__PURE__*/Schema.optional(Schema.String), User: /*#__PURE__*/Schema.optional(Schema.String), Groups: /*#__PURE__*/Schema.optionalWith(/*#__PURE__*/Schema.Array(Schema.String), { nullable: true }), Privileges: /*#__PURE__*/Schema.optionalWith(SwarmPrivileges.SwarmPrivileges, { nullable: true }), Init: /*#__PURE__*/Schema.optionalWith(Schema.Boolean, { nullable: true }), StopSignal: /*#__PURE__*/Schema.optional(Schema.String), TTY: /*#__PURE__*/Schema.optional(Schema.Boolean), OpenStdin: /*#__PURE__*/Schema.optional(Schema.Boolean), ReadOnly: /*#__PURE__*/Schema.optional(Schema.Boolean), Mounts: /*#__PURE__*/Schema.optionalWith(/*#__PURE__*/Schema.Array(/*#__PURE__*/Schema.NullOr(Mount.Mount)), { nullable: true }), StopGracePeriod: /*#__PURE__*/Schema.optionalWith(MobySchemas.Int64, { nullable: true }), Healthcheck: /*#__PURE__*/Schema.optionalWith(ContainerHealthConfig.ContainerHealthConfig, { nullable: true }), Hosts: /*#__PURE__*/Schema.optionalWith(/*#__PURE__*/Schema.Array(Schema.String), { nullable: true }), DNSConfig: /*#__PURE__*/Schema.optionalWith(SwarmDNSConfig.SwarmDNSConfig, { nullable: true }), Secrets: /*#__PURE__*/Schema.optionalWith(/*#__PURE__*/Schema.Array(/*#__PURE__*/Schema.NullOr(SwarmSecretReference.SwarmSecretReference)), { nullable: true }), Configs: /*#__PURE__*/Schema.optionalWith(/*#__PURE__*/Schema.Array(/*#__PURE__*/Schema.NullOr(SwarmConfigReference.SwarmConfigReference)), { nullable: true }), Isolation: /*#__PURE__*/Schema.optional(Schema.String), Sysctls: /*#__PURE__*/Schema.optionalWith(/*#__PURE__*/Schema.Record({ key: Schema.String, value: Schema.String }), { nullable: true }), CapabilityAdd: /*#__PURE__*/Schema.optionalWith(/*#__PURE__*/Schema.Array(Schema.String), { nullable: true }), CapabilityDrop: /*#__PURE__*/Schema.optionalWith(/*#__PURE__*/Schema.Array(Schema.String), { nullable: true }), Ulimits: /*#__PURE__*/Schema.optionalWith(/*#__PURE__*/Schema.Array(/*#__PURE__*/Schema.NullOr(ContainerUlimit.ContainerUlimit)), { nullable: true }), OomScoreAdj: /*#__PURE__*/Schema.optional(MobySchemas.Int64) }, { identifier: "SwarmContainerSpec", title: "swarm.ContainerSpec", documentation: "https://github.com/moby/moby/blob/7d861e889cd2214b38c8f1f3f997bf003c77739d/api/types/swarm/container.go#L86-L119" }) {} //# sourceMappingURL=SwarmContainerSpec.generated.js.map