UNPKG

the-moby-effect

Version:
48 lines (47 loc) 2.56 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.VolumeInfo = void 0; var Schema = _interopRequireWildcard(require("effect/Schema")); var MobySchemas = _interopRequireWildcard(require("../schemas/index.js")); var VolumeTopology = _interopRequireWildcard(require("./VolumeTopology.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 VolumeInfo extends /*#__PURE__*/Schema.Class("VolumeInfo")({ /** * CapacityBytes is the capacity of the volume in bytes. A value of 0 * indicates that the capacity is unknown. */ CapacityBytes: /*#__PURE__*/Schema.optional(MobySchemas.Int64), /** * VolumeContext is the context originating from the CSI storage plugin * when the Volume is created. */ VolumeContext: /*#__PURE__*/Schema.optionalWith(/*#__PURE__*/Schema.Record({ key: Schema.String, value: Schema.String }), { nullable: true }), /** * VolumeID is the ID of the Volume as seen by the CSI storage plugin. * This is distinct from the Volume's Swarm ID, which is the ID used by * all of the Docker Engine to refer to the Volume. If this field is * blank, then the Volume has not been successfully created yet. */ VolumeID: /*#__PURE__*/Schema.optional(Schema.String), /** * AccessibleTopology is the topology this volume is actually accessible * from. */ AccessibleTopology: /*#__PURE__*/Schema.optionalWith(/*#__PURE__*/Schema.Array(/*#__PURE__*/Schema.NullOr(VolumeTopology.VolumeTopology)), { nullable: true }) }, { identifier: "VolumeInfo", title: "volume.Info", documentation: "https://github.com/moby/moby/blob/a21b1a2d12e2c01542cb191eb526d7bfad0641e3/api/types/volume/cluster_volume.go#L400-L420" }) {} exports.VolumeInfo = VolumeInfo; //# sourceMappingURL=VolumeInfo.generated.js.map