the-moby-effect
Version:
Moby/Docker API client built using effect-ts
45 lines (44 loc) • 2.69 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ClusterVolume = void 0;
var Schema = _interopRequireWildcard(require("effect/Schema"));
var ClusterVolumeSpec = _interopRequireWildcard(require("./ClusterVolumeSpec.generated.js"));
var SwarmMeta = _interopRequireWildcard(require("./SwarmMeta.generated.js"));
var VolumeInfo = _interopRequireWildcard(require("./VolumeInfo.generated.js"));
var VolumePublishStatus = _interopRequireWildcard(require("./VolumePublishStatus.generated.js"));
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
class ClusterVolume extends /*#__PURE__*/Schema.Class("ClusterVolume")({
/**
* ID is the Swarm ID of the volume. Because cluster volumes are Swarm
* objects, they have an ID, unlike non-cluster volumes, which only have
* a Name. This ID can be used to refer to the cluster volume.
*/
ID: Schema.String,
// https://github.com/moby/moby/blob/733755d7cb18a4dbea7c290cc56e61d05502aca0/api/types/swarm/common.go#L18-L23
...SwarmMeta.SwarmMeta.fields,
/**
* Spec is the cluster-specific options from which this volume is
* derived.
*/
Spec: /*#__PURE__*/Schema.NullOr(ClusterVolumeSpec.ClusterVolumeSpec),
/**
* PublishStatus contains the status of the volume as it pertains to its
* publishing on Nodes.
*/
PublishStatus: /*#__PURE__*/Schema.optionalWith(/*#__PURE__*/Schema.Array(/*#__PURE__*/Schema.NullOr(VolumePublishStatus.VolumePublishStatus)), {
nullable: true
}),
/** Info is information about the global status of the volume. */
Info: /*#__PURE__*/Schema.optionalWith(VolumeInfo.VolumeInfo, {
nullable: true
})
}, {
identifier: "ClusterVolume",
title: "volume.ClusterVolume",
documentation: "https://github.com/moby/moby/blob/a21b1a2d12e2c01542cb191eb526d7bfad0641e3/api/types/volume/cluster_volume.go#L7-L27"
}) {}
exports.ClusterVolume = ClusterVolume;
//# sourceMappingURL=ClusterVolume.generated.js.map