@dagger.io/dagger 0.18.9 → 0.18.11
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/dist/src/api/client.gen.d.ts +185 -28
- package/dist/src/api/client.gen.d.ts.map +1 -1
- package/dist/src/api/client.gen.js +206 -34
- package/dist/src/common/errors/ExecError.d.ts +6 -0
- package/dist/src/common/errors/ExecError.d.ts.map +1 -1
- package/dist/src/common/errors/ExecError.js +5 -0
- package/dist/src/common/errors/GraphQLRequestError.d.ts +5 -0
- package/dist/src/common/errors/GraphQLRequestError.d.ts.map +1 -1
- package/dist/src/common/errors/GraphQLRequestError.js +5 -0
- package/dist/src/common/graphql/compute_query.d.ts.map +1 -1
- package/dist/src/common/graphql/compute_query.js +1 -0
- package/dist/src/module/entrypoint/entrypoint.d.ts.map +1 -1
- package/dist/src/module/entrypoint/entrypoint.js +32 -9
- package/dist/src/provisioning/default.d.ts +1 -1
- package/dist/src/provisioning/default.d.ts.map +1 -1
- package/dist/src/provisioning/default.js +1 -1
- package/package.json +19 -19
|
@@ -53,6 +53,12 @@ export declare enum CacheSharingMode {
|
|
|
53
53
|
export type CacheVolumeID = string & {
|
|
54
54
|
__CacheVolumeID: never;
|
|
55
55
|
};
|
|
56
|
+
/**
|
|
57
|
+
* The `CloudID` scalar type represents an identifier for an object of type Cloud.
|
|
58
|
+
*/
|
|
59
|
+
export type CloudID = string & {
|
|
60
|
+
__CloudID: never;
|
|
61
|
+
};
|
|
56
62
|
export type ContainerAsServiceOpts = {
|
|
57
63
|
/**
|
|
58
64
|
* Command to run instead of the container's default command (e.g., ["go", "run", "main.go"]).
|
|
@@ -483,6 +489,12 @@ export type ContainerWithNewFileOpts = {
|
|
|
483
489
|
*/
|
|
484
490
|
expand?: boolean;
|
|
485
491
|
};
|
|
492
|
+
export type ContainerWithSymlinkOpts = {
|
|
493
|
+
/**
|
|
494
|
+
* Replace "${VAR}" or "$VAR" in the value of path according to the current environment variables defined in the container (e.g. "/$VAR/foo.txt").
|
|
495
|
+
*/
|
|
496
|
+
expand?: boolean;
|
|
497
|
+
};
|
|
486
498
|
export type ContainerWithUnixSocketOpts = {
|
|
487
499
|
/**
|
|
488
500
|
* A user:group to set for the mounted socket.
|
|
@@ -696,6 +708,12 @@ export type DirectoryID = string & {
|
|
|
696
708
|
export type EngineCacheEntrySetOpts = {
|
|
697
709
|
key?: string;
|
|
698
710
|
};
|
|
711
|
+
export type EngineCachePruneOpts = {
|
|
712
|
+
/**
|
|
713
|
+
* Use the engine-wide default pruning policy if true, otherwise prune the whole cache of any releasable entries.
|
|
714
|
+
*/
|
|
715
|
+
useDefaultPolicy?: boolean;
|
|
716
|
+
};
|
|
699
717
|
/**
|
|
700
718
|
* The `EngineCacheEntryID` scalar type represents an identifier for an object of type EngineCacheEntry.
|
|
701
719
|
*/
|
|
@@ -929,7 +947,9 @@ export declare enum ImageLayerCompression {
|
|
|
929
947
|
* Mediatypes to use in published or exported image metadata.
|
|
930
948
|
*/
|
|
931
949
|
export declare enum ImageMediaTypes {
|
|
950
|
+
Docker = "DOCKER",
|
|
932
951
|
Dockermediatypes = "DockerMediaTypes",
|
|
952
|
+
Oci = "OCI",
|
|
933
953
|
Ocimediatypes = "OCIMediaTypes"
|
|
934
954
|
}
|
|
935
955
|
/**
|
|
@@ -992,12 +1012,6 @@ export type ModuleConfigClientID = string & {
|
|
|
992
1012
|
export type ModuleID = string & {
|
|
993
1013
|
__ModuleID: never;
|
|
994
1014
|
};
|
|
995
|
-
export type ModuleSourceWithClientOpts = {
|
|
996
|
-
/**
|
|
997
|
-
* Generate in developer mode
|
|
998
|
-
*/
|
|
999
|
-
dev?: boolean;
|
|
1000
|
-
};
|
|
1001
1015
|
/**
|
|
1002
1016
|
* The `ModuleSourceID` scalar type represents an identifier for an object of type ModuleSource.
|
|
1003
1017
|
*/
|
|
@@ -1008,8 +1022,11 @@ export type ModuleSourceID = string & {
|
|
|
1008
1022
|
* The kind of module source.
|
|
1009
1023
|
*/
|
|
1010
1024
|
export declare enum ModuleSourceKind {
|
|
1025
|
+
Dir = "DIR",
|
|
1011
1026
|
DirSource = "DIR_SOURCE",
|
|
1027
|
+
Git = "GIT",
|
|
1012
1028
|
GitSource = "GIT_SOURCE",
|
|
1029
|
+
Local = "LOCAL",
|
|
1013
1030
|
LocalSource = "LOCAL_SOURCE"
|
|
1014
1031
|
}
|
|
1015
1032
|
/**
|
|
@@ -1063,9 +1080,6 @@ export type PortForward = {
|
|
|
1063
1080
|
export type PortID = string & {
|
|
1064
1081
|
__PortID: never;
|
|
1065
1082
|
};
|
|
1066
|
-
export type ClientCacheVolumeOpts = {
|
|
1067
|
-
namespace?: string;
|
|
1068
|
-
};
|
|
1069
1083
|
export type ClientContainerOpts = {
|
|
1070
1084
|
/**
|
|
1071
1085
|
* Platform to initialize the container with. Defaults to the native platform of the current engine
|
|
@@ -1101,6 +1115,10 @@ export type ClientGitOpts = {
|
|
|
1101
1115
|
* Set SSH auth socket
|
|
1102
1116
|
*/
|
|
1103
1117
|
sshAuthSocket?: Socket;
|
|
1118
|
+
/**
|
|
1119
|
+
* Username used to populate the password during basic HTTP Authorization
|
|
1120
|
+
*/
|
|
1121
|
+
httpAuthUsername?: string;
|
|
1104
1122
|
/**
|
|
1105
1123
|
* Secret used to populate the password during basic HTTP Authorization
|
|
1106
1124
|
*/
|
|
@@ -1267,6 +1285,20 @@ export type TypeDefWithEnumOpts = {
|
|
|
1267
1285
|
*/
|
|
1268
1286
|
sourceMap?: SourceMap;
|
|
1269
1287
|
};
|
|
1288
|
+
export type TypeDefWithEnumMemberOpts = {
|
|
1289
|
+
/**
|
|
1290
|
+
* The value of the member in the enum
|
|
1291
|
+
*/
|
|
1292
|
+
value?: string;
|
|
1293
|
+
/**
|
|
1294
|
+
* A doc string for the member, if any
|
|
1295
|
+
*/
|
|
1296
|
+
description?: string;
|
|
1297
|
+
/**
|
|
1298
|
+
* The source map for the enum member definition.
|
|
1299
|
+
*/
|
|
1300
|
+
sourceMap?: SourceMap;
|
|
1301
|
+
};
|
|
1270
1302
|
export type TypeDefWithEnumValueOpts = {
|
|
1271
1303
|
/**
|
|
1272
1304
|
* A doc string for the value, if any
|
|
@@ -1308,54 +1340,108 @@ export type TypeDefID = string & {
|
|
|
1308
1340
|
* Distinguishes the different kinds of TypeDefs.
|
|
1309
1341
|
*/
|
|
1310
1342
|
export declare enum TypeDefKind {
|
|
1343
|
+
/**
|
|
1344
|
+
* A boolean value.
|
|
1345
|
+
*/
|
|
1346
|
+
Boolean = "BOOLEAN",
|
|
1311
1347
|
/**
|
|
1312
1348
|
* A boolean value.
|
|
1313
1349
|
*/
|
|
1314
1350
|
BooleanKind = "BOOLEAN_KIND",
|
|
1351
|
+
/**
|
|
1352
|
+
* A GraphQL enum type and its values
|
|
1353
|
+
*
|
|
1354
|
+
* Always paired with an EnumTypeDef.
|
|
1355
|
+
*/
|
|
1356
|
+
Enum = "ENUM",
|
|
1315
1357
|
/**
|
|
1316
1358
|
* A GraphQL enum type and its values
|
|
1317
1359
|
*
|
|
1318
1360
|
* Always paired with an EnumTypeDef.
|
|
1319
1361
|
*/
|
|
1320
1362
|
EnumKind = "ENUM_KIND",
|
|
1363
|
+
/**
|
|
1364
|
+
* A float value.
|
|
1365
|
+
*/
|
|
1366
|
+
Float = "FLOAT",
|
|
1321
1367
|
/**
|
|
1322
1368
|
* A float value.
|
|
1323
1369
|
*/
|
|
1324
1370
|
FloatKind = "FLOAT_KIND",
|
|
1371
|
+
/**
|
|
1372
|
+
* A graphql input type, used only when representing the core API via TypeDefs.
|
|
1373
|
+
*/
|
|
1374
|
+
Input = "INPUT",
|
|
1325
1375
|
/**
|
|
1326
1376
|
* A graphql input type, used only when representing the core API via TypeDefs.
|
|
1327
1377
|
*/
|
|
1328
1378
|
InputKind = "INPUT_KIND",
|
|
1379
|
+
/**
|
|
1380
|
+
* An integer value.
|
|
1381
|
+
*/
|
|
1382
|
+
Integer = "INTEGER",
|
|
1329
1383
|
/**
|
|
1330
1384
|
* An integer value.
|
|
1331
1385
|
*/
|
|
1332
1386
|
IntegerKind = "INTEGER_KIND",
|
|
1333
1387
|
/**
|
|
1334
|
-
*
|
|
1388
|
+
* Always paired with an InterfaceTypeDef.
|
|
1335
1389
|
*
|
|
1390
|
+
* A named type of functions that can be matched+implemented by other objects+interfaces.
|
|
1391
|
+
*/
|
|
1392
|
+
Interface = "INTERFACE",
|
|
1393
|
+
/**
|
|
1336
1394
|
* Always paired with an InterfaceTypeDef.
|
|
1395
|
+
*
|
|
1396
|
+
* A named type of functions that can be matched+implemented by other objects+interfaces.
|
|
1337
1397
|
*/
|
|
1338
1398
|
InterfaceKind = "INTERFACE_KIND",
|
|
1339
1399
|
/**
|
|
1340
|
-
*
|
|
1400
|
+
* Always paired with a ListTypeDef.
|
|
1341
1401
|
*
|
|
1402
|
+
* A list of values all having the same type.
|
|
1403
|
+
*/
|
|
1404
|
+
List = "LIST",
|
|
1405
|
+
/**
|
|
1342
1406
|
* Always paired with a ListTypeDef.
|
|
1407
|
+
*
|
|
1408
|
+
* A list of values all having the same type.
|
|
1343
1409
|
*/
|
|
1344
1410
|
ListKind = "LIST_KIND",
|
|
1345
1411
|
/**
|
|
1346
|
-
*
|
|
1412
|
+
* Always paired with an ObjectTypeDef.
|
|
1347
1413
|
*
|
|
1414
|
+
* A named type defined in the GraphQL schema, with fields and functions.
|
|
1415
|
+
*/
|
|
1416
|
+
Object = "OBJECT",
|
|
1417
|
+
/**
|
|
1348
1418
|
* Always paired with an ObjectTypeDef.
|
|
1419
|
+
*
|
|
1420
|
+
* A named type defined in the GraphQL schema, with fields and functions.
|
|
1349
1421
|
*/
|
|
1350
1422
|
ObjectKind = "OBJECT_KIND",
|
|
1423
|
+
/**
|
|
1424
|
+
* A scalar value of any basic kind.
|
|
1425
|
+
*/
|
|
1426
|
+
Scalar = "SCALAR",
|
|
1351
1427
|
/**
|
|
1352
1428
|
* A scalar value of any basic kind.
|
|
1353
1429
|
*/
|
|
1354
1430
|
ScalarKind = "SCALAR_KIND",
|
|
1431
|
+
/**
|
|
1432
|
+
* A string value.
|
|
1433
|
+
*/
|
|
1434
|
+
String = "STRING",
|
|
1355
1435
|
/**
|
|
1356
1436
|
* A string value.
|
|
1357
1437
|
*/
|
|
1358
1438
|
StringKind = "STRING_KIND",
|
|
1439
|
+
/**
|
|
1440
|
+
* A special kind used to signify that no value is returned.
|
|
1441
|
+
*
|
|
1442
|
+
* This is used for functions that have no return value. The outer TypeDef specifying this Kind is always Optional, as the Void is never actually represented.
|
|
1443
|
+
*/
|
|
1444
|
+
Void = "VOID",
|
|
1359
1445
|
/**
|
|
1360
1446
|
* A special kind used to signify that no value is returned.
|
|
1361
1447
|
*
|
|
@@ -1396,6 +1482,10 @@ export declare class Binding extends BaseClient {
|
|
|
1396
1482
|
* Retrieve the binding value, as type CacheVolume
|
|
1397
1483
|
*/
|
|
1398
1484
|
asCacheVolume: () => CacheVolume;
|
|
1485
|
+
/**
|
|
1486
|
+
* Retrieve the binding value, as type Cloud
|
|
1487
|
+
*/
|
|
1488
|
+
asCloud: () => Cloud;
|
|
1399
1489
|
/**
|
|
1400
1490
|
* Retrieve the binding value, as type Container
|
|
1401
1491
|
*/
|
|
@@ -1483,6 +1573,25 @@ export declare class CacheVolume extends BaseClient {
|
|
|
1483
1573
|
*/
|
|
1484
1574
|
id: () => Promise<CacheVolumeID>;
|
|
1485
1575
|
}
|
|
1576
|
+
/**
|
|
1577
|
+
* Dagger Cloud configuration and state
|
|
1578
|
+
*/
|
|
1579
|
+
export declare class Cloud extends BaseClient {
|
|
1580
|
+
private readonly _id?;
|
|
1581
|
+
private readonly _traceURL?;
|
|
1582
|
+
/**
|
|
1583
|
+
* Constructor is used for internal usage only, do not create object from it.
|
|
1584
|
+
*/
|
|
1585
|
+
constructor(ctx?: Context, _id?: CloudID, _traceURL?: string);
|
|
1586
|
+
/**
|
|
1587
|
+
* A unique identifier for this Cloud.
|
|
1588
|
+
*/
|
|
1589
|
+
id: () => Promise<CloudID>;
|
|
1590
|
+
/**
|
|
1591
|
+
* The trace URL for the current session
|
|
1592
|
+
*/
|
|
1593
|
+
traceURL: () => Promise<string>;
|
|
1594
|
+
}
|
|
1486
1595
|
/**
|
|
1487
1596
|
* An OCI-compatible container, also known as a Docker container.
|
|
1488
1597
|
*/
|
|
@@ -1945,7 +2054,7 @@ export declare class Container extends BaseClient {
|
|
|
1945
2054
|
*/
|
|
1946
2055
|
withSecretVariable: (name: string, secret: Secret) => Container;
|
|
1947
2056
|
/**
|
|
1948
|
-
* Establish a runtime dependency
|
|
2057
|
+
* Establish a runtime dependency from a container to a network service.
|
|
1949
2058
|
*
|
|
1950
2059
|
* The service will be started automatically when needed and detached when it is no longer needed, executing the default command if none is set.
|
|
1951
2060
|
*
|
|
@@ -1956,6 +2065,13 @@ export declare class Container extends BaseClient {
|
|
|
1956
2065
|
* @param service The target service
|
|
1957
2066
|
*/
|
|
1958
2067
|
withServiceBinding: (alias: string, service: Service) => Container;
|
|
2068
|
+
/**
|
|
2069
|
+
* Return a snapshot with a symlink
|
|
2070
|
+
* @param target Location of the file or directory to link to (e.g., "/existing/file").
|
|
2071
|
+
* @param linkName Location where the symbolic link will be created (e.g., "/new-file-link").
|
|
2072
|
+
* @param opts.expand Replace "${VAR}" or "$VAR" in the value of path according to the current environment variables defined in the container (e.g. "/$VAR/foo.txt").
|
|
2073
|
+
*/
|
|
2074
|
+
withSymlink: (target: string, linkName: string, opts?: ContainerWithSymlinkOpts) => Container;
|
|
1959
2075
|
/**
|
|
1960
2076
|
* Retrieves this container plus a socket forwarded to the given Unix socket path.
|
|
1961
2077
|
* @param path Location of the forwarded Unix socket (e.g., "/tmp/socket").
|
|
@@ -2250,6 +2366,12 @@ export declare class Directory extends BaseClient {
|
|
|
2250
2366
|
* @param opts.permissions Permissions of the new file. Example: 0600
|
|
2251
2367
|
*/
|
|
2252
2368
|
withNewFile: (path: string, contents: string, opts?: DirectoryWithNewFileOpts) => Directory;
|
|
2369
|
+
/**
|
|
2370
|
+
* Return a snapshot with a symlink
|
|
2371
|
+
* @param target Location of the file or directory to link to (e.g., "/existing/file").
|
|
2372
|
+
* @param linkName Location where the symbolic link will be created (e.g., "/new-file-link").
|
|
2373
|
+
*/
|
|
2374
|
+
withSymlink: (target: string, linkName: string) => Directory;
|
|
2253
2375
|
/**
|
|
2254
2376
|
* Retrieves this directory with all file/dir timestamps set to the given time.
|
|
2255
2377
|
* @param timestamp Timestamp to set dir/files in.
|
|
@@ -2335,8 +2457,9 @@ export declare class EngineCache extends BaseClient {
|
|
|
2335
2457
|
minFreeSpace: () => Promise<number>;
|
|
2336
2458
|
/**
|
|
2337
2459
|
* Prune the cache of releaseable entries
|
|
2460
|
+
* @param opts.useDefaultPolicy Use the engine-wide default pruning policy if true, otherwise prune the whole cache of any releasable entries.
|
|
2338
2461
|
*/
|
|
2339
|
-
prune: () => Promise<void>;
|
|
2462
|
+
prune: (opts?: EngineCachePruneOpts) => Promise<void>;
|
|
2340
2463
|
/**
|
|
2341
2464
|
* The minimum amount of disk space this policy is guaranteed to retain.
|
|
2342
2465
|
*/
|
|
@@ -2433,6 +2556,10 @@ export declare class EnumTypeDef extends BaseClient {
|
|
|
2433
2556
|
* A doc string for the enum, if any.
|
|
2434
2557
|
*/
|
|
2435
2558
|
description: () => Promise<string>;
|
|
2559
|
+
/**
|
|
2560
|
+
* The members of the enum.
|
|
2561
|
+
*/
|
|
2562
|
+
members: () => Promise<EnumValueTypeDef[]>;
|
|
2436
2563
|
/**
|
|
2437
2564
|
* The name of the enum.
|
|
2438
2565
|
*/
|
|
@@ -2446,7 +2573,7 @@ export declare class EnumTypeDef extends BaseClient {
|
|
|
2446
2573
|
*/
|
|
2447
2574
|
sourceModuleName: () => Promise<string>;
|
|
2448
2575
|
/**
|
|
2449
|
-
*
|
|
2576
|
+
* @deprecated use members instead
|
|
2450
2577
|
*/
|
|
2451
2578
|
values: () => Promise<EnumValueTypeDef[]>;
|
|
2452
2579
|
}
|
|
@@ -2457,26 +2584,31 @@ export declare class EnumValueTypeDef extends BaseClient {
|
|
|
2457
2584
|
private readonly _id?;
|
|
2458
2585
|
private readonly _description?;
|
|
2459
2586
|
private readonly _name?;
|
|
2587
|
+
private readonly _value?;
|
|
2460
2588
|
/**
|
|
2461
2589
|
* Constructor is used for internal usage only, do not create object from it.
|
|
2462
2590
|
*/
|
|
2463
|
-
constructor(ctx?: Context, _id?: EnumValueTypeDefID, _description?: string, _name?: string);
|
|
2591
|
+
constructor(ctx?: Context, _id?: EnumValueTypeDefID, _description?: string, _name?: string, _value?: string);
|
|
2464
2592
|
/**
|
|
2465
2593
|
* A unique identifier for this EnumValueTypeDef.
|
|
2466
2594
|
*/
|
|
2467
2595
|
id: () => Promise<EnumValueTypeDefID>;
|
|
2468
2596
|
/**
|
|
2469
|
-
* A doc string for the enum
|
|
2597
|
+
* A doc string for the enum member, if any.
|
|
2470
2598
|
*/
|
|
2471
2599
|
description: () => Promise<string>;
|
|
2472
2600
|
/**
|
|
2473
|
-
* The name of the enum
|
|
2601
|
+
* The name of the enum member.
|
|
2474
2602
|
*/
|
|
2475
2603
|
name: () => Promise<string>;
|
|
2476
2604
|
/**
|
|
2477
|
-
* The location of this enum
|
|
2605
|
+
* The location of this enum member declaration.
|
|
2478
2606
|
*/
|
|
2479
2607
|
sourceMap: () => SourceMap;
|
|
2608
|
+
/**
|
|
2609
|
+
* The value of the enum member
|
|
2610
|
+
*/
|
|
2611
|
+
value: () => Promise<string>;
|
|
2480
2612
|
}
|
|
2481
2613
|
export declare class Env extends BaseClient {
|
|
2482
2614
|
private readonly _id?;
|
|
@@ -2517,6 +2649,19 @@ export declare class Env extends BaseClient {
|
|
|
2517
2649
|
* @param description A description of the desired value of the binding
|
|
2518
2650
|
*/
|
|
2519
2651
|
withCacheVolumeOutput: (name: string, description: string) => Env;
|
|
2652
|
+
/**
|
|
2653
|
+
* Create or update a binding of type Cloud in the environment
|
|
2654
|
+
* @param name The name of the binding
|
|
2655
|
+
* @param value The Cloud value to assign to the binding
|
|
2656
|
+
* @param description The purpose of the input
|
|
2657
|
+
*/
|
|
2658
|
+
withCloudInput: (name: string, value: Cloud, description: string) => Env;
|
|
2659
|
+
/**
|
|
2660
|
+
* Declare a desired Cloud output to be assigned in the environment
|
|
2661
|
+
* @param name The name of the binding
|
|
2662
|
+
* @param description A description of the desired value of the binding
|
|
2663
|
+
*/
|
|
2664
|
+
withCloudOutput: (name: string, description: string) => Env;
|
|
2520
2665
|
/**
|
|
2521
2666
|
* Create or update a binding of type Container in the environment
|
|
2522
2667
|
* @param name The name of the binding
|
|
@@ -3589,21 +3734,16 @@ export declare class Module_ extends BaseClient {
|
|
|
3589
3734
|
*/
|
|
3590
3735
|
export declare class ModuleConfigClient extends BaseClient {
|
|
3591
3736
|
private readonly _id?;
|
|
3592
|
-
private readonly _dev?;
|
|
3593
3737
|
private readonly _directory?;
|
|
3594
3738
|
private readonly _generator?;
|
|
3595
3739
|
/**
|
|
3596
3740
|
* Constructor is used for internal usage only, do not create object from it.
|
|
3597
3741
|
*/
|
|
3598
|
-
constructor(ctx?: Context, _id?: ModuleConfigClientID,
|
|
3742
|
+
constructor(ctx?: Context, _id?: ModuleConfigClientID, _directory?: string, _generator?: string);
|
|
3599
3743
|
/**
|
|
3600
3744
|
* A unique identifier for this ModuleConfigClient.
|
|
3601
3745
|
*/
|
|
3602
3746
|
id: () => Promise<ModuleConfigClientID>;
|
|
3603
|
-
/**
|
|
3604
|
-
* If true, generate the client in developer mode.
|
|
3605
|
-
*/
|
|
3606
|
-
dev: () => Promise<boolean>;
|
|
3607
3747
|
/**
|
|
3608
3748
|
* The directory the client is generated in.
|
|
3609
3749
|
*/
|
|
@@ -3754,9 +3894,8 @@ export declare class ModuleSource extends BaseClient {
|
|
|
3754
3894
|
* Update the module source with a new client to generate.
|
|
3755
3895
|
* @param generator The generator to use
|
|
3756
3896
|
* @param outputDir The output directory for the generated client.
|
|
3757
|
-
* @param opts.dev Generate in developer mode
|
|
3758
3897
|
*/
|
|
3759
|
-
withClient: (generator: string, outputDir: string
|
|
3898
|
+
withClient: (generator: string, outputDir: string) => ModuleSource;
|
|
3760
3899
|
/**
|
|
3761
3900
|
* Append the provided dependencies to the module source's dependency list.
|
|
3762
3901
|
* @param dependencies The dependencies to append.
|
|
@@ -3906,7 +4045,11 @@ export declare class Client extends BaseClient {
|
|
|
3906
4045
|
* Constructs a cache volume for a given cache key.
|
|
3907
4046
|
* @param key A string identifier to target this cache volume (e.g., "modules-cache").
|
|
3908
4047
|
*/
|
|
3909
|
-
cacheVolume: (key: string
|
|
4048
|
+
cacheVolume: (key: string) => CacheVolume;
|
|
4049
|
+
/**
|
|
4050
|
+
* Dagger Cloud configuration and state
|
|
4051
|
+
*/
|
|
4052
|
+
cloud: () => Cloud;
|
|
3910
4053
|
/**
|
|
3911
4054
|
* Creates a scratch container, with no image or metadata.
|
|
3912
4055
|
*
|
|
@@ -3979,6 +4122,7 @@ export declare class Client extends BaseClient {
|
|
|
3979
4122
|
* @param opts.keepGitDir DEPRECATED: Set to true to keep .git directory.
|
|
3980
4123
|
* @param opts.sshKnownHosts Set SSH known hosts
|
|
3981
4124
|
* @param opts.sshAuthSocket Set SSH auth socket
|
|
4125
|
+
* @param opts.httpAuthUsername Username used to populate the password during basic HTTP Authorization
|
|
3982
4126
|
* @param opts.httpAuthToken Secret used to populate the password during basic HTTP Authorization
|
|
3983
4127
|
* @param opts.httpAuthHeader Secret used to populate the Authorization HTTP header
|
|
3984
4128
|
* @param opts.experimentalServiceHost A service which must be started before the repo is fetched.
|
|
@@ -4012,6 +4156,10 @@ export declare class Client extends BaseClient {
|
|
|
4012
4156
|
* Load a CacheVolume from its ID.
|
|
4013
4157
|
*/
|
|
4014
4158
|
loadCacheVolumeFromID: (id: CacheVolumeID) => CacheVolume;
|
|
4159
|
+
/**
|
|
4160
|
+
* Load a Cloud from its ID.
|
|
4161
|
+
*/
|
|
4162
|
+
loadCloudFromID: (id: CloudID) => Cloud;
|
|
4015
4163
|
/**
|
|
4016
4164
|
* Load a Container from its ID.
|
|
4017
4165
|
*/
|
|
@@ -4500,11 +4648,20 @@ export declare class TypeDef extends BaseClient {
|
|
|
4500
4648
|
* @param opts.sourceMap The source map for the enum definition.
|
|
4501
4649
|
*/
|
|
4502
4650
|
withEnum: (name: string, opts?: TypeDefWithEnumOpts) => TypeDef;
|
|
4651
|
+
/**
|
|
4652
|
+
* Adds a static value for an Enum TypeDef, failing if the type is not an enum.
|
|
4653
|
+
* @param name The name of the member in the enum
|
|
4654
|
+
* @param opts.value The value of the member in the enum
|
|
4655
|
+
* @param opts.description A doc string for the member, if any
|
|
4656
|
+
* @param opts.sourceMap The source map for the enum member definition.
|
|
4657
|
+
*/
|
|
4658
|
+
withEnumMember: (name: string, opts?: TypeDefWithEnumMemberOpts) => TypeDef;
|
|
4503
4659
|
/**
|
|
4504
4660
|
* Adds a static value for an Enum TypeDef, failing if the type is not an enum.
|
|
4505
4661
|
* @param value The name of the value in the enum
|
|
4506
4662
|
* @param opts.description A doc string for the value, if any
|
|
4507
4663
|
* @param opts.sourceMap The source map for the enum value definition.
|
|
4664
|
+
* @deprecated Use withEnumMember instead
|
|
4508
4665
|
*/
|
|
4509
4666
|
withEnumValue: (value: string, opts?: TypeDefWithEnumValueOpts) => TypeDef;
|
|
4510
4667
|
/**
|