@wocker/ws 1.0.26 → 1.0.27

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.
Files changed (43) hide show
  1. package/lib/AppModule.js +38 -4
  2. package/lib/modules/dns/index.js +5 -2
  3. package/lib/modules/dns/services/DnsService.d.ts +1 -1
  4. package/lib/modules/dns/services/DnsService.js +2 -2
  5. package/lib/modules/index.d.ts +0 -1
  6. package/lib/modules/index.js +0 -1
  7. package/lib/modules/preset/controllers/PresetController.d.ts +1 -1
  8. package/lib/modules/preset/controllers/PresetController.js +2 -2
  9. package/lib/modules/preset/controllers/PresetListener.d.ts +1 -1
  10. package/lib/modules/preset/controllers/PresetListener.js +2 -2
  11. package/lib/modules/preset/index.js +5 -2
  12. package/lib/modules/preset/repositories/PresetRepository.d.ts +3 -2
  13. package/lib/modules/preset/repositories/PresetRepository.js +9 -4
  14. package/lib/modules/preset/services/PresetService.js +1 -1
  15. package/lib/modules/project/index.js +6 -3
  16. package/lib/modules/project/services/ProjectService.d.ts +1 -1
  17. package/lib/modules/project/services/ProjectService.js +6 -4
  18. package/lib/modules/proxy/index.js +5 -2
  19. package/lib/modules/proxy/services/CertService.d.ts +1 -1
  20. package/lib/modules/proxy/services/CertService.js +2 -2
  21. package/lib/modules/proxy/services/ProxyService.d.ts +1 -1
  22. package/lib/modules/proxy/services/ProxyService.js +2 -2
  23. package/package.json +6 -4
  24. package/lib/modules/docker/index.d.ts +0 -9
  25. package/lib/modules/docker/index.js +0 -45
  26. package/lib/modules/docker/services/ComposeService.d.ts +0 -32
  27. package/lib/modules/docker/services/ComposeService.js +0 -127
  28. package/lib/modules/docker/services/ContainerService.d.ts +0 -14
  29. package/lib/modules/docker/services/ContainerService.js +0 -115
  30. package/lib/modules/docker/services/DockerService.d.ts +0 -31
  31. package/lib/modules/docker/services/DockerService.js +0 -245
  32. package/lib/modules/docker/services/ImageService.d.ts +0 -12
  33. package/lib/modules/docker/services/ImageService.js +0 -80
  34. package/lib/modules/docker/services/ModemService.d.ts +0 -15
  35. package/lib/modules/docker/services/ModemService.js +0 -156
  36. package/lib/modules/docker/services/ProtoService.d.ts +0 -6
  37. package/lib/modules/docker/services/ProtoService.js +0 -20
  38. package/lib/modules/docker/type/ComposeConfig.d.ts +0 -12
  39. package/lib/modules/docker/type/ComposeConfig.js +0 -2
  40. package/lib/modules/docker/utils/formatSizeUnits.d.ts +0 -1
  41. package/lib/modules/docker/utils/formatSizeUnits.js +0 -19
  42. package/proto/buildkit.proto +0 -55
  43. package/proto/solver/pb/ops.proto +0 -443
