UNPKG

the-moby-effect

Version:
38 lines (37 loc) 2.42 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Mount = void 0; var Schema = _interopRequireWildcard(require("effect/Schema")); var BindOptions = _interopRequireWildcard(require("./BindOptions.generated.js")); var ClusterOptions = _interopRequireWildcard(require("./ClusterOptions.generated.js")); var TmpfsOptions = _interopRequireWildcard(require("./TmpfsOptions.generated.js")); var VolumeOptions = _interopRequireWildcard(require("./VolumeOptions.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 Mount extends /*#__PURE__*/Schema.Class("Mount")({ Type: /*#__PURE__*/Schema.optional(/*#__PURE__*/Schema.Literal("bind", "volume", "tmpfs", "npipe", "cluster")), Source: /*#__PURE__*/Schema.optional(Schema.String), Target: /*#__PURE__*/Schema.optional(Schema.String), ReadOnly: /*#__PURE__*/Schema.optional(Schema.Boolean), Consistency: /*#__PURE__*/Schema.optional(/*#__PURE__*/Schema.Literal("consistent", "cached", "delegated", "default")), BindOptions: /*#__PURE__*/Schema.optionalWith(BindOptions.BindOptions, { nullable: true }), VolumeOptions: /*#__PURE__*/Schema.optionalWith(VolumeOptions.VolumeOptions, { nullable: true }), TmpfsOptions: /*#__PURE__*/Schema.optionalWith(TmpfsOptions.TmpfsOptions, { nullable: true }), ClusterOptions: /*#__PURE__*/Schema.optionalWith(ClusterOptions.ClusterOptions, { nullable: true }) }, { identifier: "Mount", title: "mount.Mount", documentation: "https://github.com/moby/moby/blob/733755d7cb18a4dbea7c290cc56e61d05502aca0/api/types/mount/mount.go#L24-L39" }) {} exports.Mount = Mount; //# sourceMappingURL=Mount.generated.js.map