UNPKG

the-moby-effect

Version:
28 lines 1.51 kB
import * as Schema from "effect/Schema"; import * as MobyIdentifiers from "../schemas/id.js"; import * as MobyNumber from "../schemas/number.js"; import * as SwarmClusterInfo from "./SwarmClusterInfo.generated.js"; import * as SwarmPeer from "./SwarmPeer.generated.js"; export class SwarmInfo extends /*#__PURE__*/Schema.Class("SwarmInfo")({ NodeID: MobyIdentifiers.NodeIdentifier, NodeAddr: Schema.String, LocalNodeState: /*#__PURE__*/Schema.Literals(["inactive", "pending", "active", "error", "locked"]), ControlAvailable: Schema.Boolean, Error: Schema.String, RemoteManagers: /*#__PURE__*/Schema.NullOr(/*#__PURE__*/Schema.Array(/*#__PURE__*/Schema.NullOr(SwarmPeer.SwarmPeer))), Nodes: /*#__PURE__*/Schema.optional(/*#__PURE__*/MobyNumber.BigIntFromWireString.check(/*#__PURE__*/Schema.isBetweenBigInt({ minimum: -(2n ** 63n), maximum: 2n ** 63n - 1n }))), Managers: /*#__PURE__*/Schema.optional(/*#__PURE__*/MobyNumber.BigIntFromWireString.check(/*#__PURE__*/Schema.isBetweenBigInt({ minimum: -(2n ** 63n), maximum: 2n ** 63n - 1n }))), Cluster: /*#__PURE__*/Schema.optional(/*#__PURE__*/Schema.NullOr(SwarmClusterInfo.SwarmClusterInfo)), Warnings: /*#__PURE__*/Schema.optional(/*#__PURE__*/Schema.NullOr(/*#__PURE__*/Schema.Array(Schema.String))) }, { identifier: "SwarmInfo", title: "swarm.Info", documentation: "https://pkg.go.dev/github.com/docker/docker@v28.4.0+incompatible/api/types/swarm#Info" }) {} //# sourceMappingURL=SwarmInfo.generated.js.map