@@ -1,443 +0,0 @@
1
- syntax = "proto3";
2
-
3
- // Package pb provides the protobuf definition of LLB: low-level builder instruction.
4
- // LLB is DAG-structured; Op represents a vertex, and Definition represents a graph.
5
- package pb;
6
-
7
- option go_package = "github.com/moby/buildkit/solver/pb";
8
-
9
- // Op represents a vertex of the LLB DAG.
10
- message Op {
11
- // changes to this structure must be represented in json.go.
12
- // inputs is a set of input edges.
13
- repeated Input inputs = 1;
14
- oneof op {
15
- ExecOp exec = 2;
16
- SourceOp source = 3;
17
- FileOp file = 4;
18
- BuildOp build = 5;
19
- MergeOp merge = 6;
20
- DiffOp diff = 7;
21
- }
22
- Platform platform = 10;
23
- WorkerConstraints constraints = 11;
24
- }
25
-
26
- // Platform is github.com/opencontainers/image-spec/specs-go/v1.Platform
27
- message Platform {
28
- string Architecture = 1;
29
- string OS = 2;
30
- string Variant = 3;
31
- string OSVersion = 4;
32
- repeated string OSFeatures = 5; // unused
33
- }
34
-
35
- // Input represents an input edge for an Op.
36
- message Input {
37
- // digest of the marshaled input Op
38
- string digest = 1;
39
- // output index of the input Op
40
- int64 index = 2;
41
- }
42
-
43
- // ExecOp executes a command in a container.
44
- message ExecOp {
45
- Meta meta = 1;
46
- repeated Mount mounts = 2;
47
- NetMode network = 3;
48
- SecurityMode security = 4;
49
- repeated SecretEnv secretenv = 5;
50
- repeated CDIDevice cdiDevices = 6;
51
- }
52
-
53
- // Meta is a set of arguments for ExecOp.
54
- // Meta is unrelated to LLB metadata.
55
- // FIXME: rename (ExecContext? ExecArgs?)
56
- message Meta {
57
- repeated string args = 1;
58
- repeated string env = 2;
59
- string cwd = 3;
60
- string user = 4;
61
- ProxyEnv proxy_env = 5;
62
- repeated HostIP extraHosts = 6;
63
- string hostname = 7;
64
- repeated Ulimit ulimit = 9;
65
- string cgroupParent = 10;
66
- bool removeMountStubsRecursive = 11;
67
- repeated int32 validExitCodes = 12;
68
- }
69
-
70
- message HostIP {
71
- string Host = 1;
72
- string IP = 2;
73
- }
74
-
75
- message Ulimit {
76
- string Name = 1;
77
- int64 Soft = 2;
78
- int64 Hard = 3;
79
- }
80
-
81
- enum NetMode {
82
- UNSET = 0; // sandbox
83
- HOST = 1;
84
- NONE = 2;
85
- }
86
-
87
- enum SecurityMode {
88
- SANDBOX = 0;
89
- INSECURE = 1; // privileged mode
90
- }
91
-
92
- // SecretEnv is an environment variable that is backed by a secret.
93
- message SecretEnv {
94
- string ID = 1;
95
- string name = 2;
96
- bool optional = 3;
97
- }
98
-
99
- // CDIDevice specifies a CDI device information.
100
- message CDIDevice {
101
- // Fully qualified CDI device name (e.g., vendor.com/gpu=gpudevice1)
102
- // https://github.com/cncf-tags/container-device-interface/blob/main/SPEC.md
103
- string name = 1;
104
- // Optional defines if CDI device is required.
105
- bool optional = 2;
106
- }
107
-
108
- // Mount specifies how to mount an input Op as a filesystem.
109
- message Mount {
110
- int64 input = 1;
111
- string selector = 2;
112
- string dest = 3;
113
- int64 output = 4;
114
- bool readonly = 5;
115
- MountType mountType = 6;
116
- TmpfsOpt TmpfsOpt = 19;
117
- CacheOpt cacheOpt = 20;
118
- SecretOpt secretOpt = 21;
119
- SSHOpt SSHOpt = 22;
120
- string resultID = 23;
121
- MountContentCache contentCache = 24;
122
- }
123
-
124
- // MountType defines a type of a mount from a supported set
125
- enum MountType {
126
- BIND = 0;
127
- SECRET = 1;
128
- SSH = 2;
129
- CACHE = 3;
130
- TMPFS = 4;
131
- }
132
-
133
- // MountContentCache ...
134
- enum MountContentCache {
135
- DEFAULT = 0;
136
- ON = 1;
137
- OFF = 2;
138
- }
139
-
140
- // TmpfsOpt defines options describing tpmfs mounts
141
- message TmpfsOpt {
142
- // Specify an upper limit on the size of the filesystem.
143
- int64 size = 1;
144
- }
145
-
146
- // CacheOpt defines options specific to cache mounts
147
- message CacheOpt {
148
- // ID is an optional namespace for the mount
149
- string ID = 1;
150
- // Sharing is the sharing mode for the mount
151
- CacheSharingOpt sharing = 2;
152
- }
153
-
154
- // CacheSharingOpt defines different sharing modes for cache mount
155
- enum CacheSharingOpt {
156
- // SHARED cache mount can be used concurrently by multiple writers
157
- SHARED = 0;
158
- // PRIVATE creates a new mount if there are multiple writers
159
- PRIVATE = 1;
160
- // LOCKED pauses second writer until first one releases the mount
161
- LOCKED = 2;
162
- }
163
-
164
- // SecretOpt defines options describing secret mounts
165
- message SecretOpt {
166
- // ID of secret. Used for quering the value.
167
- string ID = 1;
168
- // UID of secret file
169
- uint32 uid = 2;
170
- // GID of secret file
171
- uint32 gid = 3;
172
- // Mode is the filesystem mode of secret file
173
- uint32 mode = 4;
174
- // Optional defines if secret value is required. Error is produced
175
- // if value is not found and optional is false.
176
- bool optional = 5;
177
- }
178
-
179
- // SSHOpt defines options describing ssh mounts
180
- message SSHOpt {
181
- // ID of exposed ssh rule. Used for quering the value.
182
- string ID = 1;
183
- // UID of agent socket
184
- uint32 uid = 2;
185
- // GID of agent socket
186
- uint32 gid = 3;
187
- // Mode is the filesystem mode of agent socket
188
- uint32 mode = 4;
189
- // Optional defines if ssh socket is required. Error is produced
190
- // if client does not expose ssh.
191
- bool optional = 5;
192
- }
193
-
194
- // SourceOp specifies a source such as build contexts and images.
195
- message SourceOp {
196
- // TODO: use source type or any type instead of URL protocol.
197
- // identifier e.g. local://, docker-image://, git://, https://...
198
- string identifier = 1;
199
- // attrs are defined in attr.go
200
- map<string, string> attrs = 2;
201
- }
202
-
203
- // BuildOp is used for nested build invocation.
204
- // BuildOp is experimental and can break without backwards compatibility
205
- message BuildOp {
206
- int64 builder = 1;
207
- map<string, BuildInput> inputs = 2;
208
- Definition def = 3;
209
- map<string, string> attrs = 4;
210
- // outputs
211
- }
212
-
213
- // BuildInput is used for BuildOp.
214
- message BuildInput {
215
- int64 input = 1;
216
- }
217
-
218
- // OpMetadata is a per-vertex metadata entry, which can be defined for arbitrary Op vertex and overridable on the run time.
219
- message OpMetadata {
220
- // ignore_cache specifies to ignore the cache for this Op.
221
- bool ignore_cache = 1;
222
- // Description can be used for keeping any text fields that builder doesn't parse
223
- map<string, string> description = 2;
224
- // index 3 reserved for WorkerConstraint in previous versions
225
- // WorkerConstraint worker_constraint = 3;
226
- ExportCache export_cache = 4;
227
-
228
- map<string, bool> caps = 5;
229
-
230
- ProgressGroup progress_group = 6;
231
- }
232
-
233
- // Source is a source mapping description for a file
234
- message Source {
235
- map<string, Locations> locations = 1;
236
- repeated SourceInfo infos = 2;
237
- }
238
-
239
- // Locations is a list of ranges with a index to its source map.
240
- message Locations {
241
- repeated Location locations = 1;
242
- }
243
-
244
- // Source info contains the shared metadata of a source mapping
245
- message SourceInfo {
246
- string filename = 1;
247
- bytes data = 2;
248
- Definition definition = 3;
249
- string language = 4;
250
- }
251
-
252
- // Location defines list of areas in to source file
253
- message Location {
254
- int32 sourceIndex = 1;
255
- repeated Range ranges = 2;
256
- }
257
-
258
- // Range is an area in the source file
259
- message Range {
260
- Position start = 1;
261
- Position end = 2;
262
- }
263
-
264
- // Position is single location in a source file
265
- message Position {
266
- int32 line = 1;
267
- int32 character = 2;
268
- }
269
-
270
- message ExportCache {
271
- bool Value = 1;
272
- }
273
-
274
- message ProgressGroup {
275
- string id = 1;
276
- string name = 2;
277
- bool weak = 3;
278
- }
279
-
280
- message ProxyEnv {
281
- string http_proxy = 1;
282
- string https_proxy = 2;
283
- string ftp_proxy = 3;
284
- string no_proxy = 4;
285
- string all_proxy = 5;
286
- }
287
-
288
- // WorkerConstraints defines conditions for the worker
289
- message WorkerConstraints {
290
- repeated string filter = 1; // containerd-style filter
291
- }
292
-
293
- // Definition is the LLB definition structure with per-vertex metadata entries
294
- message Definition {
295
- // def is a list of marshaled Op messages
296
- repeated bytes def = 1;
297
- // metadata contains metadata for the each of the Op messages.
298
- // A key must be an LLB op digest string. Currently, empty string is not expected as a key, but it may change in the future.
299
- map<string, OpMetadata> metadata = 2;
300
- // Source contains the source mapping information for the vertexes in the definition
301
- Source Source = 3;
302
- }
303
-
304
- message FileOp {
305
- repeated FileAction actions = 2;
306
- }
307
-
308
- message FileAction {
309
- // changes to this structure must be represented in json.go.
310
- int64 input = 1; // could be real input or target (target index + max input index)
311
- int64 secondaryInput = 2; // --//--
312
- int64 output = 3;
313
- oneof action {
314
- // FileActionCopy copies files from secondaryInput on top of input
315
- FileActionCopy copy = 4;
316
- // FileActionMkFile creates a new file
317
- FileActionMkFile mkfile = 5;
318
- // FileActionMkDir creates a new directory
319
- FileActionMkDir mkdir = 6;
320
- // FileActionRm removes a file
321
- FileActionRm rm = 7;
322
- // FileActionSymlink creates a symlink
323
- FileActionSymlink symlink = 8;
324
- }
325
- }
326
-
327
- message FileActionCopy {
328
- // src is the source path
329
- string src = 1;
330
- // dest path
331
- string dest = 2;
332
- // optional owner override
333
- ChownOpt owner = 3;
334
- // optional permission bits override
335
- int32 mode = 4;
336
- // followSymlink resolves symlinks in src
337
- bool followSymlink = 5;
338
- // dirCopyContents only copies contents if src is a directory
339
- bool dirCopyContents = 6;
340
- // attemptUnpackDockerCompatibility detects if src is an archive to unpack it instead
341
- bool attemptUnpackDockerCompatibility = 7;
342
- // createDestPath creates dest path directories if needed
343
- bool createDestPath = 8;
344
- // allowWildcard allows filepath.Match wildcards in src path
345
- bool allowWildcard = 9;
346
- // allowEmptyWildcard doesn't fail the whole copy if wildcard doesn't resolve to files
347
- bool allowEmptyWildcard = 10;
348
- // optional created time override
349
- int64 timestamp = 11;
350
- // include only files/dirs matching at least one of these patterns
351
- repeated string include_patterns = 12;
352
- // exclude files/dir matching any of these patterns (even if they match an include pattern)
353
- repeated string exclude_patterns = 13;
354
- // alwaysReplaceExistingDestPaths results in an existing dest path that differs in type from the src path being replaced rather than the default of returning an error
355
- bool alwaysReplaceExistingDestPaths = 14;
356
- // mode in non-octal format
357
- string modeStr = 15;
358
- }
359
-
360
- message FileActionMkFile {
361
- // path for the new file
362
- string path = 1;
363
- // permission bits
364
- int32 mode = 2;
365
- // data is the new file contents
366
- bytes data = 3;
367
- // optional owner for the new file
368
- ChownOpt owner = 4;
369
- // optional created time override
370
- int64 timestamp = 5;
371
- }
372
-
373
- message FileActionSymlink {
374
- // destination path for the new file representing the link
375
- string oldpath = 1;
376
- // source path for the link
377
- string newpath = 2;
378
- // optional owner for the new file
379
- ChownOpt owner = 3;
380
- // optional created time override
381
- int64 timestamp = 4;
382
- }
383
-
384
- message FileActionMkDir {
385
- // path for the new directory
386
- string path = 1;
387
- // permission bits
388
- int32 mode = 2;
389
- // makeParents creates parent directories as well if needed
390
- bool makeParents = 3;
391
- // optional owner for the new directory
392
- ChownOpt owner = 4;
393
- // optional created time override
394
- int64 timestamp = 5;
395
- }
396
-
397
- message FileActionRm {
398
- // path to remove
399
- string path = 1;
400
- // allowNotFound doesn't fail the rm if file is not found
401
- bool allowNotFound = 2;
402
- // allowWildcard allows filepath.Match wildcards in path
403
- bool allowWildcard = 3;
404
- }
405
-
406
- message ChownOpt {
407
- UserOpt user = 1;
408
- UserOpt group = 2;
409
- }
410
-
411
- message UserOpt {
412
- // changes to this structure must be represented in json.go.
413
- oneof user {
414
- NamedUserOpt byName = 1;
415
- uint32 byID = 2;
416
- }
417
- }
418
-
419
- message NamedUserOpt {
420
- string name = 1;
421
- int64 input = 2;
422
- }
423
-
424
- message MergeInput {
425
- int64 input = 1;
426
- }
427
-
428
- message MergeOp {
429
- repeated MergeInput inputs = 1;
430
- }
431
-
432
- message LowerDiffInput {
433
- int64 input = 1;
434
- }
435
-
436
- message UpperDiffInput {
437
- int64 input = 1;
438
- }
439
-
440
- message DiffOp {
441
- LowerDiffInput lower = 1;
442
- UpperDiffInput upper = 2;
443
- }