@effect-vfs/core 0.1.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +97 -8
- package/dist/BytePath.d.ts +34 -0
- package/dist/BytePath.d.ts.map +1 -0
- package/dist/BytePath.js +16 -0
- package/dist/Snapshot.d.ts +5 -5
- package/dist/Snapshot.d.ts.map +1 -1
- package/dist/Snapshot.js +5 -6
- package/dist/SnapshotDelta.d.ts +193 -0
- package/dist/SnapshotDelta.d.ts.map +1 -0
- package/dist/SnapshotDelta.js +139 -0
- package/dist/VirtualFileSystem.d.ts +193 -342
- package/dist/VirtualFileSystem.d.ts.map +1 -1
- package/dist/VirtualFileSystem.js +104 -1774
- package/dist/internal/bytePath.d.ts +10 -0
- package/dist/internal/bytePath.d.ts.map +1 -0
- package/dist/internal/bytePath.js +46 -0
- package/dist/internal/canonicalBase64.d.ts +7 -0
- package/dist/internal/canonicalBase64.d.ts.map +1 -0
- package/dist/internal/canonicalBase64.js +11 -0
- package/dist/internal/image.d.ts +28 -31
- package/dist/internal/image.d.ts.map +1 -1
- package/dist/internal/image.js +14 -23
- package/dist/internal/snapshotDelta.d.ts +87 -0
- package/dist/internal/snapshotDelta.d.ts.map +1 -0
- package/dist/internal/snapshotDelta.js +576 -0
- package/dist/internal/snapshotDeltaModel.d.ts +10 -0
- package/dist/internal/snapshotDeltaModel.d.ts.map +1 -0
- package/dist/internal/snapshotDeltaModel.js +13 -0
- package/dist/internal/virtualFileSystem/errors.d.ts +26 -0
- package/dist/internal/virtualFileSystem/errors.d.ts.map +1 -0
- package/dist/internal/virtualFileSystem/errors.js +32 -0
- package/dist/internal/virtualFileSystem/fixture.d.ts +63 -0
- package/dist/internal/virtualFileSystem/fixture.d.ts.map +1 -0
- package/dist/internal/virtualFileSystem/fixture.js +144 -0
- package/dist/internal/{content.d.ts → virtualFileSystem/overlayContent.d.ts} +4 -14
- package/dist/internal/virtualFileSystem/overlayContent.d.ts.map +1 -0
- package/dist/internal/{content.js → virtualFileSystem/overlayContent.js} +3 -7
- package/dist/internal/{overlayChanges.d.ts → virtualFileSystem/overlayDiff.d.ts} +1 -1
- package/dist/internal/virtualFileSystem/overlayDiff.d.ts.map +1 -0
- package/dist/internal/{overlayChanges.js → virtualFileSystem/overlayDiff.js} +4 -15
- package/dist/internal/virtualFileSystem/path.d.ts +43 -0
- package/dist/internal/virtualFileSystem/path.d.ts.map +1 -0
- package/dist/internal/virtualFileSystem/path.js +124 -0
- package/dist/internal/virtualFileSystem/testHooks.d.ts +20 -0
- package/dist/internal/virtualFileSystem/testHooks.d.ts.map +1 -0
- package/dist/internal/virtualFileSystem/testHooks.js +23 -0
- package/dist/internal/virtualFileSystem/watchHub.d.ts +16 -0
- package/dist/internal/virtualFileSystem/watchHub.d.ts.map +1 -0
- package/dist/internal/virtualFileSystem/watchHub.js +33 -0
- package/dist/internal/virtualFileSystem.d.ts +290 -0
- package/dist/internal/virtualFileSystem.d.ts.map +1 -0
- package/dist/internal/virtualFileSystem.js +1677 -0
- package/package.json +5 -4
- package/dist/internal/content.d.ts.map +0 -1
- package/dist/internal/overlayChanges.d.ts.map +0 -1
- package/dist/internal/overlayTesting.d.ts +0 -12
- package/dist/internal/overlayTesting.d.ts.map +0 -1
- package/dist/internal/overlayTesting.js +0 -12
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
import * as ByteSize from "effect/ByteSize";
|
|
2
|
+
import * as Context from "effect/Context";
|
|
3
|
+
import * as Effect from "effect/Effect";
|
|
4
|
+
import * as Schema from "effect/Schema";
|
|
5
|
+
import { BytePath } from "../BytePath.js";
|
|
6
|
+
import { ImageError, type Snapshot } from "../Snapshot.js";
|
|
7
|
+
import type { Caller, OverlayVolume, RelativeOptions, Volume } from "../VirtualFileSystem.js";
|
|
8
|
+
import * as Image from "./image.js";
|
|
9
|
+
import { ConfigurationError, FsCode as FsCodeSchema, FsError } from "./virtualFileSystem/errors.js";
|
|
10
|
+
/** @internal */
|
|
11
|
+
export declare const VolumeId: unique symbol;
|
|
12
|
+
/** @internal */
|
|
13
|
+
export declare const CallerId: unique symbol;
|
|
14
|
+
/** @internal */
|
|
15
|
+
export declare const FileHandleId: unique symbol;
|
|
16
|
+
/** @internal */
|
|
17
|
+
export declare const DirectoryHandleId: unique symbol;
|
|
18
|
+
/** @internal */
|
|
19
|
+
export declare const ObjectReferenceId: unique symbol;
|
|
20
|
+
/** @internal */
|
|
21
|
+
export { ConfigurationError, FsCodeSchema as FsCode, FsError };
|
|
22
|
+
/** @internal */
|
|
23
|
+
export declare const Mode: Schema.Natural;
|
|
24
|
+
/** @internal */
|
|
25
|
+
export declare const Identity: Schema.Struct<{
|
|
26
|
+
readonly uid: Schema.Natural;
|
|
27
|
+
readonly gid: Schema.Natural;
|
|
28
|
+
readonly groups: Schema.$Array<Schema.Natural>;
|
|
29
|
+
readonly privileged: Schema.Boolean;
|
|
30
|
+
}>;
|
|
31
|
+
/** @internal */
|
|
32
|
+
export type Identity = typeof Identity.Type;
|
|
33
|
+
/** @internal */
|
|
34
|
+
export declare const RootCallerOptions: Schema.Struct<{
|
|
35
|
+
readonly identity: Schema.optionalKey<Schema.Struct<{
|
|
36
|
+
readonly uid: Schema.Natural;
|
|
37
|
+
readonly gid: Schema.Natural;
|
|
38
|
+
readonly groups: Schema.$Array<Schema.Natural>;
|
|
39
|
+
readonly privileged: Schema.Boolean;
|
|
40
|
+
}>>;
|
|
41
|
+
readonly umask: Schema.optionalKey<Schema.Natural>;
|
|
42
|
+
}>;
|
|
43
|
+
/** @internal */
|
|
44
|
+
export type RootCallerOptions = typeof RootCallerOptions.Type;
|
|
45
|
+
/** @internal */
|
|
46
|
+
export declare const VolumeOptions: Schema.Struct<{
|
|
47
|
+
readonly maxEntries: Schema.optionalKey<Schema.Natural>;
|
|
48
|
+
readonly maxBytes: Schema.optionalKey<Schema.ByteSize>;
|
|
49
|
+
readonly maxFileBytes: Schema.optionalKey<Schema.ByteSize>;
|
|
50
|
+
readonly maxPathBytes: Schema.optionalKey<Schema.ByteSize>;
|
|
51
|
+
}>;
|
|
52
|
+
/** @internal */
|
|
53
|
+
export type VolumeOptions = typeof VolumeOptions.Type;
|
|
54
|
+
/** @internal */
|
|
55
|
+
export declare const Timestamp: Schema.BigInt;
|
|
56
|
+
/** @internal */
|
|
57
|
+
export declare const Metadata: Schema.Struct<{
|
|
58
|
+
readonly kind: Schema.Literals<readonly ["directory", "file", "symlink"]>;
|
|
59
|
+
readonly ino: Schema.BigInt;
|
|
60
|
+
readonly nlink: Schema.Natural;
|
|
61
|
+
readonly size: Schema.BigInt;
|
|
62
|
+
readonly uid: Schema.Natural;
|
|
63
|
+
readonly gid: Schema.Natural;
|
|
64
|
+
readonly mode: Schema.Natural;
|
|
65
|
+
readonly atimeNs: Schema.BigInt;
|
|
66
|
+
readonly mtimeNs: Schema.BigInt;
|
|
67
|
+
readonly ctimeNs: Schema.BigInt;
|
|
68
|
+
readonly birthtimeNs: Schema.BigInt;
|
|
69
|
+
}>;
|
|
70
|
+
/** @internal */
|
|
71
|
+
export type Metadata = typeof Metadata.Type;
|
|
72
|
+
/** @internal */
|
|
73
|
+
export declare const OwnerUpdate: Schema.Struct<{
|
|
74
|
+
readonly uid: Schema.optionalKey<Schema.Natural>;
|
|
75
|
+
readonly gid: Schema.optionalKey<Schema.Natural>;
|
|
76
|
+
}>;
|
|
77
|
+
/** @internal */
|
|
78
|
+
export type OwnerUpdate = typeof OwnerUpdate.Type;
|
|
79
|
+
/** @internal */
|
|
80
|
+
export declare const TimeUpdate: Schema.Union<readonly [Schema.Struct<{
|
|
81
|
+
readonly kind: Schema.Literal<"now">;
|
|
82
|
+
}>, Schema.Struct<{
|
|
83
|
+
readonly kind: Schema.Literal<"omit">;
|
|
84
|
+
}>, Schema.Struct<{
|
|
85
|
+
readonly kind: Schema.Literal<"value">;
|
|
86
|
+
readonly nanoseconds: Schema.BigInt;
|
|
87
|
+
}>]>;
|
|
88
|
+
/** @internal */
|
|
89
|
+
export declare const Times: Schema.Struct<{
|
|
90
|
+
readonly access: Schema.Union<readonly [Schema.Struct<{
|
|
91
|
+
readonly kind: Schema.Literal<"now">;
|
|
92
|
+
}>, Schema.Struct<{
|
|
93
|
+
readonly kind: Schema.Literal<"omit">;
|
|
94
|
+
}>, Schema.Struct<{
|
|
95
|
+
readonly kind: Schema.Literal<"value">;
|
|
96
|
+
readonly nanoseconds: Schema.BigInt;
|
|
97
|
+
}>]>;
|
|
98
|
+
readonly modification: Schema.Union<readonly [Schema.Struct<{
|
|
99
|
+
readonly kind: Schema.Literal<"now">;
|
|
100
|
+
}>, Schema.Struct<{
|
|
101
|
+
readonly kind: Schema.Literal<"omit">;
|
|
102
|
+
}>, Schema.Struct<{
|
|
103
|
+
readonly kind: Schema.Literal<"value">;
|
|
104
|
+
readonly nanoseconds: Schema.BigInt;
|
|
105
|
+
}>]>;
|
|
106
|
+
}>;
|
|
107
|
+
/** @internal */
|
|
108
|
+
export type Times = typeof Times.Type;
|
|
109
|
+
/** @internal */
|
|
110
|
+
export declare const SeekMode: Schema.Literals<readonly ["start", "current", "end", "data", "hole"]>;
|
|
111
|
+
/** @internal */
|
|
112
|
+
export type SeekMode = typeof SeekMode.Type;
|
|
113
|
+
/** @internal */
|
|
114
|
+
export declare const OpenSettings: Schema.Struct<{
|
|
115
|
+
readonly access: Schema.Literals<readonly ["read", "write", "readWrite"]>;
|
|
116
|
+
readonly create: Schema.optionalKey<Schema.Literals<readonly ["never", "ifMissing", "exclusive"]>>;
|
|
117
|
+
readonly mode: Schema.optionalKey<Schema.Natural>;
|
|
118
|
+
readonly append: Schema.optionalKey<Schema.Boolean>;
|
|
119
|
+
readonly truncate: Schema.optionalKey<Schema.Boolean>;
|
|
120
|
+
readonly followFinalSymlink: Schema.optionalKey<Schema.Boolean>;
|
|
121
|
+
}>;
|
|
122
|
+
/** @internal */
|
|
123
|
+
export type OpenOptions = typeof OpenSettings.Type & RelativeOptions;
|
|
124
|
+
/** @internal */
|
|
125
|
+
export declare const WriteFileSettings: Schema.Struct<{
|
|
126
|
+
readonly access: Schema.Literals<readonly ["read", "write", "readWrite"]>;
|
|
127
|
+
readonly create: Schema.optionalKey<Schema.Literals<readonly ["never", "ifMissing", "exclusive"]>>;
|
|
128
|
+
readonly mode: Schema.optionalKey<Schema.Natural>;
|
|
129
|
+
readonly append: Schema.optionalKey<Schema.Boolean>;
|
|
130
|
+
readonly truncate: Schema.optionalKey<Schema.Boolean>;
|
|
131
|
+
readonly followFinalSymlink: Schema.optionalKey<Schema.Boolean>;
|
|
132
|
+
readonly replaceFinalSymlink: Schema.optionalKey<Schema.Boolean>;
|
|
133
|
+
readonly finalMode: Schema.optionalKey<Schema.Natural>;
|
|
134
|
+
}>;
|
|
135
|
+
/** @internal */
|
|
136
|
+
export type WriteFileOptions = typeof WriteFileSettings.Type & RelativeOptions;
|
|
137
|
+
/** @internal */
|
|
138
|
+
export declare const OverlayNodeKind: Schema.Literals<readonly ["directory", "file", "symlink"]>;
|
|
139
|
+
/** @internal */
|
|
140
|
+
export type OverlayNodeKind = typeof OverlayNodeKind.Type;
|
|
141
|
+
/** @internal */
|
|
142
|
+
export declare const OverlayDifference: Schema.Literals<readonly ["content", "mode", "uid", "gid", "atimeNs", "mtimeNs", "ctimeNs", "birthtimeNs"]>;
|
|
143
|
+
/** @internal */
|
|
144
|
+
export type OverlayDifference = typeof OverlayDifference.Type;
|
|
145
|
+
/** @internal */
|
|
146
|
+
export declare const OverlayChange: Schema.Union<readonly [Schema.TaggedStruct<"Added", {
|
|
147
|
+
readonly path: Schema.declare<BytePath, BytePath>;
|
|
148
|
+
readonly kind: Schema.Literals<readonly ["directory", "file", "symlink"]>;
|
|
149
|
+
}>, Schema.TaggedStruct<"Removed", {
|
|
150
|
+
readonly path: Schema.declare<BytePath, BytePath>;
|
|
151
|
+
readonly kind: Schema.Literals<readonly ["directory", "file", "symlink"]>;
|
|
152
|
+
}>, Schema.TaggedStruct<"Replaced", {
|
|
153
|
+
readonly path: Schema.declare<BytePath, BytePath>;
|
|
154
|
+
readonly beforeKind: Schema.Literals<readonly ["directory", "file", "symlink"]>;
|
|
155
|
+
readonly afterKind: Schema.Literals<readonly ["directory", "file", "symlink"]>;
|
|
156
|
+
readonly differences: Schema.$Array<Schema.Literals<readonly ["content", "mode", "uid", "gid", "atimeNs", "mtimeNs", "ctimeNs", "birthtimeNs"]>>;
|
|
157
|
+
}>, Schema.TaggedStruct<"Renamed", {
|
|
158
|
+
readonly from: Schema.declare<BytePath, BytePath>;
|
|
159
|
+
readonly to: Schema.declare<BytePath, BytePath>;
|
|
160
|
+
readonly kind: Schema.Literals<readonly ["directory", "file", "symlink"]>;
|
|
161
|
+
readonly differences: Schema.$Array<Schema.Literals<readonly ["content", "mode", "uid", "gid", "atimeNs", "mtimeNs", "ctimeNs", "birthtimeNs"]>>;
|
|
162
|
+
}>, Schema.TaggedStruct<"Updated", {
|
|
163
|
+
readonly path: Schema.declare<BytePath, BytePath>;
|
|
164
|
+
readonly kind: Schema.Literals<readonly ["directory", "file", "symlink"]>;
|
|
165
|
+
readonly differences: Schema.$Array<Schema.Literals<readonly ["content", "mode", "uid", "gid", "atimeNs", "mtimeNs", "ctimeNs", "birthtimeNs"]>>;
|
|
166
|
+
}>]>;
|
|
167
|
+
/** @internal */
|
|
168
|
+
export type OverlayChange = typeof OverlayChange.Type;
|
|
169
|
+
/** @internal */
|
|
170
|
+
export declare const OverlayChangesOptions: Schema.Struct<{
|
|
171
|
+
readonly includeTimestamps: Schema.optionalKey<Schema.Boolean>;
|
|
172
|
+
}>;
|
|
173
|
+
/** @internal */
|
|
174
|
+
export type OverlayChangesOptions = typeof OverlayChangesOptions.Type;
|
|
175
|
+
declare const CurrentFileSystem_base: Context.ServiceClass<CurrentFileSystem, "@effect-vfs/core/CurrentFileSystem", Caller>;
|
|
176
|
+
/** @internal */
|
|
177
|
+
export declare class CurrentFileSystem extends CurrentFileSystem_base {
|
|
178
|
+
}
|
|
179
|
+
/** @internal */
|
|
180
|
+
export declare const FixtureMetadata: Schema.Struct<{
|
|
181
|
+
readonly uid: Schema.optionalKey<Schema.Natural>;
|
|
182
|
+
readonly gid: Schema.optionalKey<Schema.Natural>;
|
|
183
|
+
readonly mode: Schema.optionalKey<Schema.Natural>;
|
|
184
|
+
readonly atimeNs: Schema.optionalKey<Schema.BigInt>;
|
|
185
|
+
readonly mtimeNs: Schema.optionalKey<Schema.BigInt>;
|
|
186
|
+
readonly ctimeNs: Schema.optionalKey<Schema.BigInt>;
|
|
187
|
+
readonly birthtimeNs: Schema.optionalKey<Schema.BigInt>;
|
|
188
|
+
}>;
|
|
189
|
+
/** @internal */
|
|
190
|
+
export declare const Fixture: Schema.Struct<{
|
|
191
|
+
readonly rootMetadata: Schema.optionalKey<Schema.Struct<{
|
|
192
|
+
readonly uid: Schema.optionalKey<Schema.Natural>;
|
|
193
|
+
readonly gid: Schema.optionalKey<Schema.Natural>;
|
|
194
|
+
readonly mode: Schema.optionalKey<Schema.Natural>;
|
|
195
|
+
readonly atimeNs: Schema.optionalKey<Schema.BigInt>;
|
|
196
|
+
readonly mtimeNs: Schema.optionalKey<Schema.BigInt>;
|
|
197
|
+
readonly ctimeNs: Schema.optionalKey<Schema.BigInt>;
|
|
198
|
+
readonly birthtimeNs: Schema.optionalKey<Schema.BigInt>;
|
|
199
|
+
}>>;
|
|
200
|
+
readonly entries: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
201
|
+
readonly kind: Schema.Literal<"directory">;
|
|
202
|
+
readonly path: Schema.Union<readonly [Schema.String, Schema.declare<BytePath, BytePath>]>;
|
|
203
|
+
readonly metadata: Schema.optionalKey<Schema.Struct<{
|
|
204
|
+
readonly uid: Schema.optionalKey<Schema.Natural>;
|
|
205
|
+
readonly gid: Schema.optionalKey<Schema.Natural>;
|
|
206
|
+
readonly mode: Schema.optionalKey<Schema.Natural>;
|
|
207
|
+
readonly atimeNs: Schema.optionalKey<Schema.BigInt>;
|
|
208
|
+
readonly mtimeNs: Schema.optionalKey<Schema.BigInt>;
|
|
209
|
+
readonly ctimeNs: Schema.optionalKey<Schema.BigInt>;
|
|
210
|
+
readonly birthtimeNs: Schema.optionalKey<Schema.BigInt>;
|
|
211
|
+
}>>;
|
|
212
|
+
}>, Schema.Struct<{
|
|
213
|
+
readonly kind: Schema.Literal<"file">;
|
|
214
|
+
readonly path: Schema.Union<readonly [Schema.String, Schema.declare<BytePath, BytePath>]>;
|
|
215
|
+
readonly bytes: Schema.Uint8Array;
|
|
216
|
+
readonly metadata: Schema.optionalKey<Schema.Struct<{
|
|
217
|
+
readonly uid: Schema.optionalKey<Schema.Natural>;
|
|
218
|
+
readonly gid: Schema.optionalKey<Schema.Natural>;
|
|
219
|
+
readonly mode: Schema.optionalKey<Schema.Natural>;
|
|
220
|
+
readonly atimeNs: Schema.optionalKey<Schema.BigInt>;
|
|
221
|
+
readonly mtimeNs: Schema.optionalKey<Schema.BigInt>;
|
|
222
|
+
readonly ctimeNs: Schema.optionalKey<Schema.BigInt>;
|
|
223
|
+
readonly birthtimeNs: Schema.optionalKey<Schema.BigInt>;
|
|
224
|
+
}>>;
|
|
225
|
+
}>, Schema.Struct<{
|
|
226
|
+
readonly kind: Schema.Literal<"symlink">;
|
|
227
|
+
readonly path: Schema.Union<readonly [Schema.String, Schema.declare<BytePath, BytePath>]>;
|
|
228
|
+
readonly target: Schema.Union<readonly [Schema.String, Schema.declare<BytePath, BytePath>]>;
|
|
229
|
+
readonly metadata: Schema.optionalKey<Schema.Struct<{
|
|
230
|
+
readonly uid: Schema.optionalKey<Schema.Natural>;
|
|
231
|
+
readonly gid: Schema.optionalKey<Schema.Natural>;
|
|
232
|
+
readonly mode: Schema.optionalKey<Schema.Natural>;
|
|
233
|
+
readonly atimeNs: Schema.optionalKey<Schema.BigInt>;
|
|
234
|
+
readonly mtimeNs: Schema.optionalKey<Schema.BigInt>;
|
|
235
|
+
readonly ctimeNs: Schema.optionalKey<Schema.BigInt>;
|
|
236
|
+
readonly birthtimeNs: Schema.optionalKey<Schema.BigInt>;
|
|
237
|
+
}>>;
|
|
238
|
+
}>, Schema.Struct<{
|
|
239
|
+
readonly kind: Schema.Literal<"hardLink">;
|
|
240
|
+
readonly path: Schema.Union<readonly [Schema.String, Schema.declare<BytePath, BytePath>]>;
|
|
241
|
+
readonly target: Schema.Union<readonly [Schema.String, Schema.declare<BytePath, BytePath>]>;
|
|
242
|
+
}>]>>;
|
|
243
|
+
}>;
|
|
244
|
+
/** @internal */
|
|
245
|
+
export type Fixture = typeof Fixture.Type;
|
|
246
|
+
type VolumeSource = {
|
|
247
|
+
readonly _tag: "Empty";
|
|
248
|
+
} | {
|
|
249
|
+
readonly _tag: "Snapshot";
|
|
250
|
+
readonly image: Image.Document;
|
|
251
|
+
} | {
|
|
252
|
+
readonly _tag: "Overlay";
|
|
253
|
+
readonly base: Snapshot;
|
|
254
|
+
readonly image: Image.Document;
|
|
255
|
+
};
|
|
256
|
+
/** @internal */
|
|
257
|
+
export declare const makeVolume: (source: VolumeSource, options?: {
|
|
258
|
+
readonly maxEntries?: number;
|
|
259
|
+
readonly maxBytes?: ByteSize.ByteSize;
|
|
260
|
+
readonly maxFileBytes?: ByteSize.ByteSize;
|
|
261
|
+
readonly maxPathBytes?: ByteSize.ByteSize;
|
|
262
|
+
} | undefined) => Effect.Effect<{
|
|
263
|
+
_tag: "Volume";
|
|
264
|
+
volume: Volume;
|
|
265
|
+
} | {
|
|
266
|
+
_tag: "Overlay";
|
|
267
|
+
volume: OverlayVolume;
|
|
268
|
+
}, ConfigurationError | ImageError, never>;
|
|
269
|
+
/** @internal */
|
|
270
|
+
export declare const make: (options?: {
|
|
271
|
+
readonly maxEntries?: number;
|
|
272
|
+
readonly maxBytes?: ByteSize.ByteSize;
|
|
273
|
+
readonly maxFileBytes?: ByteSize.ByteSize;
|
|
274
|
+
readonly maxPathBytes?: ByteSize.ByteSize;
|
|
275
|
+
} | undefined) => Effect.Effect<Volume, ConfigurationError, never>;
|
|
276
|
+
/** @internal */
|
|
277
|
+
export declare const fromSnapshot: (snapshot: Snapshot, options?: {
|
|
278
|
+
readonly maxEntries?: number;
|
|
279
|
+
readonly maxBytes?: ByteSize.ByteSize;
|
|
280
|
+
readonly maxFileBytes?: ByteSize.ByteSize;
|
|
281
|
+
readonly maxPathBytes?: ByteSize.ByteSize;
|
|
282
|
+
} | undefined) => Effect.Effect<Volume, ConfigurationError | ImageError, never>;
|
|
283
|
+
/** @internal */
|
|
284
|
+
export declare const makeOverlay: (base: Snapshot, options?: {
|
|
285
|
+
readonly maxEntries?: number;
|
|
286
|
+
readonly maxBytes?: ByteSize.ByteSize;
|
|
287
|
+
readonly maxFileBytes?: ByteSize.ByteSize;
|
|
288
|
+
readonly maxPathBytes?: ByteSize.ByteSize;
|
|
289
|
+
} | undefined) => Effect.Effect<OverlayVolume, ConfigurationError | ImageError, never>;
|
|
290
|
+
//# sourceMappingURL=virtualFileSystem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"virtualFileSystem.d.ts","sourceRoot":"","sources":["../../src/internal/virtualFileSystem.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAA;AAE3C,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAA;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAGvC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAEvC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,UAAU,EAAE,KAAK,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAC1D,OAAO,KAAK,EACV,MAAM,EAMN,aAAa,EAEb,eAAe,EACf,MAAM,EACP,MAAM,yBAAyB,CAAA;AAEhC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,kBAAkB,EAAE,MAAM,IAAI,YAAY,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAA;AAkBnG,gBAAgB;AAChB,eAAO,MAAM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