UNPKG

the-moby-effect

Version:
22 lines 1.02 kB
import * as Schema from "effect/Schema"; export class VolumePublishStatus extends /*#__PURE__*/Schema.Class("VolumePublishStatus")({ /** NodeID is the ID of the swarm node this Volume is published to. */ NodeID: /*#__PURE__*/Schema.optional(Schema.String), /** State is the publish state of the volume. */ State: /*#__PURE__*/Schema.optional(/*#__PURE__*/Schema.Literal("pending-publish", "published", "pending-node-unpublish", "pending-controller-unpublish")), /** * PublishContext is the PublishContext returned by the CSI plugin when * a volume is published. */ PublishContext: /*#__PURE__*/Schema.optionalWith(/*#__PURE__*/Schema.Record({ key: Schema.String, value: Schema.String }), { nullable: true }) }, { identifier: "VolumePublishStatus", title: "volume.PublishStatus", documentation: "https://github.com/moby/moby/blob/a21b1a2d12e2c01542cb191eb526d7bfad0641e3/api/types/volume/cluster_volume.go#L386-L398" }) {} //# sourceMappingURL=VolumePublishStatus.generated.js.map