@dagger.io/dagger 0.13.7 → 0.15.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/dist/{api → src/api}/client.gen.d.ts +304 -370
- package/dist/src/api/client.gen.d.ts.map +1 -0
- package/dist/{api → src/api}/client.gen.js +1385 -3821
- package/dist/src/common/context.d.ts +12 -0
- package/dist/src/common/context.d.ts.map +1 -0
- package/dist/src/common/context.js +22 -0
- package/dist/{common → src/common}/errors/DaggerSDKError.d.ts +1 -1
- package/dist/src/common/errors/DaggerSDKError.d.ts.map +1 -0
- package/dist/src/common/errors/DockerImageRefValidationError.d.ts.map +1 -0
- package/dist/src/common/errors/EngineSessionConnectParamsParseError.d.ts.map +1 -0
- package/dist/src/common/errors/EngineSessionConnectionTimeoutError.d.ts.map +1 -0
- package/dist/src/common/errors/EngineSessionErrorOptions.d.ts.map +1 -0
- package/dist/{common → src/common}/errors/ExecError.d.ts +0 -1
- package/dist/src/common/errors/ExecError.d.ts.map +1 -0
- package/dist/{common → src/common}/errors/ExecError.js +0 -3
- package/dist/src/common/errors/FunctionNotFound.d.ts.map +1 -0
- package/dist/src/common/errors/GraphQLRequestError.d.ts.map +1 -0
- package/dist/src/common/errors/InitEngineSessionBinaryError.d.ts.map +1 -0
- package/dist/src/common/errors/IntrospectionError.d.ts +7 -0
- package/dist/src/common/errors/IntrospectionError.d.ts.map +1 -0
- package/dist/src/common/errors/IntrospectionError.js +9 -0
- package/dist/src/common/errors/NotAwaitedRequestError.d.ts.map +1 -0
- package/dist/src/common/errors/TooManyNestedObjectsError.d.ts.map +1 -0
- package/dist/src/common/errors/UnknownDaggerError.d.ts.map +1 -0
- package/dist/{common → src/common}/errors/errors-codes.d.ts +4 -0
- package/dist/src/common/errors/errors-codes.d.ts.map +1 -0
- package/dist/{common → src/common}/errors/errors-codes.js +4 -0
- package/dist/{common → src/common}/errors/index.d.ts +2 -0
- package/dist/src/common/errors/index.d.ts.map +1 -0
- package/dist/{common → src/common}/errors/index.js +2 -0
- package/dist/src/common/graphql/client.d.ts.map +1 -0
- package/dist/{api/utils.d.ts → src/common/graphql/compute_query.d.ts} +10 -2
- package/dist/src/common/graphql/compute_query.d.ts.map +1 -0
- package/dist/{api/utils.js → src/common/graphql/compute_query.js} +4 -4
- package/dist/src/common/graphql/connect.d.ts +8 -0
- package/dist/src/common/graphql/connect.d.ts.map +1 -0
- package/dist/src/common/graphql/connect.js +22 -0
- package/dist/src/common/graphql/connection.d.ts +14 -0
- package/dist/src/common/graphql/connection.d.ts.map +1 -0
- package/dist/src/common/graphql/connection.js +23 -0
- package/dist/{common → src/common}/utils.d.ts +4 -4
- package/dist/src/common/utils.d.ts.map +1 -0
- package/dist/{connect.d.ts → src/connect.d.ts} +0 -4
- package/dist/src/connect.d.ts.map +1 -0
- package/dist/{connect.js → src/connect.js} +21 -23
- package/dist/src/connectOpts.d.ts.map +1 -0
- package/dist/{index.d.ts → src/index.d.ts} +5 -5
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +10 -0
- package/dist/{introspector/decorators → src/module}/decorators.d.ts +3 -3
- package/dist/src/module/decorators.d.ts.map +1 -0
- package/dist/{introspector/decorators → src/module}/decorators.js +1 -1
- package/dist/{entrypoint → src/module/entrypoint}/context.d.ts +1 -1
- package/dist/src/module/entrypoint/context.d.ts.map +1 -0
- package/dist/src/module/entrypoint/entrypoint.d.ts +2 -0
- package/dist/src/module/entrypoint/entrypoint.d.ts.map +1 -0
- package/dist/{entrypoint → src/module/entrypoint}/entrypoint.js +7 -16
- package/dist/{entrypoint → src/module/entrypoint}/invoke.d.ts +2 -2
- package/dist/src/module/entrypoint/invoke.d.ts.map +1 -0
- package/dist/{entrypoint → src/module/entrypoint}/invoke.js +2 -2
- package/dist/{entrypoint → src/module/entrypoint}/load.d.ts +6 -11
- package/dist/src/module/entrypoint/load.d.ts.map +1 -0
- package/dist/{entrypoint → src/module/entrypoint}/load.js +15 -5
- package/dist/src/module/entrypoint/register.d.ts +7 -0
- package/dist/src/module/entrypoint/register.d.ts.map +1 -0
- package/dist/{entrypoint → src/module/entrypoint}/register.js +3 -3
- package/dist/{introspector/executor → src/module}/executor.d.ts +4 -2
- package/dist/src/module/executor.d.ts.map +1 -0
- package/dist/src/module/executor.js +45 -0
- package/dist/src/module/introspector/case_convertor.d.ts +2 -0
- package/dist/src/module/introspector/case_convertor.d.ts.map +1 -0
- package/dist/src/module/introspector/case_convertor.js +17 -0
- package/dist/src/module/introspector/dagger_module/argument.d.ts +47 -0
- package/dist/src/module/introspector/dagger_module/argument.d.ts.map +1 -0
- package/dist/src/module/introspector/dagger_module/argument.js +109 -0
- package/dist/src/module/introspector/dagger_module/constructor.d.ts +18 -0
- package/dist/src/module/introspector/dagger_module/constructor.d.ts.map +1 -0
- package/dist/src/module/introspector/dagger_module/constructor.js +38 -0
- package/dist/src/module/introspector/dagger_module/decorator.d.ts +7 -0
- package/dist/src/module/introspector/dagger_module/decorator.d.ts.map +1 -0
- package/dist/src/module/introspector/dagger_module/decorator.js +6 -0
- package/dist/src/module/introspector/dagger_module/enum.d.ts +37 -0
- package/dist/src/module/introspector/dagger_module/enum.d.ts.map +1 -0
- package/dist/src/module/introspector/dagger_module/enum.js +55 -0
- package/dist/src/module/introspector/dagger_module/enumBase.d.ts +17 -0
- package/dist/src/module/introspector/dagger_module/enumBase.d.ts.map +1 -0
- package/dist/src/module/introspector/dagger_module/enumClass.d.ts +37 -0
- package/dist/src/module/introspector/dagger_module/enumClass.d.ts.map +1 -0
- package/dist/src/module/introspector/dagger_module/enumClass.js +61 -0
- package/dist/src/module/introspector/dagger_module/function.d.ts +35 -0
- package/dist/src/module/introspector/dagger_module/function.d.ts.map +1 -0
- package/dist/src/module/introspector/dagger_module/function.js +86 -0
- package/dist/src/module/introspector/dagger_module/index.d.ts +13 -0
- package/dist/src/module/introspector/dagger_module/index.d.ts.map +1 -0
- package/dist/src/module/introspector/dagger_module/index.js +12 -0
- package/dist/src/module/introspector/dagger_module/module.d.ts +110 -0
- package/dist/src/module/introspector/dagger_module/module.d.ts.map +1 -0
- package/dist/src/module/introspector/dagger_module/module.js +275 -0
- package/dist/src/module/introspector/dagger_module/object.d.ts +29 -0
- package/dist/src/module/introspector/dagger_module/object.d.ts.map +1 -0
- package/dist/src/module/introspector/dagger_module/object.js +91 -0
- package/dist/src/module/introspector/dagger_module/objectBase.d.ts +29 -0
- package/dist/src/module/introspector/dagger_module/objectBase.d.ts.map +1 -0
- package/dist/src/module/introspector/dagger_module/property.d.ts +33 -0
- package/dist/src/module/introspector/dagger_module/property.d.ts.map +1 -0
- package/dist/src/module/introspector/dagger_module/property.js +76 -0
- package/dist/src/module/introspector/dagger_module/reference.d.ts +13 -0
- package/dist/src/module/introspector/dagger_module/reference.d.ts.map +1 -0
- package/dist/src/module/introspector/dagger_module/reference.js +33 -0
- package/dist/src/module/introspector/dagger_module/typeObject.d.ts +25 -0
- package/dist/src/module/introspector/dagger_module/typeObject.d.ts.map +1 -0
- package/dist/src/module/introspector/dagger_module/typeObject.js +58 -0
- package/dist/src/module/introspector/dagger_module/typeObjectProperty.d.ts +31 -0
- package/dist/src/module/introspector/dagger_module/typeObjectProperty.d.ts.map +1 -0
- package/dist/src/module/introspector/dagger_module/typeObjectProperty.js +54 -0
- package/dist/src/module/introspector/index.d.ts +3 -0
- package/dist/src/module/introspector/index.d.ts.map +1 -0
- package/dist/src/module/introspector/index.js +16 -0
- package/dist/{introspector/scanner/typeDefs.d.ts → src/module/introspector/typedef.d.ts} +1 -1
- package/dist/src/module/introspector/typedef.d.ts.map +1 -0
- package/dist/src/module/introspector/typescript_module/ast.d.ts +42 -0
- package/dist/src/module/introspector/typescript_module/ast.d.ts.map +1 -0
- package/dist/src/module/introspector/typescript_module/ast.js +254 -0
- package/dist/src/module/introspector/typescript_module/declarations.d.ts +15 -0
- package/dist/src/module/introspector/typescript_module/declarations.d.ts.map +1 -0
- package/dist/src/module/introspector/typescript_module/declarations.js +10 -0
- package/dist/src/module/introspector/typescript_module/explorer.d.ts +4 -0
- package/dist/src/module/introspector/typescript_module/explorer.d.ts.map +1 -0
- package/dist/src/module/introspector/typescript_module/explorer.js +16 -0
- package/dist/src/module/introspector/typescript_module/index.d.ts +4 -0
- package/dist/src/module/introspector/typescript_module/index.d.ts.map +1 -0
- package/dist/src/module/introspector/typescript_module/index.js +3 -0
- package/dist/src/module/introspector/typescript_module/typedef_utils.d.ts +5 -0
- package/dist/src/module/introspector/typescript_module/typedef_utils.d.ts.map +1 -0
- package/dist/src/module/introspector/typescript_module/typedef_utils.js +26 -0
- package/dist/src/module/introspector/utils/files.d.ts.map +1 -0
- package/dist/{introspector → src/module/introspector}/utils/files.js +1 -1
- package/dist/src/module/registry.d.ts.map +1 -0
- package/dist/{introspector/registry → src/module}/registry.js +1 -1
- package/dist/src/provisioning/bin.d.ts.map +1 -0
- package/dist/{provisioning → src/provisioning}/bin.js +1 -1
- package/dist/src/provisioning/default.d.ts +2 -0
- package/dist/src/provisioning/default.d.ts.map +1 -0
- package/dist/{provisioning → src/provisioning}/default.js +1 -1
- package/dist/src/provisioning/engineconn.d.ts +30 -0
- package/dist/src/provisioning/engineconn.d.ts.map +1 -0
- package/dist/src/provisioning/engineconn.js +1 -0
- package/dist/src/provisioning/index.d.ts +4 -0
- package/dist/src/provisioning/index.d.ts.map +1 -0
- package/dist/src/provisioning/index.js +14 -0
- package/dist/src/telemetry/index.d.ts.map +1 -0
- package/dist/src/telemetry/init.d.ts.map +1 -0
- package/dist/src/telemetry/telemetry.d.ts.map +1 -0
- package/dist/src/telemetry/tracer.d.ts.map +1 -0
- package/package.json +5 -4
- package/dist/api/client.gen.d.ts.map +0 -1
- package/dist/api/utils.d.ts.map +0 -1
- package/dist/common/errors/DaggerSDKError.d.ts.map +0 -1
- package/dist/common/errors/DockerImageRefValidationError.d.ts.map +0 -1
- package/dist/common/errors/EngineSessionConnectParamsParseError.d.ts.map +0 -1
- package/dist/common/errors/EngineSessionConnectionTimeoutError.d.ts.map +0 -1
- package/dist/common/errors/EngineSessionErrorOptions.d.ts.map +0 -1
- package/dist/common/errors/ExecError.d.ts.map +0 -1
- package/dist/common/errors/FunctionNotFound.d.ts.map +0 -1
- package/dist/common/errors/GraphQLRequestError.d.ts.map +0 -1
- package/dist/common/errors/InitEngineSessionBinaryError.d.ts.map +0 -1
- package/dist/common/errors/NotAwaitedRequestError.d.ts.map +0 -1
- package/dist/common/errors/TooManyNestedObjectsError.d.ts.map +0 -1
- package/dist/common/errors/UnknownDaggerError.d.ts.map +0 -1
- package/dist/common/errors/errors-codes.d.ts.map +0 -1
- package/dist/common/errors/index.d.ts.map +0 -1
- package/dist/common/utils.d.ts.map +0 -1
- package/dist/connect.d.ts.map +0 -1
- package/dist/connectOpts.d.ts.map +0 -1
- package/dist/context/builder.d.ts +0 -9
- package/dist/context/builder.d.ts.map +0 -1
- package/dist/context/builder.js +0 -34
- package/dist/context/context.d.ts +0 -40
- package/dist/context/context.d.ts.map +0 -1
- package/dist/context/context.js +0 -53
- package/dist/entrypoint/context.d.ts.map +0 -1
- package/dist/entrypoint/entrypoint.d.ts +0 -2
- package/dist/entrypoint/entrypoint.d.ts.map +0 -1
- package/dist/entrypoint/invoke.d.ts.map +0 -1
- package/dist/entrypoint/load.d.ts.map +0 -1
- package/dist/entrypoint/register.d.ts +0 -7
- package/dist/entrypoint/register.d.ts.map +0 -1
- package/dist/graphql/client.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -7
- package/dist/introspector/decorators/decorators.d.ts.map +0 -1
- package/dist/introspector/executor/executor.d.ts.map +0 -1
- package/dist/introspector/executor/executor.js +0 -32
- package/dist/introspector/registry/registry.d.ts.map +0 -1
- package/dist/introspector/scanner/abtractions/argument.d.ts +0 -104
- package/dist/introspector/scanner/abtractions/argument.d.ts.map +0 -1
- package/dist/introspector/scanner/abtractions/argument.js +0 -207
- package/dist/introspector/scanner/abtractions/constructor.d.ts +0 -17
- package/dist/introspector/scanner/abtractions/constructor.d.ts.map +0 -1
- package/dist/introspector/scanner/abtractions/constructor.js +0 -40
- package/dist/introspector/scanner/abtractions/enum.d.ts +0 -33
- package/dist/introspector/scanner/abtractions/enum.d.ts.map +0 -1
- package/dist/introspector/scanner/abtractions/enum.js +0 -73
- package/dist/introspector/scanner/abtractions/enumValue.d.ts +0 -24
- package/dist/introspector/scanner/abtractions/enumValue.d.ts.map +0 -1
- package/dist/introspector/scanner/abtractions/enumValue.js +0 -51
- package/dist/introspector/scanner/abtractions/method.d.ts +0 -67
- package/dist/introspector/scanner/abtractions/method.d.ts.map +0 -1
- package/dist/introspector/scanner/abtractions/method.js +0 -132
- package/dist/introspector/scanner/abtractions/module.d.ts +0 -26
- package/dist/introspector/scanner/abtractions/module.d.ts.map +0 -1
- package/dist/introspector/scanner/abtractions/module.js +0 -103
- package/dist/introspector/scanner/abtractions/object.d.ts +0 -52
- package/dist/introspector/scanner/abtractions/object.d.ts.map +0 -1
- package/dist/introspector/scanner/abtractions/object.js +0 -118
- package/dist/introspector/scanner/abtractions/property.d.ts +0 -55
- package/dist/introspector/scanner/abtractions/property.d.ts.map +0 -1
- package/dist/introspector/scanner/abtractions/property.js +0 -110
- package/dist/introspector/scanner/abtractions/typeToTypedef.d.ts +0 -8
- package/dist/introspector/scanner/abtractions/typeToTypedef.d.ts.map +0 -1
- package/dist/introspector/scanner/abtractions/typeToTypedef.js +0 -85
- package/dist/introspector/scanner/scan.d.ts +0 -14
- package/dist/introspector/scanner/scan.d.ts.map +0 -1
- package/dist/introspector/scanner/scan.js +0 -26
- package/dist/introspector/scanner/typeDefs.d.ts.map +0 -1
- package/dist/introspector/scanner/utils.d.ts +0 -22
- package/dist/introspector/scanner/utils.d.ts.map +0 -1
- package/dist/introspector/scanner/utils.js +0 -101
- package/dist/introspector/utils/files.d.ts.map +0 -1
- package/dist/provisioning/bin.d.ts.map +0 -1
- package/dist/provisioning/default.d.ts +0 -2
- package/dist/provisioning/default.d.ts.map +0 -1
- package/dist/provisioning/engineconn.d.ts +0 -28
- package/dist/provisioning/engineconn.d.ts.map +0 -1
- package/dist/provisioning/index.d.ts +0 -4
- package/dist/provisioning/index.d.ts.map +0 -1
- package/dist/provisioning/index.js +0 -3
- package/dist/telemetry/attributes.d.ts +0 -2
- package/dist/telemetry/attributes.d.ts.map +0 -1
- package/dist/telemetry/index.d.ts.map +0 -1
- package/dist/telemetry/init.d.ts.map +0 -1
- package/dist/telemetry/telemetry.d.ts.map +0 -1
- package/dist/telemetry/tracer.d.ts.map +0 -1
- /package/dist/{common → src/common}/errors/DaggerSDKError.js +0 -0
- /package/dist/{common → src/common}/errors/DockerImageRefValidationError.d.ts +0 -0
- /package/dist/{common → src/common}/errors/DockerImageRefValidationError.js +0 -0
- /package/dist/{common → src/common}/errors/EngineSessionConnectParamsParseError.d.ts +0 -0
- /package/dist/{common → src/common}/errors/EngineSessionConnectParamsParseError.js +0 -0
- /package/dist/{common → src/common}/errors/EngineSessionConnectionTimeoutError.d.ts +0 -0
- /package/dist/{common → src/common}/errors/EngineSessionConnectionTimeoutError.js +0 -0
- /package/dist/{common → src/common}/errors/EngineSessionErrorOptions.d.ts +0 -0
- /package/dist/{common → src/common}/errors/EngineSessionErrorOptions.js +0 -0
- /package/dist/{common → src/common}/errors/FunctionNotFound.d.ts +0 -0
- /package/dist/{common → src/common}/errors/FunctionNotFound.js +0 -0
- /package/dist/{common → src/common}/errors/GraphQLRequestError.d.ts +0 -0
- /package/dist/{common → src/common}/errors/GraphQLRequestError.js +0 -0
- /package/dist/{common → src/common}/errors/InitEngineSessionBinaryError.d.ts +0 -0
- /package/dist/{common → src/common}/errors/InitEngineSessionBinaryError.js +0 -0
- /package/dist/{common → src/common}/errors/NotAwaitedRequestError.d.ts +0 -0
- /package/dist/{common → src/common}/errors/NotAwaitedRequestError.js +0 -0
- /package/dist/{common → src/common}/errors/TooManyNestedObjectsError.d.ts +0 -0
- /package/dist/{common → src/common}/errors/TooManyNestedObjectsError.js +0 -0
- /package/dist/{common → src/common}/errors/UnknownDaggerError.d.ts +0 -0
- /package/dist/{common → src/common}/errors/UnknownDaggerError.js +0 -0
- /package/dist/{graphql → src/common/graphql}/client.d.ts +0 -0
- /package/dist/{graphql → src/common/graphql}/client.js +0 -0
- /package/dist/{common → src/common}/utils.js +0 -0
- /package/dist/{connectOpts.d.ts → src/connectOpts.d.ts} +0 -0
- /package/dist/{connectOpts.js → src/connectOpts.js} +0 -0
- /package/dist/{entrypoint → src/module/entrypoint}/context.js +0 -0
- /package/dist/{introspector/scanner/typeDefs.js → src/module/introspector/dagger_module/enumBase.js} +0 -0
- /package/dist/{provisioning/engineconn.js → src/module/introspector/dagger_module/objectBase.js} +0 -0
- /package/dist/{telemetry/attributes.js → src/module/introspector/typedef.js} +0 -0
- /package/dist/{introspector → src/module/introspector}/utils/files.d.ts +0 -0
- /package/dist/{introspector/registry → src/module}/registry.d.ts +0 -0
- /package/dist/{provisioning → src/provisioning}/bin.d.ts +0 -0
- /package/dist/{telemetry → src/telemetry}/index.d.ts +0 -0
- /package/dist/{telemetry → src/telemetry}/index.js +0 -0
- /package/dist/{telemetry → src/telemetry}/init.d.ts +0 -0
- /package/dist/{telemetry → src/telemetry}/init.js +0 -0
- /package/dist/{telemetry → src/telemetry}/telemetry.d.ts +0 -0
- /package/dist/{telemetry → src/telemetry}/telemetry.js +0 -0
- /package/dist/{telemetry → src/telemetry}/tracer.d.ts +0 -0
- /package/dist/{telemetry → src/telemetry}/tracer.js +0 -0
|
@@ -2,37 +2,13 @@
|
|
|
2
2
|
* This file was auto-generated by `client-gen`.
|
|
3
3
|
* Do not make direct changes to the file.
|
|
4
4
|
*/
|
|
5
|
-
import { Context } from "../
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
export type QueryTree = {
|
|
10
|
-
operation: string;
|
|
11
|
-
args?: Record<string, unknown>;
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* @hidden
|
|
15
|
-
*/
|
|
16
|
-
export type Metadata = {
|
|
17
|
-
[key: string]: {
|
|
18
|
-
is_enum?: boolean;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
interface ClientConfig {
|
|
22
|
-
queryTree?: QueryTree[];
|
|
23
|
-
ctx?: Context;
|
|
24
|
-
}
|
|
5
|
+
import { Context } from "../common/context.js";
|
|
25
6
|
declare class BaseClient {
|
|
26
|
-
protected _queryTree: QueryTree[];
|
|
27
7
|
protected _ctx: Context;
|
|
28
8
|
/**
|
|
29
9
|
* @hidden
|
|
30
10
|
*/
|
|
31
|
-
constructor(
|
|
32
|
-
/**
|
|
33
|
-
* @hidden
|
|
34
|
-
*/
|
|
35
|
-
get queryTree(): QueryTree[];
|
|
11
|
+
constructor(_ctx?: Context);
|
|
36
12
|
}
|
|
37
13
|
export type BuildArg = {
|
|
38
14
|
/**
|
|
@@ -67,6 +43,38 @@ export declare enum CacheSharingMode {
|
|
|
67
43
|
export type CacheVolumeID = string & {
|
|
68
44
|
__CacheVolumeID: never;
|
|
69
45
|
};
|
|
46
|
+
export type ContainerAsServiceOpts = {
|
|
47
|
+
/**
|
|
48
|
+
* Command to run instead of the container's default command (e.g., ["go", "run", "main.go"]).
|
|
49
|
+
*
|
|
50
|
+
* If empty, the container's default command is used.
|
|
51
|
+
*/
|
|
52
|
+
args?: string[];
|
|
53
|
+
/**
|
|
54
|
+
* If the container has an entrypoint, prepend it to the args.
|
|
55
|
+
*/
|
|
56
|
+
useEntrypoint?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Provides Dagger access to the executed command.
|
|
59
|
+
*
|
|
60
|
+
* Do not use this option unless you trust the command being executed; the command being executed WILL BE GRANTED FULL ACCESS TO YOUR HOST FILESYSTEM.
|
|
61
|
+
*/
|
|
62
|
+
experimentalPrivilegedNesting?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Execute the command with all root capabilities. This is similar to running a command with "sudo" or executing "docker run" with the "--privileged" flag. Containerization does not provide any security guarantees when using this option. It should only be used when absolutely necessary and only with trusted commands.
|
|
65
|
+
*/
|
|
66
|
+
insecureRootCapabilities?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Replace "${VAR}" or "$VAR" in the args according to the current environment variables defined in the container (e.g. "/$VAR/foo").
|
|
69
|
+
*/
|
|
70
|
+
expand?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* If set, skip the automatic init process injected into containers by default.
|
|
73
|
+
*
|
|
74
|
+
* This should only be used if the user requires that their exec process be the pid 1 process in the container. Otherwise it may result in unexpected behavior.
|
|
75
|
+
*/
|
|
76
|
+
noInit?: boolean;
|
|
77
|
+
};
|
|
70
78
|
export type ContainerAsTarballOpts = {
|
|
71
79
|
/**
|
|
72
80
|
* Identifiers for other platform specific containers.
|
|
@@ -521,30 +529,6 @@ export type CurrentModuleWorkdirOpts = {
|
|
|
521
529
|
export type CurrentModuleID = string & {
|
|
522
530
|
__CurrentModuleID: never;
|
|
523
531
|
};
|
|
524
|
-
/**
|
|
525
|
-
* The `DaggerEngineCacheEntryID` scalar type represents an identifier for an object of type DaggerEngineCacheEntry.
|
|
526
|
-
*/
|
|
527
|
-
export type DaggerEngineCacheEntryID = string & {
|
|
528
|
-
__DaggerEngineCacheEntryID: never;
|
|
529
|
-
};
|
|
530
|
-
/**
|
|
531
|
-
* The `DaggerEngineCacheEntrySetID` scalar type represents an identifier for an object of type DaggerEngineCacheEntrySet.
|
|
532
|
-
*/
|
|
533
|
-
export type DaggerEngineCacheEntrySetID = string & {
|
|
534
|
-
__DaggerEngineCacheEntrySetID: never;
|
|
535
|
-
};
|
|
536
|
-
/**
|
|
537
|
-
* The `DaggerEngineCacheID` scalar type represents an identifier for an object of type DaggerEngineCache.
|
|
538
|
-
*/
|
|
539
|
-
export type DaggerEngineCacheID = string & {
|
|
540
|
-
__DaggerEngineCacheID: never;
|
|
541
|
-
};
|
|
542
|
-
/**
|
|
543
|
-
* The `DaggerEngineID` scalar type represents an identifier for an object of type DaggerEngine.
|
|
544
|
-
*/
|
|
545
|
-
export type DaggerEngineID = string & {
|
|
546
|
-
__DaggerEngineID: never;
|
|
547
|
-
};
|
|
548
532
|
export type DirectoryAsModuleOpts = {
|
|
549
533
|
/**
|
|
550
534
|
* An optional subpath of the directory which contains the module's configuration file.
|
|
@@ -655,6 +639,33 @@ export type DirectoryWithNewFileOpts = {
|
|
|
655
639
|
export type DirectoryID = string & {
|
|
656
640
|
__DirectoryID: never;
|
|
657
641
|
};
|
|
642
|
+
export type EngineCacheEntrySetOpts = {
|
|
643
|
+
key?: string;
|
|
644
|
+
};
|
|
645
|
+
/**
|
|
646
|
+
* The `EngineCacheEntryID` scalar type represents an identifier for an object of type EngineCacheEntry.
|
|
647
|
+
*/
|
|
648
|
+
export type EngineCacheEntryID = string & {
|
|
649
|
+
__EngineCacheEntryID: never;
|
|
650
|
+
};
|
|
651
|
+
/**
|
|
652
|
+
* The `EngineCacheEntrySetID` scalar type represents an identifier for an object of type EngineCacheEntrySet.
|
|
653
|
+
*/
|
|
654
|
+
export type EngineCacheEntrySetID = string & {
|
|
655
|
+
__EngineCacheEntrySetID: never;
|
|
656
|
+
};
|
|
657
|
+
/**
|
|
658
|
+
* The `EngineCacheID` scalar type represents an identifier for an object of type EngineCache.
|
|
659
|
+
*/
|
|
660
|
+
export type EngineCacheID = string & {
|
|
661
|
+
__EngineCacheID: never;
|
|
662
|
+
};
|
|
663
|
+
/**
|
|
664
|
+
* The `EngineID` scalar type represents an identifier for an object of type Engine.
|
|
665
|
+
*/
|
|
666
|
+
export type EngineID = string & {
|
|
667
|
+
__EngineID: never;
|
|
668
|
+
};
|
|
658
669
|
/**
|
|
659
670
|
* The `EnumTypeDefID` scalar type represents an identifier for an object of type EnumTypeDef.
|
|
660
671
|
*/
|
|
@@ -673,6 +684,12 @@ export type EnumValueTypeDefID = string & {
|
|
|
673
684
|
export type EnvVariableID = string & {
|
|
674
685
|
__EnvVariableID: never;
|
|
675
686
|
};
|
|
687
|
+
/**
|
|
688
|
+
* The `ErrorID` scalar type represents an identifier for an object of type Error.
|
|
689
|
+
*/
|
|
690
|
+
export type ErrorID = string & {
|
|
691
|
+
__ErrorID: never;
|
|
692
|
+
};
|
|
676
693
|
/**
|
|
677
694
|
* The `FieldTypeDefID` scalar type represents an identifier for an object of type FieldTypeDef.
|
|
678
695
|
*/
|
|
@@ -1244,10 +1261,7 @@ export declare class CacheVolume extends BaseClient {
|
|
|
1244
1261
|
/**
|
|
1245
1262
|
* Constructor is used for internal usage only, do not create object from it.
|
|
1246
1263
|
*/
|
|
1247
|
-
constructor(
|
|
1248
|
-
queryTree?: QueryTree[];
|
|
1249
|
-
ctx: Context;
|
|
1250
|
-
}, _id?: CacheVolumeID);
|
|
1264
|
+
constructor(ctx?: Context, _id?: CacheVolumeID);
|
|
1251
1265
|
/**
|
|
1252
1266
|
* A unique identifier for this CacheVolume.
|
|
1253
1267
|
*/
|
|
@@ -1274,10 +1288,7 @@ export declare class Container extends BaseClient {
|
|
|
1274
1288
|
/**
|
|
1275
1289
|
* Constructor is used for internal usage only, do not create object from it.
|
|
1276
1290
|
*/
|
|
1277
|
-
constructor(
|
|
1278
|
-
queryTree?: QueryTree[];
|
|
1279
|
-
ctx: Context;
|
|
1280
|
-
}, _id?: ContainerID, _envVariable?: string, _exitCode?: number, _export?: string, _imageRef?: string, _label?: string, _platform?: Platform, _publish?: string, _stderr?: string, _stdout?: string, _sync?: ContainerID, _up?: Void, _user?: string, _workdir?: string);
|
|
1291
|
+
constructor(ctx?: Context, _id?: ContainerID, _envVariable?: string, _exitCode?: number, _export?: string, _imageRef?: string, _label?: string, _platform?: Platform, _publish?: string, _stderr?: string, _stdout?: string, _sync?: ContainerID, _up?: Void, _user?: string, _workdir?: string);
|
|
1281
1292
|
/**
|
|
1282
1293
|
* A unique identifier for this Container.
|
|
1283
1294
|
*/
|
|
@@ -1286,8 +1297,20 @@ export declare class Container extends BaseClient {
|
|
|
1286
1297
|
* Turn the container into a Service.
|
|
1287
1298
|
*
|
|
1288
1299
|
* Be sure to set any exposed ports before this conversion.
|
|
1300
|
+
* @param opts.args Command to run instead of the container's default command (e.g., ["go", "run", "main.go"]).
|
|
1301
|
+
*
|
|
1302
|
+
* If empty, the container's default command is used.
|
|
1303
|
+
* @param opts.useEntrypoint If the container has an entrypoint, prepend it to the args.
|
|
1304
|
+
* @param opts.experimentalPrivilegedNesting Provides Dagger access to the executed command.
|
|
1305
|
+
*
|
|
1306
|
+
* Do not use this option unless you trust the command being executed; the command being executed WILL BE GRANTED FULL ACCESS TO YOUR HOST FILESYSTEM.
|
|
1307
|
+
* @param opts.insecureRootCapabilities Execute the command with all root capabilities. This is similar to running a command with "sudo" or executing "docker run" with the "--privileged" flag. Containerization does not provide any security guarantees when using this option. It should only be used when absolutely necessary and only with trusted commands.
|
|
1308
|
+
* @param opts.expand Replace "${VAR}" or "$VAR" in the args according to the current environment variables defined in the container (e.g. "/$VAR/foo").
|
|
1309
|
+
* @param opts.noInit If set, skip the automatic init process injected into containers by default.
|
|
1310
|
+
*
|
|
1311
|
+
* This should only be used if the user requires that their exec process be the pid 1 process in the container. Otherwise it may result in unexpected behavior.
|
|
1289
1312
|
*/
|
|
1290
|
-
asService: () => Service;
|
|
1313
|
+
asService: (opts?: ContainerAsServiceOpts) => Service;
|
|
1291
1314
|
/**
|
|
1292
1315
|
* Returns a File representing the container serialized to a tarball.
|
|
1293
1316
|
* @param opts.platformVariants Identifiers for other platform specific containers.
|
|
@@ -1543,7 +1566,7 @@ export declare class Container extends BaseClient {
|
|
|
1543
1566
|
withEnvVariable: (name: string, value: string, opts?: ContainerWithEnvVariableOpts) => Container;
|
|
1544
1567
|
/**
|
|
1545
1568
|
* Retrieves this container after executing the specified command inside it.
|
|
1546
|
-
* @param args Command to run instead of the container's default command (e.g., ["run", "main.go"]).
|
|
1569
|
+
* @param args Command to run instead of the container's default command (e.g., ["go", "run", "main.go"]).
|
|
1547
1570
|
*
|
|
1548
1571
|
* If empty, the container's default command is used.
|
|
1549
1572
|
* @param opts.useEntrypoint If the container has an entrypoint, prepend it to the args.
|
|
@@ -1601,10 +1624,6 @@ export declare class Container extends BaseClient {
|
|
|
1601
1624
|
* @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").
|
|
1602
1625
|
*/
|
|
1603
1626
|
withFiles: (path: string, sources: File[], opts?: ContainerWithFilesOpts) => Container;
|
|
1604
|
-
/**
|
|
1605
|
-
* Indicate that subsequent operations should be featured more prominently in the UI.
|
|
1606
|
-
*/
|
|
1607
|
-
withFocus: () => Container;
|
|
1608
1627
|
/**
|
|
1609
1628
|
* Retrieves this container plus the given label.
|
|
1610
1629
|
* @param name The name of the label (e.g., "org.opencontainers.artifact.created").
|
|
@@ -1613,7 +1632,7 @@ export declare class Container extends BaseClient {
|
|
|
1613
1632
|
withLabel: (name: string, value: string) => Container;
|
|
1614
1633
|
/**
|
|
1615
1634
|
* Retrieves this container plus a cache volume mounted at the given path.
|
|
1616
|
-
* @param path Location of the cache directory (e.g., "/
|
|
1635
|
+
* @param path Location of the cache directory (e.g., "/root/.npm").
|
|
1617
1636
|
* @param cache Identifier of the cache volume to mount.
|
|
1618
1637
|
* @param opts.source Identifier of the directory to use as the cache volume's root.
|
|
1619
1638
|
* @param opts.sharing Sharing mode of the cache volume.
|
|
@@ -1784,12 +1803,6 @@ export declare class Container extends BaseClient {
|
|
|
1784
1803
|
* @param opts.expand Replace "${VAR}" or "$VAR" in the value of paths according to the current environment variables defined in the container (e.g. "/$VAR/foo.txt").
|
|
1785
1804
|
*/
|
|
1786
1805
|
withoutFiles: (paths: string[], opts?: ContainerWithoutFilesOpts) => Container;
|
|
1787
|
-
/**
|
|
1788
|
-
* Indicate that subsequent operations should not be featured more prominently in the UI.
|
|
1789
|
-
*
|
|
1790
|
-
* This is the initial state of all containers.
|
|
1791
|
-
*/
|
|
1792
|
-
withoutFocus: () => Container;
|
|
1793
1806
|
/**
|
|
1794
1807
|
* Retrieves this container minus the given environment label.
|
|
1795
1808
|
* @param name The name of the label to remove (e.g., "org.opencontainers.artifact.created").
|
|
@@ -1797,7 +1810,7 @@ export declare class Container extends BaseClient {
|
|
|
1797
1810
|
withoutLabel: (name: string) => Container;
|
|
1798
1811
|
/**
|
|
1799
1812
|
* Retrieves this container after unmounting everything at the given path.
|
|
1800
|
-
* @param path Location of the cache directory (e.g., "/
|
|
1813
|
+
* @param path Location of the cache directory (e.g., "/root/.npm").
|
|
1801
1814
|
* @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").
|
|
1802
1815
|
*/
|
|
1803
1816
|
withoutMount: (path: string, opts?: ContainerWithoutMountOpts) => Container;
|
|
@@ -1851,10 +1864,7 @@ export declare class CurrentModule extends BaseClient {
|
|
|
1851
1864
|
/**
|
|
1852
1865
|
* Constructor is used for internal usage only, do not create object from it.
|
|
1853
1866
|
*/
|
|
1854
|
-
constructor(
|
|
1855
|
-
queryTree?: QueryTree[];
|
|
1856
|
-
ctx: Context;
|
|
1857
|
-
}, _id?: CurrentModuleID, _name?: string);
|
|
1867
|
+
constructor(ctx?: Context, _id?: CurrentModuleID, _name?: string);
|
|
1858
1868
|
/**
|
|
1859
1869
|
* A unique identifier for this CurrentModule.
|
|
1860
1870
|
*/
|
|
@@ -1880,144 +1890,6 @@ export declare class CurrentModule extends BaseClient {
|
|
|
1880
1890
|
*/
|
|
1881
1891
|
workdirFile: (path: string) => File;
|
|
1882
1892
|
}
|
|
1883
|
-
/**
|
|
1884
|
-
* The Dagger engine configuration and state
|
|
1885
|
-
*/
|
|
1886
|
-
export declare class DaggerEngine extends BaseClient {
|
|
1887
|
-
private readonly _id?;
|
|
1888
|
-
/**
|
|
1889
|
-
* Constructor is used for internal usage only, do not create object from it.
|
|
1890
|
-
*/
|
|
1891
|
-
constructor(parent?: {
|
|
1892
|
-
queryTree?: QueryTree[];
|
|
1893
|
-
ctx: Context;
|
|
1894
|
-
}, _id?: DaggerEngineID);
|
|
1895
|
-
/**
|
|
1896
|
-
* A unique identifier for this DaggerEngine.
|
|
1897
|
-
*/
|
|
1898
|
-
id: () => Promise<DaggerEngineID>;
|
|
1899
|
-
/**
|
|
1900
|
-
* The local (on-disk) cache for the Dagger engine
|
|
1901
|
-
*/
|
|
1902
|
-
localCache: () => DaggerEngineCache;
|
|
1903
|
-
}
|
|
1904
|
-
/**
|
|
1905
|
-
* A cache storage for the Dagger engine
|
|
1906
|
-
*/
|
|
1907
|
-
export declare class DaggerEngineCache extends BaseClient {
|
|
1908
|
-
private readonly _id?;
|
|
1909
|
-
private readonly _keepBytes?;
|
|
1910
|
-
private readonly _maxUsedSpace?;
|
|
1911
|
-
private readonly _minFreeSpace?;
|
|
1912
|
-
private readonly _prune?;
|
|
1913
|
-
private readonly _reservedSpace?;
|
|
1914
|
-
/**
|
|
1915
|
-
* Constructor is used for internal usage only, do not create object from it.
|
|
1916
|
-
*/
|
|
1917
|
-
constructor(parent?: {
|
|
1918
|
-
queryTree?: QueryTree[];
|
|
1919
|
-
ctx: Context;
|
|
1920
|
-
}, _id?: DaggerEngineCacheID, _keepBytes?: number, _maxUsedSpace?: number, _minFreeSpace?: number, _prune?: Void, _reservedSpace?: number);
|
|
1921
|
-
/**
|
|
1922
|
-
* A unique identifier for this DaggerEngineCache.
|
|
1923
|
-
*/
|
|
1924
|
-
id: () => Promise<DaggerEngineCacheID>;
|
|
1925
|
-
/**
|
|
1926
|
-
* The current set of entries in the cache
|
|
1927
|
-
*/
|
|
1928
|
-
entrySet: () => DaggerEngineCacheEntrySet;
|
|
1929
|
-
/**
|
|
1930
|
-
* The maximum bytes to keep in the cache without pruning, after which automatic pruning may kick in.
|
|
1931
|
-
* @deprecated Use minFreeSpace instead.
|
|
1932
|
-
*/
|
|
1933
|
-
keepBytes: () => Promise<number>;
|
|
1934
|
-
/**
|
|
1935
|
-
* The maximum bytes to keep in the cache without pruning.
|
|
1936
|
-
*/
|
|
1937
|
-
maxUsedSpace: () => Promise<number>;
|
|
1938
|
-
/**
|
|
1939
|
-
* The target amount of free disk space the garbage collector will attempt to leave.
|
|
1940
|
-
*/
|
|
1941
|
-
minFreeSpace: () => Promise<number>;
|
|
1942
|
-
/**
|
|
1943
|
-
* Prune the cache of releaseable entries
|
|
1944
|
-
*/
|
|
1945
|
-
prune: () => Promise<void>;
|
|
1946
|
-
reservedSpace: () => Promise<number>;
|
|
1947
|
-
}
|
|
1948
|
-
/**
|
|
1949
|
-
* An individual cache entry in a cache entry set
|
|
1950
|
-
*/
|
|
1951
|
-
export declare class DaggerEngineCacheEntry extends BaseClient {
|
|
1952
|
-
private readonly _id?;
|
|
1953
|
-
private readonly _activelyUsed?;
|
|
1954
|
-
private readonly _createdTimeUnixNano?;
|
|
1955
|
-
private readonly _description?;
|
|
1956
|
-
private readonly _diskSpaceBytes?;
|
|
1957
|
-
private readonly _mostRecentUseTimeUnixNano?;
|
|
1958
|
-
/**
|
|
1959
|
-
* Constructor is used for internal usage only, do not create object from it.
|
|
1960
|
-
*/
|
|
1961
|
-
constructor(parent?: {
|
|
1962
|
-
queryTree?: QueryTree[];
|
|
1963
|
-
ctx: Context;
|
|
1964
|
-
}, _id?: DaggerEngineCacheEntryID, _activelyUsed?: boolean, _createdTimeUnixNano?: number, _description?: string, _diskSpaceBytes?: number, _mostRecentUseTimeUnixNano?: number);
|
|
1965
|
-
/**
|
|
1966
|
-
* A unique identifier for this DaggerEngineCacheEntry.
|
|
1967
|
-
*/
|
|
1968
|
-
id: () => Promise<DaggerEngineCacheEntryID>;
|
|
1969
|
-
/**
|
|
1970
|
-
* Whether the cache entry is actively being used.
|
|
1971
|
-
*/
|
|
1972
|
-
activelyUsed: () => Promise<boolean>;
|
|
1973
|
-
/**
|
|
1974
|
-
* The time the cache entry was created, in Unix nanoseconds.
|
|
1975
|
-
*/
|
|
1976
|
-
createdTimeUnixNano: () => Promise<number>;
|
|
1977
|
-
/**
|
|
1978
|
-
* The description of the cache entry.
|
|
1979
|
-
*/
|
|
1980
|
-
description: () => Promise<string>;
|
|
1981
|
-
/**
|
|
1982
|
-
* The disk space used by the cache entry.
|
|
1983
|
-
*/
|
|
1984
|
-
diskSpaceBytes: () => Promise<number>;
|
|
1985
|
-
/**
|
|
1986
|
-
* The most recent time the cache entry was used, in Unix nanoseconds.
|
|
1987
|
-
*/
|
|
1988
|
-
mostRecentUseTimeUnixNano: () => Promise<number>;
|
|
1989
|
-
}
|
|
1990
|
-
/**
|
|
1991
|
-
* A set of cache entries returned by a query to a cache
|
|
1992
|
-
*/
|
|
1993
|
-
export declare class DaggerEngineCacheEntrySet extends BaseClient {
|
|
1994
|
-
private readonly _id?;
|
|
1995
|
-
private readonly _diskSpaceBytes?;
|
|
1996
|
-
private readonly _entryCount?;
|
|
1997
|
-
/**
|
|
1998
|
-
* Constructor is used for internal usage only, do not create object from it.
|
|
1999
|
-
*/
|
|
2000
|
-
constructor(parent?: {
|
|
2001
|
-
queryTree?: QueryTree[];
|
|
2002
|
-
ctx: Context;
|
|
2003
|
-
}, _id?: DaggerEngineCacheEntrySetID, _diskSpaceBytes?: number, _entryCount?: number);
|
|
2004
|
-
/**
|
|
2005
|
-
* A unique identifier for this DaggerEngineCacheEntrySet.
|
|
2006
|
-
*/
|
|
2007
|
-
id: () => Promise<DaggerEngineCacheEntrySetID>;
|
|
2008
|
-
/**
|
|
2009
|
-
* The total disk space used by the cache entries in this set.
|
|
2010
|
-
*/
|
|
2011
|
-
diskSpaceBytes: () => Promise<number>;
|
|
2012
|
-
/**
|
|
2013
|
-
* The list of individual cache entries in the set
|
|
2014
|
-
*/
|
|
2015
|
-
entries: () => Promise<DaggerEngineCacheEntry[]>;
|
|
2016
|
-
/**
|
|
2017
|
-
* The number of cache entries in this set.
|
|
2018
|
-
*/
|
|
2019
|
-
entryCount: () => Promise<number>;
|
|
2020
|
-
}
|
|
2021
1893
|
/**
|
|
2022
1894
|
* A directory.
|
|
2023
1895
|
*/
|
|
@@ -2029,10 +1901,7 @@ export declare class Directory extends BaseClient {
|
|
|
2029
1901
|
/**
|
|
2030
1902
|
* Constructor is used for internal usage only, do not create object from it.
|
|
2031
1903
|
*/
|
|
2032
|
-
constructor(
|
|
2033
|
-
queryTree?: QueryTree[];
|
|
2034
|
-
ctx: Context;
|
|
2035
|
-
}, _id?: DirectoryID, _digest?: string, _export?: string, _sync?: DirectoryID);
|
|
1904
|
+
constructor(ctx?: Context, _id?: DirectoryID, _digest?: string, _export?: string, _sync?: DirectoryID);
|
|
2036
1905
|
/**
|
|
2037
1906
|
* A unique identifier for this Directory.
|
|
2038
1907
|
*/
|
|
@@ -2171,6 +2040,132 @@ export declare class Directory extends BaseClient {
|
|
|
2171
2040
|
*/
|
|
2172
2041
|
with: (arg: (param: Directory) => Directory) => Directory;
|
|
2173
2042
|
}
|
|
2043
|
+
/**
|
|
2044
|
+
* The Dagger engine configuration and state
|
|
2045
|
+
*/
|
|
2046
|
+
export declare class Engine extends BaseClient {
|
|
2047
|
+
private readonly _id?;
|
|
2048
|
+
/**
|
|
2049
|
+
* Constructor is used for internal usage only, do not create object from it.
|
|
2050
|
+
*/
|
|
2051
|
+
constructor(ctx?: Context, _id?: EngineID);
|
|
2052
|
+
/**
|
|
2053
|
+
* A unique identifier for this Engine.
|
|
2054
|
+
*/
|
|
2055
|
+
id: () => Promise<EngineID>;
|
|
2056
|
+
/**
|
|
2057
|
+
* The local (on-disk) cache for the Dagger engine
|
|
2058
|
+
*/
|
|
2059
|
+
localCache: () => EngineCache;
|
|
2060
|
+
}
|
|
2061
|
+
/**
|
|
2062
|
+
* A cache storage for the Dagger engine
|
|
2063
|
+
*/
|
|
2064
|
+
export declare class EngineCache extends BaseClient {
|
|
2065
|
+
private readonly _id?;
|
|
2066
|
+
private readonly _keepBytes?;
|
|
2067
|
+
private readonly _maxUsedSpace?;
|
|
2068
|
+
private readonly _minFreeSpace?;
|
|
2069
|
+
private readonly _prune?;
|
|
2070
|
+
private readonly _reservedSpace?;
|
|
2071
|
+
/**
|
|
2072
|
+
* Constructor is used for internal usage only, do not create object from it.
|
|
2073
|
+
*/
|
|
2074
|
+
constructor(ctx?: Context, _id?: EngineCacheID, _keepBytes?: number, _maxUsedSpace?: number, _minFreeSpace?: number, _prune?: Void, _reservedSpace?: number);
|
|
2075
|
+
/**
|
|
2076
|
+
* A unique identifier for this EngineCache.
|
|
2077
|
+
*/
|
|
2078
|
+
id: () => Promise<EngineCacheID>;
|
|
2079
|
+
/**
|
|
2080
|
+
* The current set of entries in the cache
|
|
2081
|
+
*/
|
|
2082
|
+
entrySet: (opts?: EngineCacheEntrySetOpts) => EngineCacheEntrySet;
|
|
2083
|
+
/**
|
|
2084
|
+
* The maximum bytes to keep in the cache without pruning, after which automatic pruning may kick in.
|
|
2085
|
+
* @deprecated Use minFreeSpace instead.
|
|
2086
|
+
*/
|
|
2087
|
+
keepBytes: () => Promise<number>;
|
|
2088
|
+
/**
|
|
2089
|
+
* The maximum bytes to keep in the cache without pruning.
|
|
2090
|
+
*/
|
|
2091
|
+
maxUsedSpace: () => Promise<number>;
|
|
2092
|
+
/**
|
|
2093
|
+
* The target amount of free disk space the garbage collector will attempt to leave.
|
|
2094
|
+
*/
|
|
2095
|
+
minFreeSpace: () => Promise<number>;
|
|
2096
|
+
/**
|
|
2097
|
+
* Prune the cache of releaseable entries
|
|
2098
|
+
*/
|
|
2099
|
+
prune: () => Promise<void>;
|
|
2100
|
+
reservedSpace: () => Promise<number>;
|
|
2101
|
+
}
|
|
2102
|
+
/**
|
|
2103
|
+
* An individual cache entry in a cache entry set
|
|
2104
|
+
*/
|
|
2105
|
+
export declare class EngineCacheEntry extends BaseClient {
|
|
2106
|
+
private readonly _id?;
|
|
2107
|
+
private readonly _activelyUsed?;
|
|
2108
|
+
private readonly _createdTimeUnixNano?;
|
|
2109
|
+
private readonly _description?;
|
|
2110
|
+
private readonly _diskSpaceBytes?;
|
|
2111
|
+
private readonly _mostRecentUseTimeUnixNano?;
|
|
2112
|
+
/**
|
|
2113
|
+
* Constructor is used for internal usage only, do not create object from it.
|
|
2114
|
+
*/
|
|
2115
|
+
constructor(ctx?: Context, _id?: EngineCacheEntryID, _activelyUsed?: boolean, _createdTimeUnixNano?: number, _description?: string, _diskSpaceBytes?: number, _mostRecentUseTimeUnixNano?: number);
|
|
2116
|
+
/**
|
|
2117
|
+
* A unique identifier for this EngineCacheEntry.
|
|
2118
|
+
*/
|
|
2119
|
+
id: () => Promise<EngineCacheEntryID>;
|
|
2120
|
+
/**
|
|
2121
|
+
* Whether the cache entry is actively being used.
|
|
2122
|
+
*/
|
|
2123
|
+
activelyUsed: () => Promise<boolean>;
|
|
2124
|
+
/**
|
|
2125
|
+
* The time the cache entry was created, in Unix nanoseconds.
|
|
2126
|
+
*/
|
|
2127
|
+
createdTimeUnixNano: () => Promise<number>;
|
|
2128
|
+
/**
|
|
2129
|
+
* The description of the cache entry.
|
|
2130
|
+
*/
|
|
2131
|
+
description: () => Promise<string>;
|
|
2132
|
+
/**
|
|
2133
|
+
* The disk space used by the cache entry.
|
|
2134
|
+
*/
|
|
2135
|
+
diskSpaceBytes: () => Promise<number>;
|
|
2136
|
+
/**
|
|
2137
|
+
* The most recent time the cache entry was used, in Unix nanoseconds.
|
|
2138
|
+
*/
|
|
2139
|
+
mostRecentUseTimeUnixNano: () => Promise<number>;
|
|
2140
|
+
}
|
|
2141
|
+
/**
|
|
2142
|
+
* A set of cache entries returned by a query to a cache
|
|
2143
|
+
*/
|
|
2144
|
+
export declare class EngineCacheEntrySet extends BaseClient {
|
|
2145
|
+
private readonly _id?;
|
|
2146
|
+
private readonly _diskSpaceBytes?;
|
|
2147
|
+
private readonly _entryCount?;
|
|
2148
|
+
/**
|
|
2149
|
+
* Constructor is used for internal usage only, do not create object from it.
|
|
2150
|
+
*/
|
|
2151
|
+
constructor(ctx?: Context, _id?: EngineCacheEntrySetID, _diskSpaceBytes?: number, _entryCount?: number);
|
|
2152
|
+
/**
|
|
2153
|
+
* A unique identifier for this EngineCacheEntrySet.
|
|
2154
|
+
*/
|
|
2155
|
+
id: () => Promise<EngineCacheEntrySetID>;
|
|
2156
|
+
/**
|
|
2157
|
+
* The total disk space used by the cache entries in this set.
|
|
2158
|
+
*/
|
|
2159
|
+
diskSpaceBytes: () => Promise<number>;
|
|
2160
|
+
/**
|
|
2161
|
+
* The list of individual cache entries in the set
|
|
2162
|
+
*/
|
|
2163
|
+
entries: () => Promise<EngineCacheEntry[]>;
|
|
2164
|
+
/**
|
|
2165
|
+
* The number of cache entries in this set.
|
|
2166
|
+
*/
|
|
2167
|
+
entryCount: () => Promise<number>;
|
|
2168
|
+
}
|
|
2174
2169
|
/**
|
|
2175
2170
|
* A definition of a custom enum defined in a Module.
|
|
2176
2171
|
*/
|
|
@@ -2182,10 +2177,7 @@ export declare class EnumTypeDef extends BaseClient {
|
|
|
2182
2177
|
/**
|
|
2183
2178
|
* Constructor is used for internal usage only, do not create object from it.
|
|
2184
2179
|
*/
|
|
2185
|
-
constructor(
|
|
2186
|
-
queryTree?: QueryTree[];
|
|
2187
|
-
ctx: Context;
|
|
2188
|
-
}, _id?: EnumTypeDefID, _description?: string, _name?: string, _sourceModuleName?: string);
|
|
2180
|
+
constructor(ctx?: Context, _id?: EnumTypeDefID, _description?: string, _name?: string, _sourceModuleName?: string);
|
|
2189
2181
|
/**
|
|
2190
2182
|
* A unique identifier for this EnumTypeDef.
|
|
2191
2183
|
*/
|
|
@@ -2221,10 +2213,7 @@ export declare class EnumValueTypeDef extends BaseClient {
|
|
|
2221
2213
|
/**
|
|
2222
2214
|
* Constructor is used for internal usage only, do not create object from it.
|
|
2223
2215
|
*/
|
|
2224
|
-
constructor(
|
|
2225
|
-
queryTree?: QueryTree[];
|
|
2226
|
-
ctx: Context;
|
|
2227
|
-
}, _id?: EnumValueTypeDefID, _description?: string, _name?: string);
|
|
2216
|
+
constructor(ctx?: Context, _id?: EnumValueTypeDefID, _description?: string, _name?: string);
|
|
2228
2217
|
/**
|
|
2229
2218
|
* A unique identifier for this EnumValueTypeDef.
|
|
2230
2219
|
*/
|
|
@@ -2252,10 +2241,7 @@ export declare class EnvVariable extends BaseClient {
|
|
|
2252
2241
|
/**
|
|
2253
2242
|
* Constructor is used for internal usage only, do not create object from it.
|
|
2254
2243
|
*/
|
|
2255
|
-
constructor(
|
|
2256
|
-
queryTree?: QueryTree[];
|
|
2257
|
-
ctx: Context;
|
|
2258
|
-
}, _id?: EnvVariableID, _name?: string, _value?: string);
|
|
2244
|
+
constructor(ctx?: Context, _id?: EnvVariableID, _name?: string, _value?: string);
|
|
2259
2245
|
/**
|
|
2260
2246
|
* A unique identifier for this EnvVariable.
|
|
2261
2247
|
*/
|
|
@@ -2269,6 +2255,22 @@ export declare class EnvVariable extends BaseClient {
|
|
|
2269
2255
|
*/
|
|
2270
2256
|
value: () => Promise<string>;
|
|
2271
2257
|
}
|
|
2258
|
+
export declare class Error extends BaseClient {
|
|
2259
|
+
private readonly _id?;
|
|
2260
|
+
private readonly _message?;
|
|
2261
|
+
/**
|
|
2262
|
+
* Constructor is used for internal usage only, do not create object from it.
|
|
2263
|
+
*/
|
|
2264
|
+
constructor(ctx?: Context, _id?: ErrorID, _message?: string);
|
|
2265
|
+
/**
|
|
2266
|
+
* A unique identifier for this Error.
|
|
2267
|
+
*/
|
|
2268
|
+
id: () => Promise<ErrorID>;
|
|
2269
|
+
/**
|
|
2270
|
+
* A description of the error.
|
|
2271
|
+
*/
|
|
2272
|
+
message: () => Promise<string>;
|
|
2273
|
+
}
|
|
2272
2274
|
/**
|
|
2273
2275
|
* A definition of a field on a custom object defined in a Module.
|
|
2274
2276
|
*
|
|
@@ -2281,10 +2283,7 @@ export declare class FieldTypeDef extends BaseClient {
|
|
|
2281
2283
|
/**
|
|
2282
2284
|
* Constructor is used for internal usage only, do not create object from it.
|
|
2283
2285
|
*/
|
|
2284
|
-
constructor(
|
|
2285
|
-
queryTree?: QueryTree[];
|
|
2286
|
-
ctx: Context;
|
|
2287
|
-
}, _id?: FieldTypeDefID, _description?: string, _name?: string);
|
|
2286
|
+
constructor(ctx?: Context, _id?: FieldTypeDefID, _description?: string, _name?: string);
|
|
2288
2287
|
/**
|
|
2289
2288
|
* A unique identifier for this FieldTypeDef.
|
|
2290
2289
|
*/
|
|
@@ -2320,10 +2319,7 @@ export declare class File extends BaseClient {
|
|
|
2320
2319
|
/**
|
|
2321
2320
|
* Constructor is used for internal usage only, do not create object from it.
|
|
2322
2321
|
*/
|
|
2323
|
-
constructor(
|
|
2324
|
-
queryTree?: QueryTree[];
|
|
2325
|
-
ctx: Context;
|
|
2326
|
-
}, _id?: FileID, _contents?: string, _digest?: string, _export?: string, _name?: string, _size?: number, _sync?: FileID);
|
|
2322
|
+
constructor(ctx?: Context, _id?: FileID, _contents?: string, _digest?: string, _export?: string, _name?: string, _size?: number, _sync?: FileID);
|
|
2327
2323
|
/**
|
|
2328
2324
|
* A unique identifier for this File.
|
|
2329
2325
|
*/
|
|
@@ -2386,10 +2382,7 @@ export declare class Function_ extends BaseClient {
|
|
|
2386
2382
|
/**
|
|
2387
2383
|
* Constructor is used for internal usage only, do not create object from it.
|
|
2388
2384
|
*/
|
|
2389
|
-
constructor(
|
|
2390
|
-
queryTree?: QueryTree[];
|
|
2391
|
-
ctx: Context;
|
|
2392
|
-
}, _id?: FunctionID, _description?: string, _name?: string);
|
|
2385
|
+
constructor(ctx?: Context, _id?: FunctionID, _description?: string, _name?: string);
|
|
2393
2386
|
/**
|
|
2394
2387
|
* A unique identifier for this Function.
|
|
2395
2388
|
*/
|
|
@@ -2455,10 +2448,7 @@ export declare class FunctionArg extends BaseClient {
|
|
|
2455
2448
|
/**
|
|
2456
2449
|
* Constructor is used for internal usage only, do not create object from it.
|
|
2457
2450
|
*/
|
|
2458
|
-
constructor(
|
|
2459
|
-
queryTree?: QueryTree[];
|
|
2460
|
-
ctx: Context;
|
|
2461
|
-
}, _id?: FunctionArgID, _defaultPath?: string, _defaultValue?: JSON, _description?: string, _name?: string);
|
|
2451
|
+
constructor(ctx?: Context, _id?: FunctionArgID, _defaultPath?: string, _defaultValue?: JSON, _description?: string, _name?: string);
|
|
2462
2452
|
/**
|
|
2463
2453
|
* A unique identifier for this FunctionArg.
|
|
2464
2454
|
*/
|
|
@@ -2500,14 +2490,12 @@ export declare class FunctionCall extends BaseClient {
|
|
|
2500
2490
|
private readonly _name?;
|
|
2501
2491
|
private readonly _parent?;
|
|
2502
2492
|
private readonly _parentName?;
|
|
2493
|
+
private readonly _returnError?;
|
|
2503
2494
|
private readonly _returnValue?;
|
|
2504
2495
|
/**
|
|
2505
2496
|
* Constructor is used for internal usage only, do not create object from it.
|
|
2506
2497
|
*/
|
|
2507
|
-
constructor(
|
|
2508
|
-
queryTree?: QueryTree[];
|
|
2509
|
-
ctx: Context;
|
|
2510
|
-
}, _id?: FunctionCallID, _name?: string, _parent?: JSON, _parentName?: string, _returnValue?: Void);
|
|
2498
|
+
constructor(ctx?: Context, _id?: FunctionCallID, _name?: string, _parent?: JSON, _parentName?: string, _returnError?: Void, _returnValue?: Void);
|
|
2511
2499
|
/**
|
|
2512
2500
|
* A unique identifier for this FunctionCall.
|
|
2513
2501
|
*/
|
|
@@ -2528,6 +2516,11 @@ export declare class FunctionCall extends BaseClient {
|
|
|
2528
2516
|
* The name of the parent object of the function being called. If the function is top-level to the module, this is the name of the module.
|
|
2529
2517
|
*/
|
|
2530
2518
|
parentName: () => Promise<string>;
|
|
2519
|
+
/**
|
|
2520
|
+
* Return an error from the function.
|
|
2521
|
+
* @param error The error to return.
|
|
2522
|
+
*/
|
|
2523
|
+
returnError: (error: Error) => Promise<void>;
|
|
2531
2524
|
/**
|
|
2532
2525
|
* Set the return value of the function call to the provided value.
|
|
2533
2526
|
* @param value JSON serialization of the return value.
|
|
@@ -2544,10 +2537,7 @@ export declare class FunctionCallArgValue extends BaseClient {
|
|
|
2544
2537
|
/**
|
|
2545
2538
|
* Constructor is used for internal usage only, do not create object from it.
|
|
2546
2539
|
*/
|
|
2547
|
-
constructor(
|
|
2548
|
-
queryTree?: QueryTree[];
|
|
2549
|
-
ctx: Context;
|
|
2550
|
-
}, _id?: FunctionCallArgValueID, _name?: string, _value?: JSON);
|
|
2540
|
+
constructor(ctx?: Context, _id?: FunctionCallArgValueID, _name?: string, _value?: JSON);
|
|
2551
2541
|
/**
|
|
2552
2542
|
* A unique identifier for this FunctionCallArgValue.
|
|
2553
2543
|
*/
|
|
@@ -2569,10 +2559,7 @@ export declare class GeneratedCode extends BaseClient {
|
|
|
2569
2559
|
/**
|
|
2570
2560
|
* Constructor is used for internal usage only, do not create object from it.
|
|
2571
2561
|
*/
|
|
2572
|
-
constructor(
|
|
2573
|
-
queryTree?: QueryTree[];
|
|
2574
|
-
ctx: Context;
|
|
2575
|
-
}, _id?: GeneratedCodeID);
|
|
2562
|
+
constructor(ctx?: Context, _id?: GeneratedCodeID);
|
|
2576
2563
|
/**
|
|
2577
2564
|
* A unique identifier for this GeneratedCode.
|
|
2578
2565
|
*/
|
|
@@ -2619,10 +2606,7 @@ export declare class GitModuleSource extends BaseClient {
|
|
|
2619
2606
|
/**
|
|
2620
2607
|
* Constructor is used for internal usage only, do not create object from it.
|
|
2621
2608
|
*/
|
|
2622
|
-
constructor(
|
|
2623
|
-
queryTree?: QueryTree[];
|
|
2624
|
-
ctx: Context;
|
|
2625
|
-
}, _id?: GitModuleSourceID, _cloneRef?: string, _commit?: string, _htmlRepoURL?: string, _htmlURL?: string, _root?: string, _rootSubpath?: string, _version?: string);
|
|
2609
|
+
constructor(ctx?: Context, _id?: GitModuleSourceID, _cloneRef?: string, _commit?: string, _htmlRepoURL?: string, _htmlURL?: string, _root?: string, _rootSubpath?: string, _version?: string);
|
|
2626
2610
|
/**
|
|
2627
2611
|
* A unique identifier for this GitModuleSource.
|
|
2628
2612
|
*/
|
|
@@ -2669,10 +2653,7 @@ export declare class GitRef extends BaseClient {
|
|
|
2669
2653
|
/**
|
|
2670
2654
|
* Constructor is used for internal usage only, do not create object from it.
|
|
2671
2655
|
*/
|
|
2672
|
-
constructor(
|
|
2673
|
-
queryTree?: QueryTree[];
|
|
2674
|
-
ctx: Context;
|
|
2675
|
-
}, _id?: GitRefID, _commit?: string);
|
|
2656
|
+
constructor(ctx?: Context, _id?: GitRefID, _commit?: string);
|
|
2676
2657
|
/**
|
|
2677
2658
|
* A unique identifier for this GitRef.
|
|
2678
2659
|
*/
|
|
@@ -2695,10 +2676,7 @@ export declare class GitRepository extends BaseClient {
|
|
|
2695
2676
|
/**
|
|
2696
2677
|
* Constructor is used for internal usage only, do not create object from it.
|
|
2697
2678
|
*/
|
|
2698
|
-
constructor(
|
|
2699
|
-
queryTree?: QueryTree[];
|
|
2700
|
-
ctx: Context;
|
|
2701
|
-
}, _id?: GitRepositoryID);
|
|
2679
|
+
constructor(ctx?: Context, _id?: GitRepositoryID);
|
|
2702
2680
|
/**
|
|
2703
2681
|
* A unique identifier for this GitRepository.
|
|
2704
2682
|
*/
|
|
@@ -2757,10 +2735,7 @@ export declare class Host extends BaseClient {
|
|
|
2757
2735
|
/**
|
|
2758
2736
|
* Constructor is used for internal usage only, do not create object from it.
|
|
2759
2737
|
*/
|
|
2760
|
-
constructor(
|
|
2761
|
-
queryTree?: QueryTree[];
|
|
2762
|
-
ctx: Context;
|
|
2763
|
-
}, _id?: HostID);
|
|
2738
|
+
constructor(ctx?: Context, _id?: HostID);
|
|
2764
2739
|
/**
|
|
2765
2740
|
* A unique identifier for this Host.
|
|
2766
2741
|
*/
|
|
@@ -2828,10 +2803,7 @@ export declare class InputTypeDef extends BaseClient {
|
|
|
2828
2803
|
/**
|
|
2829
2804
|
* Constructor is used for internal usage only, do not create object from it.
|
|
2830
2805
|
*/
|
|
2831
|
-
constructor(
|
|
2832
|
-
queryTree?: QueryTree[];
|
|
2833
|
-
ctx: Context;
|
|
2834
|
-
}, _id?: InputTypeDefID, _name?: string);
|
|
2806
|
+
constructor(ctx?: Context, _id?: InputTypeDefID, _name?: string);
|
|
2835
2807
|
/**
|
|
2836
2808
|
* A unique identifier for this InputTypeDef.
|
|
2837
2809
|
*/
|
|
@@ -2856,10 +2828,7 @@ export declare class InterfaceTypeDef extends BaseClient {
|
|
|
2856
2828
|
/**
|
|
2857
2829
|
* Constructor is used for internal usage only, do not create object from it.
|
|
2858
2830
|
*/
|
|
2859
|
-
constructor(
|
|
2860
|
-
queryTree?: QueryTree[];
|
|
2861
|
-
ctx: Context;
|
|
2862
|
-
}, _id?: InterfaceTypeDefID, _description?: string, _name?: string, _sourceModuleName?: string);
|
|
2831
|
+
constructor(ctx?: Context, _id?: InterfaceTypeDefID, _description?: string, _name?: string, _sourceModuleName?: string);
|
|
2863
2832
|
/**
|
|
2864
2833
|
* A unique identifier for this InterfaceTypeDef.
|
|
2865
2834
|
*/
|
|
@@ -2895,10 +2864,7 @@ export declare class Label extends BaseClient {
|
|
|
2895
2864
|
/**
|
|
2896
2865
|
* Constructor is used for internal usage only, do not create object from it.
|
|
2897
2866
|
*/
|
|
2898
|
-
constructor(
|
|
2899
|
-
queryTree?: QueryTree[];
|
|
2900
|
-
ctx: Context;
|
|
2901
|
-
}, _id?: LabelID, _name?: string, _value?: string);
|
|
2867
|
+
constructor(ctx?: Context, _id?: LabelID, _name?: string, _value?: string);
|
|
2902
2868
|
/**
|
|
2903
2869
|
* A unique identifier for this Label.
|
|
2904
2870
|
*/
|
|
@@ -2920,10 +2886,7 @@ export declare class ListTypeDef extends BaseClient {
|
|
|
2920
2886
|
/**
|
|
2921
2887
|
* Constructor is used for internal usage only, do not create object from it.
|
|
2922
2888
|
*/
|
|
2923
|
-
constructor(
|
|
2924
|
-
queryTree?: QueryTree[];
|
|
2925
|
-
ctx: Context;
|
|
2926
|
-
}, _id?: ListTypeDefID);
|
|
2889
|
+
constructor(ctx?: Context, _id?: ListTypeDefID);
|
|
2927
2890
|
/**
|
|
2928
2891
|
* A unique identifier for this ListTypeDef.
|
|
2929
2892
|
*/
|
|
@@ -2943,10 +2906,7 @@ export declare class LocalModuleSource extends BaseClient {
|
|
|
2943
2906
|
/**
|
|
2944
2907
|
* Constructor is used for internal usage only, do not create object from it.
|
|
2945
2908
|
*/
|
|
2946
|
-
constructor(
|
|
2947
|
-
queryTree?: QueryTree[];
|
|
2948
|
-
ctx: Context;
|
|
2949
|
-
}, _id?: LocalModuleSourceID, _relHostPath?: string, _rootSubpath?: string);
|
|
2909
|
+
constructor(ctx?: Context, _id?: LocalModuleSourceID, _relHostPath?: string, _rootSubpath?: string);
|
|
2950
2910
|
/**
|
|
2951
2911
|
* A unique identifier for this LocalModuleSource.
|
|
2952
2912
|
*/
|
|
@@ -2976,10 +2936,7 @@ export declare class Module_ extends BaseClient {
|
|
|
2976
2936
|
/**
|
|
2977
2937
|
* Constructor is used for internal usage only, do not create object from it.
|
|
2978
2938
|
*/
|
|
2979
|
-
constructor(
|
|
2980
|
-
queryTree?: QueryTree[];
|
|
2981
|
-
ctx: Context;
|
|
2982
|
-
}, _id?: ModuleID, _description?: string, _name?: string, _sdk?: string, _serve?: Void);
|
|
2939
|
+
constructor(ctx?: Context, _id?: ModuleID, _description?: string, _name?: string, _sdk?: string, _serve?: Void);
|
|
2983
2940
|
/**
|
|
2984
2941
|
* A unique identifier for this Module.
|
|
2985
2942
|
*/
|
|
@@ -3081,10 +3038,7 @@ export declare class ModuleDependency extends BaseClient {
|
|
|
3081
3038
|
/**
|
|
3082
3039
|
* Constructor is used for internal usage only, do not create object from it.
|
|
3083
3040
|
*/
|
|
3084
|
-
constructor(
|
|
3085
|
-
queryTree?: QueryTree[];
|
|
3086
|
-
ctx: Context;
|
|
3087
|
-
}, _id?: ModuleDependencyID, _name?: string);
|
|
3041
|
+
constructor(ctx?: Context, _id?: ModuleDependencyID, _name?: string);
|
|
3088
3042
|
/**
|
|
3089
3043
|
* A unique identifier for this ModuleDependency.
|
|
3090
3044
|
*/
|
|
@@ -3109,16 +3063,14 @@ export declare class ModuleSource extends BaseClient {
|
|
|
3109
3063
|
private readonly _kind?;
|
|
3110
3064
|
private readonly _moduleName?;
|
|
3111
3065
|
private readonly _moduleOriginalName?;
|
|
3066
|
+
private readonly _pin?;
|
|
3112
3067
|
private readonly _resolveContextPathFromCaller?;
|
|
3113
3068
|
private readonly _sourceRootSubpath?;
|
|
3114
3069
|
private readonly _sourceSubpath?;
|
|
3115
3070
|
/**
|
|
3116
3071
|
* Constructor is used for internal usage only, do not create object from it.
|
|
3117
3072
|
*/
|
|
3118
|
-
constructor(
|
|
3119
|
-
queryTree?: QueryTree[];
|
|
3120
|
-
ctx: Context;
|
|
3121
|
-
}, _id?: ModuleSourceID, _asString?: string, _configExists?: boolean, _digest?: string, _kind?: ModuleSourceKind, _moduleName?: string, _moduleOriginalName?: string, _resolveContextPathFromCaller?: string, _sourceRootSubpath?: string, _sourceSubpath?: string);
|
|
3073
|
+
constructor(ctx?: Context, _id?: ModuleSourceID, _asString?: string, _configExists?: boolean, _digest?: string, _kind?: ModuleSourceKind, _moduleName?: string, _moduleOriginalName?: string, _pin?: string, _resolveContextPathFromCaller?: string, _sourceRootSubpath?: string, _sourceSubpath?: string);
|
|
3122
3074
|
/**
|
|
3123
3075
|
* A unique identifier for this ModuleSource.
|
|
3124
3076
|
*/
|
|
@@ -3145,11 +3097,11 @@ export declare class ModuleSource extends BaseClient {
|
|
|
3145
3097
|
*/
|
|
3146
3098
|
configExists: () => Promise<boolean>;
|
|
3147
3099
|
/**
|
|
3148
|
-
* The directory containing everything needed to load
|
|
3100
|
+
* The directory containing everything needed to load and use the module.
|
|
3149
3101
|
*/
|
|
3150
3102
|
contextDirectory: () => Directory;
|
|
3151
3103
|
/**
|
|
3152
|
-
* The
|
|
3104
|
+
* The effective module source dependencies from the configuration, and calls to withDependencies and withoutDependencies.
|
|
3153
3105
|
*/
|
|
3154
3106
|
dependencies: () => Promise<ModuleDependency[]>;
|
|
3155
3107
|
/**
|
|
@@ -3173,6 +3125,10 @@ export declare class ModuleSource extends BaseClient {
|
|
|
3173
3125
|
* The original name of the module this source references, as defined in the module configuration.
|
|
3174
3126
|
*/
|
|
3175
3127
|
moduleOriginalName: () => Promise<string>;
|
|
3128
|
+
/**
|
|
3129
|
+
* The pinned version of this module source.
|
|
3130
|
+
*/
|
|
3131
|
+
pin: () => Promise<string>;
|
|
3176
3132
|
/**
|
|
3177
3133
|
* The path to the module source's context directory on the caller's filesystem. Only valid for local sources.
|
|
3178
3134
|
*/
|
|
@@ -3246,6 +3202,11 @@ export declare class ModuleSource extends BaseClient {
|
|
|
3246
3202
|
* @param patterns The patterns to set as the view filters.
|
|
3247
3203
|
*/
|
|
3248
3204
|
withView: (name: string, patterns: string[]) => ModuleSource;
|
|
3205
|
+
/**
|
|
3206
|
+
* Remove the provided dependencies from the module source's dependency list.
|
|
3207
|
+
* @param dependencies The dependencies to remove.
|
|
3208
|
+
*/
|
|
3209
|
+
withoutDependencies: (dependencies: string[]) => ModuleSource;
|
|
3249
3210
|
/**
|
|
3250
3211
|
* Call the provided function with current ModuleSource.
|
|
3251
3212
|
*
|
|
@@ -3262,10 +3223,7 @@ export declare class ModuleSourceView extends BaseClient {
|
|
|
3262
3223
|
/**
|
|
3263
3224
|
* Constructor is used for internal usage only, do not create object from it.
|
|
3264
3225
|
*/
|
|
3265
|
-
constructor(
|
|
3266
|
-
queryTree?: QueryTree[];
|
|
3267
|
-
ctx: Context;
|
|
3268
|
-
}, _id?: ModuleSourceViewID, _name?: string);
|
|
3226
|
+
constructor(ctx?: Context, _id?: ModuleSourceViewID, _name?: string);
|
|
3269
3227
|
/**
|
|
3270
3228
|
* A unique identifier for this ModuleSourceView.
|
|
3271
3229
|
*/
|
|
@@ -3290,10 +3248,7 @@ export declare class ObjectTypeDef extends BaseClient {
|
|
|
3290
3248
|
/**
|
|
3291
3249
|
* Constructor is used for internal usage only, do not create object from it.
|
|
3292
3250
|
*/
|
|
3293
|
-
constructor(
|
|
3294
|
-
queryTree?: QueryTree[];
|
|
3295
|
-
ctx: Context;
|
|
3296
|
-
}, _id?: ObjectTypeDefID, _description?: string, _name?: string, _sourceModuleName?: string);
|
|
3251
|
+
constructor(ctx?: Context, _id?: ObjectTypeDefID, _description?: string, _name?: string, _sourceModuleName?: string);
|
|
3297
3252
|
/**
|
|
3298
3253
|
* A unique identifier for this ObjectTypeDef.
|
|
3299
3254
|
*/
|
|
@@ -3339,10 +3294,7 @@ export declare class Port extends BaseClient {
|
|
|
3339
3294
|
/**
|
|
3340
3295
|
* Constructor is used for internal usage only, do not create object from it.
|
|
3341
3296
|
*/
|
|
3342
|
-
constructor(
|
|
3343
|
-
queryTree?: QueryTree[];
|
|
3344
|
-
ctx: Context;
|
|
3345
|
-
}, _id?: PortID, _description?: string, _experimentalSkipHealthcheck?: boolean, _port?: number, _protocol?: NetworkProtocol);
|
|
3297
|
+
constructor(ctx?: Context, _id?: PortID, _description?: string, _experimentalSkipHealthcheck?: boolean, _port?: number, _protocol?: NetworkProtocol);
|
|
3346
3298
|
/**
|
|
3347
3299
|
* A unique identifier for this Port.
|
|
3348
3300
|
*/
|
|
@@ -3373,10 +3325,7 @@ export declare class Client extends BaseClient {
|
|
|
3373
3325
|
/**
|
|
3374
3326
|
* Constructor is used for internal usage only, do not create object from it.
|
|
3375
3327
|
*/
|
|
3376
|
-
constructor(
|
|
3377
|
-
queryTree?: QueryTree[];
|
|
3378
|
-
ctx: Context;
|
|
3379
|
-
}, _defaultPlatform?: Platform, _version?: string);
|
|
3328
|
+
constructor(ctx?: Context, _defaultPlatform?: Platform, _version?: string);
|
|
3380
3329
|
/**
|
|
3381
3330
|
* Get the Raw GraphQL client.
|
|
3382
3331
|
*/
|
|
@@ -3384,11 +3333,8 @@ export declare class Client extends BaseClient {
|
|
|
3384
3333
|
/**
|
|
3385
3334
|
* Retrieves a content-addressed blob.
|
|
3386
3335
|
* @param digest Digest of the blob
|
|
3387
|
-
* @param size Size of the blob
|
|
3388
|
-
* @param mediaType Media type of the blob
|
|
3389
|
-
* @param uncompressed Digest of the uncompressed blob
|
|
3390
3336
|
*/
|
|
3391
|
-
blob: (digest: string
|
|
3337
|
+
blob: (digest: string) => Directory;
|
|
3392
3338
|
/**
|
|
3393
3339
|
* Retrieves a container builtin to the engine.
|
|
3394
3340
|
* @param digest Digest of the image manifest
|
|
@@ -3420,10 +3366,6 @@ export declare class Client extends BaseClient {
|
|
|
3420
3366
|
* The TypeDef representations of the objects currently being served in the session.
|
|
3421
3367
|
*/
|
|
3422
3368
|
currentTypeDefs: () => Promise<TypeDef[]>;
|
|
3423
|
-
/**
|
|
3424
|
-
* The Dagger engine container configuration and state
|
|
3425
|
-
*/
|
|
3426
|
-
daggerEngine: () => DaggerEngine;
|
|
3427
3369
|
/**
|
|
3428
3370
|
* The default platform of the engine.
|
|
3429
3371
|
*/
|
|
@@ -3432,6 +3374,15 @@ export declare class Client extends BaseClient {
|
|
|
3432
3374
|
* Creates an empty directory.
|
|
3433
3375
|
*/
|
|
3434
3376
|
directory: () => Directory;
|
|
3377
|
+
/**
|
|
3378
|
+
* The Dagger engine container configuration and state
|
|
3379
|
+
*/
|
|
3380
|
+
engine: () => Engine;
|
|
3381
|
+
/**
|
|
3382
|
+
* Create a new error.
|
|
3383
|
+
* @param message A brief description of the error.
|
|
3384
|
+
*/
|
|
3385
|
+
error: (message: string) => Error;
|
|
3435
3386
|
/**
|
|
3436
3387
|
* Creates a function.
|
|
3437
3388
|
* @param name Name of the function, in its original format from the implementation language.
|
|
@@ -3478,25 +3429,25 @@ export declare class Client extends BaseClient {
|
|
|
3478
3429
|
*/
|
|
3479
3430
|
loadCurrentModuleFromID: (id: CurrentModuleID) => CurrentModule;
|
|
3480
3431
|
/**
|
|
3481
|
-
* Load a
|
|
3432
|
+
* Load a Directory from its ID.
|
|
3482
3433
|
*/
|
|
3483
|
-
|
|
3434
|
+
loadDirectoryFromID: (id: DirectoryID) => Directory;
|
|
3484
3435
|
/**
|
|
3485
|
-
* Load a
|
|
3436
|
+
* Load a EngineCacheEntry from its ID.
|
|
3486
3437
|
*/
|
|
3487
|
-
|
|
3438
|
+
loadEngineCacheEntryFromID: (id: EngineCacheEntryID) => EngineCacheEntry;
|
|
3488
3439
|
/**
|
|
3489
|
-
* Load a
|
|
3440
|
+
* Load a EngineCacheEntrySet from its ID.
|
|
3490
3441
|
*/
|
|
3491
|
-
|
|
3442
|
+
loadEngineCacheEntrySetFromID: (id: EngineCacheEntrySetID) => EngineCacheEntrySet;
|
|
3492
3443
|
/**
|
|
3493
|
-
* Load a
|
|
3444
|
+
* Load a EngineCache from its ID.
|
|
3494
3445
|
*/
|
|
3495
|
-
|
|
3446
|
+
loadEngineCacheFromID: (id: EngineCacheID) => EngineCache;
|
|
3496
3447
|
/**
|
|
3497
|
-
* Load a
|
|
3448
|
+
* Load a Engine from its ID.
|
|
3498
3449
|
*/
|
|
3499
|
-
|
|
3450
|
+
loadEngineFromID: (id: EngineID) => Engine;
|
|
3500
3451
|
/**
|
|
3501
3452
|
* Load a EnumTypeDef from its ID.
|
|
3502
3453
|
*/
|
|
@@ -3509,6 +3460,10 @@ export declare class Client extends BaseClient {
|
|
|
3509
3460
|
* Load a EnvVariable from its ID.
|
|
3510
3461
|
*/
|
|
3511
3462
|
loadEnvVariableFromID: (id: EnvVariableID) => EnvVariable;
|
|
3463
|
+
/**
|
|
3464
|
+
* Load a Error from its ID.
|
|
3465
|
+
*/
|
|
3466
|
+
loadErrorFromID: (id: ErrorID) => Error;
|
|
3512
3467
|
/**
|
|
3513
3468
|
* Load a FieldTypeDef from its ID.
|
|
3514
3469
|
*/
|
|
@@ -3682,10 +3637,7 @@ export declare class ScalarTypeDef extends BaseClient {
|
|
|
3682
3637
|
/**
|
|
3683
3638
|
* Constructor is used for internal usage only, do not create object from it.
|
|
3684
3639
|
*/
|
|
3685
|
-
constructor(
|
|
3686
|
-
queryTree?: QueryTree[];
|
|
3687
|
-
ctx: Context;
|
|
3688
|
-
}, _id?: ScalarTypeDefID, _description?: string, _name?: string, _sourceModuleName?: string);
|
|
3640
|
+
constructor(ctx?: Context, _id?: ScalarTypeDefID, _description?: string, _name?: string, _sourceModuleName?: string);
|
|
3689
3641
|
/**
|
|
3690
3642
|
* A unique identifier for this ScalarTypeDef.
|
|
3691
3643
|
*/
|
|
@@ -3713,10 +3665,7 @@ export declare class Secret extends BaseClient {
|
|
|
3713
3665
|
/**
|
|
3714
3666
|
* Constructor is used for internal usage only, do not create object from it.
|
|
3715
3667
|
*/
|
|
3716
|
-
constructor(
|
|
3717
|
-
queryTree?: QueryTree[];
|
|
3718
|
-
ctx: Context;
|
|
3719
|
-
}, _id?: SecretID, _name?: string, _plaintext?: string);
|
|
3668
|
+
constructor(ctx?: Context, _id?: SecretID, _name?: string, _plaintext?: string);
|
|
3720
3669
|
/**
|
|
3721
3670
|
* A unique identifier for this Secret.
|
|
3722
3671
|
*/
|
|
@@ -3743,10 +3692,7 @@ export declare class Service extends BaseClient {
|
|
|
3743
3692
|
/**
|
|
3744
3693
|
* Constructor is used for internal usage only, do not create object from it.
|
|
3745
3694
|
*/
|
|
3746
|
-
constructor(
|
|
3747
|
-
queryTree?: QueryTree[];
|
|
3748
|
-
ctx: Context;
|
|
3749
|
-
}, _id?: ServiceID, _endpoint?: string, _hostname?: string, _start?: ServiceID, _stop?: ServiceID, _up?: Void);
|
|
3695
|
+
constructor(ctx?: Context, _id?: ServiceID, _endpoint?: string, _hostname?: string, _start?: ServiceID, _stop?: ServiceID, _up?: Void);
|
|
3750
3696
|
/**
|
|
3751
3697
|
* A unique identifier for this Service.
|
|
3752
3698
|
*/
|
|
@@ -3808,10 +3754,7 @@ export declare class Socket extends BaseClient {
|
|
|
3808
3754
|
/**
|
|
3809
3755
|
* Constructor is used for internal usage only, do not create object from it.
|
|
3810
3756
|
*/
|
|
3811
|
-
constructor(
|
|
3812
|
-
queryTree?: QueryTree[];
|
|
3813
|
-
ctx: Context;
|
|
3814
|
-
}, _id?: SocketID);
|
|
3757
|
+
constructor(ctx?: Context, _id?: SocketID);
|
|
3815
3758
|
/**
|
|
3816
3759
|
* A unique identifier for this Socket.
|
|
3817
3760
|
*/
|
|
@@ -3829,10 +3772,7 @@ export declare class SourceMap extends BaseClient {
|
|
|
3829
3772
|
/**
|
|
3830
3773
|
* Constructor is used for internal usage only, do not create object from it.
|
|
3831
3774
|
*/
|
|
3832
|
-
constructor(
|
|
3833
|
-
queryTree?: QueryTree[];
|
|
3834
|
-
ctx: Context;
|
|
3835
|
-
}, _id?: SourceMapID, _column?: number, _filename?: string, _line?: number, _module?: string);
|
|
3775
|
+
constructor(ctx?: Context, _id?: SourceMapID, _column?: number, _filename?: string, _line?: number, _module?: string);
|
|
3836
3776
|
/**
|
|
3837
3777
|
* A unique identifier for this SourceMap.
|
|
3838
3778
|
*/
|
|
@@ -3863,10 +3803,7 @@ export declare class Terminal extends BaseClient {
|
|
|
3863
3803
|
/**
|
|
3864
3804
|
* Constructor is used for internal usage only, do not create object from it.
|
|
3865
3805
|
*/
|
|
3866
|
-
constructor(
|
|
3867
|
-
queryTree?: QueryTree[];
|
|
3868
|
-
ctx: Context;
|
|
3869
|
-
}, _id?: TerminalID, _sync?: TerminalID);
|
|
3806
|
+
constructor(ctx?: Context, _id?: TerminalID, _sync?: TerminalID);
|
|
3870
3807
|
/**
|
|
3871
3808
|
* A unique identifier for this Terminal.
|
|
3872
3809
|
*/
|
|
@@ -3888,10 +3825,7 @@ export declare class TypeDef extends BaseClient {
|
|
|
3888
3825
|
/**
|
|
3889
3826
|
* Constructor is used for internal usage only, do not create object from it.
|
|
3890
3827
|
*/
|
|
3891
|
-
constructor(
|
|
3892
|
-
queryTree?: QueryTree[];
|
|
3893
|
-
ctx: Context;
|
|
3894
|
-
}, _id?: TypeDefID, _kind?: TypeDefKind, _optional?: boolean);
|
|
3828
|
+
constructor(ctx?: Context, _id?: TypeDefID, _kind?: TypeDefKind, _optional?: boolean);
|
|
3895
3829
|
/**
|
|
3896
3830
|
* A unique identifier for this TypeDef.
|
|
3897
3831
|
*/
|