UNPKG

the-moby-effect

Version:
25 lines 1.13 kB
import * as Schema from "effect/Schema"; import * as MobySchemas from "../schemas/index.js"; import * as SwarmClusterInfo from "./SwarmClusterInfo.generated.js"; import * as SwarmPeer from "./SwarmPeer.generated.js"; export class SwarmInfo extends /*#__PURE__*/Schema.Class("SwarmInfo")({ NodeID: Schema.String, NodeAddr: Schema.String, LocalNodeState: Schema.String, ControlAvailable: Schema.Boolean, Error: Schema.String, RemoteManagers: /*#__PURE__*/Schema.NullOr(/*#__PURE__*/Schema.Array(/*#__PURE__*/Schema.NullOr(SwarmPeer.SwarmPeer))), Nodes: /*#__PURE__*/Schema.optional(MobySchemas.Int64), Managers: /*#__PURE__*/Schema.optional(MobySchemas.Int64), Cluster: /*#__PURE__*/Schema.optionalWith(SwarmClusterInfo.SwarmClusterInfo, { nullable: true }), Warnings: /*#__PURE__*/Schema.optionalWith(/*#__PURE__*/Schema.Array(Schema.String), { nullable: true }) }, { identifier: "SwarmInfo", title: "swarm.Info", documentation: "https://github.com/moby/moby/blob/7d861e889cd2214b38c8f1f3f997bf003c77739d/api/types/swarm/swarm.go#L198-L214" }) {} //# sourceMappingURL=SwarmInfo.generated.js.map