UNPKG

the-moby-effect

Version:
26 lines (24 loc) 1.3 kB
import * as Schema from "effect/Schema"; import * as SwarmEngineDescription from "./SwarmEngineDescription.generated.js"; import * as SwarmNodeCSIInfo from "./SwarmNodeCSIInfo.generated.js"; import * as SwarmPlatform from "./SwarmPlatform.generated.js"; import * as SwarmResources from "./SwarmResources.generated.js"; import * as SwarmTLSInfo from "./SwarmTLSInfo.generated.js"; export class SwarmNodeDescription extends Schema.Class<SwarmNodeDescription>("SwarmNodeDescription")( { Hostname: Schema.optional(Schema.String), Platform: Schema.optionalWith(SwarmPlatform.SwarmPlatform, { nullable: true }), Resources: Schema.optionalWith(SwarmResources.SwarmResources, { nullable: true }), Engine: Schema.optionalWith(SwarmEngineDescription.SwarmEngineDescription, { nullable: true }), TLSInfo: Schema.optionalWith(SwarmTLSInfo.SwarmTLSInfo, { nullable: true }), CSIInfo: Schema.optionalWith(Schema.Array(Schema.NullOr(SwarmNodeCSIInfo.SwarmNodeCSIInfo)), { nullable: true, }), }, { identifier: "SwarmNodeDescription", title: "swarm.NodeDescription", documentation: "https://github.com/moby/moby/blob/7d861e889cd2214b38c8f1f3f997bf003c77739d/api/types/swarm/node.go#L49-L57", } ) {}