UNPKG

the-moby-effect

Version:
20 lines 1.07 kB
import * as Schema from "effect/Schema"; import * as MobyNumber from "../schemas/number.js"; export class SwarmPortConfig extends /*#__PURE__*/Schema.Class("SwarmPortConfig")({ Name: /*#__PURE__*/Schema.optional(Schema.String), Protocol: /*#__PURE__*/Schema.optional(/*#__PURE__*/Schema.Literals(["tcp", "udp", "sctp"])), TargetPort: /*#__PURE__*/Schema.optional(/*#__PURE__*/MobyNumber.NumberFromWireString.check(/*#__PURE__*/Schema.isInt(), /*#__PURE__*/Schema.isBetween({ minimum: 0, maximum: 2 ** 32 - 1 }))), PublishedPort: /*#__PURE__*/Schema.optional(/*#__PURE__*/MobyNumber.NumberFromWireString.check(/*#__PURE__*/Schema.isInt(), /*#__PURE__*/Schema.isBetween({ minimum: 0, maximum: 2 ** 32 - 1 }))), PublishMode: /*#__PURE__*/Schema.optional(/*#__PURE__*/Schema.Literals(["ingress", "host"])) }, { identifier: "SwarmPortConfig", title: "swarm.PortConfig", documentation: "https://pkg.go.dev/github.com/docker/docker@v28.4.0+incompatible/api/types/swarm#PortConfig" }) {} //# sourceMappingURL=SwarmPortConfig.generated.js.map