kurtosis-sdk 0.49.5
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/build/core/kurtosis_core_rpc_api_bindings/api_container_service_grpc_pb.d.ts +110 -0
- package/build/core/kurtosis_core_rpc_api_bindings/api_container_service_grpc_pb.js +581 -0
- package/build/core/kurtosis_core_rpc_api_bindings/api_container_service_grpc_web_pb.d.ts +236 -0
- package/build/core/kurtosis_core_rpc_api_bindings/api_container_service_grpc_web_pb.js +1174 -0
- package/build/core/kurtosis_core_rpc_api_bindings/api_container_service_pb.d.ts +918 -0
- package/build/core/kurtosis_core_rpc_api_bindings/api_container_service_pb.js +7616 -0
- package/build/core/kurtosis_core_rpc_api_bindings/executable_module_service_grpc_pb.d.ts +30 -0
- package/build/core/kurtosis_core_rpc_api_bindings/executable_module_service_grpc_pb.js +70 -0
- package/build/core/kurtosis_core_rpc_api_bindings/executable_module_service_grpc_web_pb.d.ts +44 -0
- package/build/core/kurtosis_core_rpc_api_bindings/executable_module_service_grpc_web_pb.js +198 -0
- package/build/core/kurtosis_core_rpc_api_bindings/executable_module_service_pb.d.ts +41 -0
- package/build/core/kurtosis_core_rpc_api_bindings/executable_module_service_pb.js +324 -0
- package/build/core/lib/constructor_calls.d.ts +33 -0
- package/build/core/lib/constructor_calls.js +328 -0
- package/build/core/lib/enclaves/enclave_context.d.ts +39 -0
- package/build/core/lib/enclaves/enclave_context.js +501 -0
- package/build/core/lib/enclaves/generic_api_container_client.d.ts +23 -0
- package/build/core/lib/enclaves/generic_api_container_client.js +6 -0
- package/build/core/lib/enclaves/generic_path_joiner.d.ts +3 -0
- package/build/core/lib/enclaves/generic_path_joiner.js +6 -0
- package/build/core/lib/enclaves/generic_tgz_archiver.d.ts +4 -0
- package/build/core/lib/enclaves/generic_tgz_archiver.js +2 -0
- package/build/core/lib/enclaves/grpc_node_api_container_client.d.ts +29 -0
- package/build/core/lib/enclaves/grpc_node_api_container_client.js +415 -0
- package/build/core/lib/enclaves/grpc_web_api_container_client.d.ts +28 -0
- package/build/core/lib/enclaves/grpc_web_api_container_client.js +415 -0
- package/build/core/lib/enclaves/node_tgz_archiver.d.ts +6 -0
- package/build/core/lib/enclaves/node_tgz_archiver.js +94 -0
- package/build/core/lib/enclaves/partition_connection.d.ts +20 -0
- package/build/core/lib/enclaves/partition_connection.js +62 -0
- package/build/core/lib/enclaves/template_and_data.d.ts +5 -0
- package/build/core/lib/enclaves/template_and_data.js +11 -0
- package/build/core/lib/enclaves/web_tgz_archiver.d.ts +5 -0
- package/build/core/lib/enclaves/web_tgz_archiver.js +26 -0
- package/build/core/lib/modules/module_context.d.ts +9 -0
- package/build/core/lib/modules/module_context.js +34 -0
- package/build/core/lib/services/container_config.d.ts +39 -0
- package/build/core/lib/services/container_config.js +85 -0
- package/build/core/lib/services/port_spec.d.ts +11 -0
- package/build/core/lib/services/port_spec.js +16 -0
- package/build/core/lib/services/service.d.ts +1 -0
- package/build/core/lib/services/service.js +6 -0
- package/build/core/lib/services/service_context.d.ts +19 -0
- package/build/core/lib/services/service_context.js +58 -0
- package/build/core/module_launch_api/args_io.d.ts +4 -0
- package/build/core/module_launch_api/args_io.js +60 -0
- package/build/core/module_launch_api/module_container_args.d.ts +8 -0
- package/build/core/module_launch_api/module_container_args.js +24 -0
- package/build/engine/kurtosis_engine_rpc_api_bindings/engine_service_grpc_pb.d.ts +50 -0
- package/build/engine/kurtosis_engine_rpc_api_bindings/engine_service_grpc_pb.js +186 -0
- package/build/engine/kurtosis_engine_rpc_api_bindings/engine_service_grpc_web_pb.d.ts +92 -0
- package/build/engine/kurtosis_engine_rpc_api_bindings/engine_service_grpc_web_pb.js +442 -0
- package/build/engine/kurtosis_engine_rpc_api_bindings/engine_service_pb.d.ts +267 -0
- package/build/engine/kurtosis_engine_rpc_api_bindings/engine_service_pb.js +2141 -0
- package/build/engine/lib/constructor_calls.d.ts +5 -0
- package/build/engine/lib/constructor_calls.js +34 -0
- package/build/engine/lib/kurtosis_context/generic_engine_client.d.ts +10 -0
- package/build/engine/lib/kurtosis_context/generic_engine_client.js +2 -0
- package/build/engine/lib/kurtosis_context/grpc_node_engine_client.d.ts +14 -0
- package/build/engine/lib/kurtosis_context/grpc_node_engine_client.js +165 -0
- package/build/engine/lib/kurtosis_context/grpc_web_engine_client.d.ts +14 -0
- package/build/engine/lib/kurtosis_context/grpc_web_engine_client.js +165 -0
- package/build/engine/lib/kurtosis_context/kurtosis_context.d.ts +19 -0
- package/build/engine/lib/kurtosis_context/kurtosis_context.js +236 -0
- package/build/index.d.ts +19 -0
- package/build/index.js +55 -0
- package/build/kurtosis_version/kurtosis_version.d.ts +1 -0
- package/build/kurtosis_version/kurtosis_version.js +8 -0
- package/package.json +59 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
2
|
+
|
|
3
|
+
// package: module_api
|
|
4
|
+
// file: executable_module_service.proto
|
|
5
|
+
|
|
6
|
+
import * as executable_module_service_pb from "./executable_module_service_pb";
|
|
7
|
+
import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb";
|
|
8
|
+
import * as grpc from "@grpc/grpc-js";
|
|
9
|
+
|
|
10
|
+
interface IExecutableModuleServiceService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
|
|
11
|
+
isAvailable: grpc.MethodDefinition<google_protobuf_empty_pb.Empty, google_protobuf_empty_pb.Empty>;
|
|
12
|
+
execute: grpc.MethodDefinition<executable_module_service_pb.ExecuteArgs, executable_module_service_pb.ExecuteResponse>;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const ExecutableModuleServiceService: IExecutableModuleServiceService;
|
|
16
|
+
|
|
17
|
+
export interface IExecutableModuleServiceServer extends grpc.UntypedServiceImplementation {
|
|
18
|
+
isAvailable: grpc.handleUnaryCall<google_protobuf_empty_pb.Empty, google_protobuf_empty_pb.Empty>;
|
|
19
|
+
execute: grpc.handleUnaryCall<executable_module_service_pb.ExecuteArgs, executable_module_service_pb.ExecuteResponse>;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export class ExecutableModuleServiceClient extends grpc.Client {
|
|
23
|
+
constructor(address: string, credentials: grpc.ChannelCredentials, options?: object);
|
|
24
|
+
isAvailable(argument: google_protobuf_empty_pb.Empty, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
|
|
25
|
+
isAvailable(argument: google_protobuf_empty_pb.Empty, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
|
|
26
|
+
isAvailable(argument: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
|
|
27
|
+
execute(argument: executable_module_service_pb.ExecuteArgs, callback: grpc.requestCallback<executable_module_service_pb.ExecuteResponse>): grpc.ClientUnaryCall;
|
|
28
|
+
execute(argument: executable_module_service_pb.ExecuteArgs, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<executable_module_service_pb.ExecuteResponse>): grpc.ClientUnaryCall;
|
|
29
|
+
execute(argument: executable_module_service_pb.ExecuteArgs, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<executable_module_service_pb.ExecuteResponse>): grpc.ClientUnaryCall;
|
|
30
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
2
|
+
|
|
3
|
+
'use strict';
|
|
4
|
+
var grpc = require('@grpc/grpc-js');
|
|
5
|
+
var executable_module_service_pb = require('./executable_module_service_pb.js');
|
|
6
|
+
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
|
|
7
|
+
|
|
8
|
+
function serialize_google_protobuf_Empty(arg) {
|
|
9
|
+
if (!(arg instanceof google_protobuf_empty_pb.Empty)) {
|
|
10
|
+
throw new Error('Expected argument of type google.protobuf.Empty');
|
|
11
|
+
}
|
|
12
|
+
return Buffer.from(arg.serializeBinary());
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function deserialize_google_protobuf_Empty(buffer_arg) {
|
|
16
|
+
return google_protobuf_empty_pb.Empty.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function serialize_module_api_ExecuteArgs(arg) {
|
|
20
|
+
if (!(arg instanceof executable_module_service_pb.ExecuteArgs)) {
|
|
21
|
+
throw new Error('Expected argument of type module_api.ExecuteArgs');
|
|
22
|
+
}
|
|
23
|
+
return Buffer.from(arg.serializeBinary());
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function deserialize_module_api_ExecuteArgs(buffer_arg) {
|
|
27
|
+
return executable_module_service_pb.ExecuteArgs.deserializeBinary(new Uint8Array(buffer_arg));
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function serialize_module_api_ExecuteResponse(arg) {
|
|
31
|
+
if (!(arg instanceof executable_module_service_pb.ExecuteResponse)) {
|
|
32
|
+
throw new Error('Expected argument of type module_api.ExecuteResponse');
|
|
33
|
+
}
|
|
34
|
+
return Buffer.from(arg.serializeBinary());
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
function deserialize_module_api_ExecuteResponse(buffer_arg) {
|
|
38
|
+
return executable_module_service_pb.ExecuteResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
// A module that has an "execute" command
|
|
43
|
+
var ExecutableModuleServiceService = exports.ExecutableModuleServiceService = {
|
|
44
|
+
// Returns true if the executable module is available
|
|
45
|
+
isAvailable: {
|
|
46
|
+
path: '/module_api.ExecutableModuleService/IsAvailable',
|
|
47
|
+
requestStream: false,
|
|
48
|
+
responseStream: false,
|
|
49
|
+
requestType: google_protobuf_empty_pb.Empty,
|
|
50
|
+
responseType: google_protobuf_empty_pb.Empty,
|
|
51
|
+
requestSerialize: serialize_google_protobuf_Empty,
|
|
52
|
+
requestDeserialize: deserialize_google_protobuf_Empty,
|
|
53
|
+
responseSerialize: serialize_google_protobuf_Empty,
|
|
54
|
+
responseDeserialize: deserialize_google_protobuf_Empty,
|
|
55
|
+
},
|
|
56
|
+
// Runs the module's execute function
|
|
57
|
+
execute: {
|
|
58
|
+
path: '/module_api.ExecutableModuleService/Execute',
|
|
59
|
+
requestStream: false,
|
|
60
|
+
responseStream: false,
|
|
61
|
+
requestType: executable_module_service_pb.ExecuteArgs,
|
|
62
|
+
responseType: executable_module_service_pb.ExecuteResponse,
|
|
63
|
+
requestSerialize: serialize_module_api_ExecuteArgs,
|
|
64
|
+
requestDeserialize: deserialize_module_api_ExecuteArgs,
|
|
65
|
+
responseSerialize: serialize_module_api_ExecuteResponse,
|
|
66
|
+
responseDeserialize: deserialize_module_api_ExecuteResponse,
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
exports.ExecutableModuleServiceClient = grpc.makeGenericClientConstructor(ExecutableModuleServiceService);
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as grpcWeb from 'grpc-web';
|
|
2
|
+
|
|
3
|
+
import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb';
|
|
4
|
+
import * as executable_module_service_pb from './executable_module_service_pb';
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
export class ExecutableModuleServiceClient {
|
|
8
|
+
constructor (hostname: string,
|
|
9
|
+
credentials?: null | { [index: string]: string; },
|
|
10
|
+
options?: null | { [index: string]: any; });
|
|
11
|
+
|
|
12
|
+
isAvailable(
|
|
13
|
+
request: google_protobuf_empty_pb.Empty,
|
|
14
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
15
|
+
callback: (err: grpcWeb.RpcError,
|
|
16
|
+
response: google_protobuf_empty_pb.Empty) => void
|
|
17
|
+
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
|
18
|
+
|
|
19
|
+
execute(
|
|
20
|
+
request: executable_module_service_pb.ExecuteArgs,
|
|
21
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
22
|
+
callback: (err: grpcWeb.RpcError,
|
|
23
|
+
response: executable_module_service_pb.ExecuteResponse) => void
|
|
24
|
+
): grpcWeb.ClientReadableStream<executable_module_service_pb.ExecuteResponse>;
|
|
25
|
+
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export class ExecutableModuleServicePromiseClient {
|
|
29
|
+
constructor (hostname: string,
|
|
30
|
+
credentials?: null | { [index: string]: string; },
|
|
31
|
+
options?: null | { [index: string]: any; });
|
|
32
|
+
|
|
33
|
+
isAvailable(
|
|
34
|
+
request: google_protobuf_empty_pb.Empty,
|
|
35
|
+
metadata?: grpcWeb.Metadata
|
|
36
|
+
): Promise<google_protobuf_empty_pb.Empty>;
|
|
37
|
+
|
|
38
|
+
execute(
|
|
39
|
+
request: executable_module_service_pb.ExecuteArgs,
|
|
40
|
+
metadata?: grpcWeb.Metadata
|
|
41
|
+
): Promise<executable_module_service_pb.ExecuteResponse>;
|
|
42
|
+
|
|
43
|
+
}
|
|
44
|
+
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview gRPC-Web generated client stub for module_api
|
|
3
|
+
* @enhanceable
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
/* eslint-disable */
|
|
11
|
+
// @ts-nocheck
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
const grpc = {};
|
|
16
|
+
grpc.web = require('grpc-web');
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js')
|
|
20
|
+
const proto = {};
|
|
21
|
+
proto.module_api = require('./executable_module_service_pb.js');
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @param {string} hostname
|
|
25
|
+
* @param {?Object} credentials
|
|
26
|
+
* @param {?grpc.web.ClientOptions} options
|
|
27
|
+
* @constructor
|
|
28
|
+
* @struct
|
|
29
|
+
* @final
|
|
30
|
+
*/
|
|
31
|
+
proto.module_api.ExecutableModuleServiceClient =
|
|
32
|
+
function(hostname, credentials, options) {
|
|
33
|
+
if (!options) options = {};
|
|
34
|
+
options.format = 'text';
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* @private @const {!grpc.web.GrpcWebClientBase} The client
|
|
38
|
+
*/
|
|
39
|
+
this.client_ = new grpc.web.GrpcWebClientBase(options);
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @private @const {string} The hostname
|
|
43
|
+
*/
|
|
44
|
+
this.hostname_ = hostname;
|
|
45
|
+
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @param {string} hostname
|
|
51
|
+
* @param {?Object} credentials
|
|
52
|
+
* @param {?grpc.web.ClientOptions} options
|
|
53
|
+
* @constructor
|
|
54
|
+
* @struct
|
|
55
|
+
* @final
|
|
56
|
+
*/
|
|
57
|
+
proto.module_api.ExecutableModuleServicePromiseClient =
|
|
58
|
+
function(hostname, credentials, options) {
|
|
59
|
+
if (!options) options = {};
|
|
60
|
+
options.format = 'text';
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* @private @const {!grpc.web.GrpcWebClientBase} The client
|
|
64
|
+
*/
|
|
65
|
+
this.client_ = new grpc.web.GrpcWebClientBase(options);
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @private @const {string} The hostname
|
|
69
|
+
*/
|
|
70
|
+
this.hostname_ = hostname;
|
|
71
|
+
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @const
|
|
77
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
78
|
+
* !proto.google.protobuf.Empty,
|
|
79
|
+
* !proto.google.protobuf.Empty>}
|
|
80
|
+
*/
|
|
81
|
+
const methodDescriptor_ExecutableModuleService_IsAvailable = new grpc.web.MethodDescriptor(
|
|
82
|
+
'/module_api.ExecutableModuleService/IsAvailable',
|
|
83
|
+
grpc.web.MethodType.UNARY,
|
|
84
|
+
google_protobuf_empty_pb.Empty,
|
|
85
|
+
google_protobuf_empty_pb.Empty,
|
|
86
|
+
/**
|
|
87
|
+
* @param {!proto.google.protobuf.Empty} request
|
|
88
|
+
* @return {!Uint8Array}
|
|
89
|
+
*/
|
|
90
|
+
function(request) {
|
|
91
|
+
return request.serializeBinary();
|
|
92
|
+
},
|
|
93
|
+
google_protobuf_empty_pb.Empty.deserializeBinary
|
|
94
|
+
);
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* @param {!proto.google.protobuf.Empty} request The
|
|
99
|
+
* request proto
|
|
100
|
+
* @param {?Object<string, string>} metadata User defined
|
|
101
|
+
* call metadata
|
|
102
|
+
* @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)}
|
|
103
|
+
* callback The callback function(error, response)
|
|
104
|
+
* @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
|
|
105
|
+
* The XHR Node Readable Stream
|
|
106
|
+
*/
|
|
107
|
+
proto.module_api.ExecutableModuleServiceClient.prototype.isAvailable =
|
|
108
|
+
function(request, metadata, callback) {
|
|
109
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
110
|
+
'/module_api.ExecutableModuleService/IsAvailable',
|
|
111
|
+
request,
|
|
112
|
+
metadata || {},
|
|
113
|
+
methodDescriptor_ExecutableModuleService_IsAvailable,
|
|
114
|
+
callback);
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* @param {!proto.google.protobuf.Empty} request The
|
|
120
|
+
* request proto
|
|
121
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
122
|
+
* call metadata
|
|
123
|
+
* @return {!Promise<!proto.google.protobuf.Empty>}
|
|
124
|
+
* Promise that resolves to the response
|
|
125
|
+
*/
|
|
126
|
+
proto.module_api.ExecutableModuleServicePromiseClient.prototype.isAvailable =
|
|
127
|
+
function(request, metadata) {
|
|
128
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
129
|
+
'/module_api.ExecutableModuleService/IsAvailable',
|
|
130
|
+
request,
|
|
131
|
+
metadata || {},
|
|
132
|
+
methodDescriptor_ExecutableModuleService_IsAvailable);
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* @const
|
|
138
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
139
|
+
* !proto.module_api.ExecuteArgs,
|
|
140
|
+
* !proto.module_api.ExecuteResponse>}
|
|
141
|
+
*/
|
|
142
|
+
const methodDescriptor_ExecutableModuleService_Execute = new grpc.web.MethodDescriptor(
|
|
143
|
+
'/module_api.ExecutableModuleService/Execute',
|
|
144
|
+
grpc.web.MethodType.UNARY,
|
|
145
|
+
proto.module_api.ExecuteArgs,
|
|
146
|
+
proto.module_api.ExecuteResponse,
|
|
147
|
+
/**
|
|
148
|
+
* @param {!proto.module_api.ExecuteArgs} request
|
|
149
|
+
* @return {!Uint8Array}
|
|
150
|
+
*/
|
|
151
|
+
function(request) {
|
|
152
|
+
return request.serializeBinary();
|
|
153
|
+
},
|
|
154
|
+
proto.module_api.ExecuteResponse.deserializeBinary
|
|
155
|
+
);
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* @param {!proto.module_api.ExecuteArgs} request The
|
|
160
|
+
* request proto
|
|
161
|
+
* @param {?Object<string, string>} metadata User defined
|
|
162
|
+
* call metadata
|
|
163
|
+
* @param {function(?grpc.web.RpcError, ?proto.module_api.ExecuteResponse)}
|
|
164
|
+
* callback The callback function(error, response)
|
|
165
|
+
* @return {!grpc.web.ClientReadableStream<!proto.module_api.ExecuteResponse>|undefined}
|
|
166
|
+
* The XHR Node Readable Stream
|
|
167
|
+
*/
|
|
168
|
+
proto.module_api.ExecutableModuleServiceClient.prototype.execute =
|
|
169
|
+
function(request, metadata, callback) {
|
|
170
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
171
|
+
'/module_api.ExecutableModuleService/Execute',
|
|
172
|
+
request,
|
|
173
|
+
metadata || {},
|
|
174
|
+
methodDescriptor_ExecutableModuleService_Execute,
|
|
175
|
+
callback);
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* @param {!proto.module_api.ExecuteArgs} request The
|
|
181
|
+
* request proto
|
|
182
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
183
|
+
* call metadata
|
|
184
|
+
* @return {!Promise<!proto.module_api.ExecuteResponse>}
|
|
185
|
+
* Promise that resolves to the response
|
|
186
|
+
*/
|
|
187
|
+
proto.module_api.ExecutableModuleServicePromiseClient.prototype.execute =
|
|
188
|
+
function(request, metadata) {
|
|
189
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
190
|
+
'/module_api.ExecutableModuleService/Execute',
|
|
191
|
+
request,
|
|
192
|
+
metadata || {},
|
|
193
|
+
methodDescriptor_ExecutableModuleService_Execute);
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
module.exports = proto.module_api;
|
|
198
|
+
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as jspb from 'google-protobuf'
|
|
2
|
+
|
|
3
|
+
import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb';
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class ExecuteArgs extends jspb.Message {
|
|
7
|
+
getParamsJson(): string;
|
|
8
|
+
setParamsJson(value: string): ExecuteArgs;
|
|
9
|
+
|
|
10
|
+
serializeBinary(): Uint8Array;
|
|
11
|
+
toObject(includeInstance?: boolean): ExecuteArgs.AsObject;
|
|
12
|
+
static toObject(includeInstance: boolean, msg: ExecuteArgs): ExecuteArgs.AsObject;
|
|
13
|
+
static serializeBinaryToWriter(message: ExecuteArgs, writer: jspb.BinaryWriter): void;
|
|
14
|
+
static deserializeBinary(bytes: Uint8Array): ExecuteArgs;
|
|
15
|
+
static deserializeBinaryFromReader(message: ExecuteArgs, reader: jspb.BinaryReader): ExecuteArgs;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export namespace ExecuteArgs {
|
|
19
|
+
export type AsObject = {
|
|
20
|
+
paramsJson: string,
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export class ExecuteResponse extends jspb.Message {
|
|
25
|
+
getResponseJson(): string;
|
|
26
|
+
setResponseJson(value: string): ExecuteResponse;
|
|
27
|
+
|
|
28
|
+
serializeBinary(): Uint8Array;
|
|
29
|
+
toObject(includeInstance?: boolean): ExecuteResponse.AsObject;
|
|
30
|
+
static toObject(includeInstance: boolean, msg: ExecuteResponse): ExecuteResponse.AsObject;
|
|
31
|
+
static serializeBinaryToWriter(message: ExecuteResponse, writer: jspb.BinaryWriter): void;
|
|
32
|
+
static deserializeBinary(bytes: Uint8Array): ExecuteResponse;
|
|
33
|
+
static deserializeBinaryFromReader(message: ExecuteResponse, reader: jspb.BinaryReader): ExecuteResponse;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export namespace ExecuteResponse {
|
|
37
|
+
export type AsObject = {
|
|
38
|
+
responseJson: string,
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|