kurtosis-sdk 0.51.7 → 0.51.8
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 +10 -0
- package/build/core/kurtosis_core_rpc_api_bindings/api_container_service_grpc_pb.js +69 -0
- package/build/core/kurtosis_core_rpc_api_bindings/api_container_service_grpc_web_pb.d.ts +24 -0
- package/build/core/kurtosis_core_rpc_api_bindings/api_container_service_grpc_web_pb.js +131 -3
- package/build/core/kurtosis_core_rpc_api_bindings/api_container_service_pb.d.ts +181 -0
- package/build/core/kurtosis_core_rpc_api_bindings/api_container_service_pb.js +1530 -122
- package/build/core/kurtosis_core_rpc_api_bindings/executable_module_service_grpc_web_pb.js +7 -3
- package/build/core/lib/enclaves/enclave_context.d.ts +1 -1
- package/build/core/lib/enclaves/enclave_context.js +2 -1
- package/build/engine/kurtosis_engine_rpc_api_bindings/engine_service_grpc_web_pb.js +7 -3
- package/build/kurtosis_version/kurtosis_version.js +1 -1
- package/package.json +1 -1
|
@@ -19,6 +19,8 @@ interface IApiContainerServiceService extends grpc.ServiceDefinition<grpc.Untype
|
|
|
19
19
|
removeService: grpc.MethodDefinition<api_container_service_pb.RemoveServiceArgs, api_container_service_pb.RemoveServiceResponse>;
|
|
20
20
|
repartition: grpc.MethodDefinition<api_container_service_pb.RepartitionArgs, google_protobuf_empty_pb.Empty>;
|
|
21
21
|
execCommand: grpc.MethodDefinition<api_container_service_pb.ExecCommandArgs, api_container_service_pb.ExecCommandResponse>;
|
|
22
|
+
defineFact: grpc.MethodDefinition<api_container_service_pb.DefineFactArgs, api_container_service_pb.DefineFactResponse>;
|
|
23
|
+
getFactValues: grpc.MethodDefinition<api_container_service_pb.GetFactValuesArgs, api_container_service_pb.GetFactValuesResponse>;
|
|
22
24
|
pauseService: grpc.MethodDefinition<api_container_service_pb.PauseServiceArgs, google_protobuf_empty_pb.Empty>;
|
|
23
25
|
unpauseService: grpc.MethodDefinition<api_container_service_pb.UnpauseServiceArgs, google_protobuf_empty_pb.Empty>;
|
|
24
26
|
waitForHttpGetEndpointAvailability: grpc.MethodDefinition<api_container_service_pb.WaitForHttpGetEndpointAvailabilityArgs, google_protobuf_empty_pb.Empty>;
|
|
@@ -44,6 +46,8 @@ export interface IApiContainerServiceServer extends grpc.UntypedServiceImplement
|
|
|
44
46
|
removeService: grpc.handleUnaryCall<api_container_service_pb.RemoveServiceArgs, api_container_service_pb.RemoveServiceResponse>;
|
|
45
47
|
repartition: grpc.handleUnaryCall<api_container_service_pb.RepartitionArgs, google_protobuf_empty_pb.Empty>;
|
|
46
48
|
execCommand: grpc.handleUnaryCall<api_container_service_pb.ExecCommandArgs, api_container_service_pb.ExecCommandResponse>;
|
|
49
|
+
defineFact: grpc.handleUnaryCall<api_container_service_pb.DefineFactArgs, api_container_service_pb.DefineFactResponse>;
|
|
50
|
+
getFactValues: grpc.handleUnaryCall<api_container_service_pb.GetFactValuesArgs, api_container_service_pb.GetFactValuesResponse>;
|
|
47
51
|
pauseService: grpc.handleUnaryCall<api_container_service_pb.PauseServiceArgs, google_protobuf_empty_pb.Empty>;
|
|
48
52
|
unpauseService: grpc.handleUnaryCall<api_container_service_pb.UnpauseServiceArgs, google_protobuf_empty_pb.Empty>;
|
|
49
53
|
waitForHttpGetEndpointAvailability: grpc.handleUnaryCall<api_container_service_pb.WaitForHttpGetEndpointAvailabilityArgs, google_protobuf_empty_pb.Empty>;
|
|
@@ -90,6 +94,12 @@ export class ApiContainerServiceClient extends grpc.Client {
|
|
|
90
94
|
execCommand(argument: api_container_service_pb.ExecCommandArgs, callback: grpc.requestCallback<api_container_service_pb.ExecCommandResponse>): grpc.ClientUnaryCall;
|
|
91
95
|
execCommand(argument: api_container_service_pb.ExecCommandArgs, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_container_service_pb.ExecCommandResponse>): grpc.ClientUnaryCall;
|
|
92
96
|
execCommand(argument: api_container_service_pb.ExecCommandArgs, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_container_service_pb.ExecCommandResponse>): grpc.ClientUnaryCall;
|
|
97
|
+
defineFact(argument: api_container_service_pb.DefineFactArgs, callback: grpc.requestCallback<api_container_service_pb.DefineFactResponse>): grpc.ClientUnaryCall;
|
|
98
|
+
defineFact(argument: api_container_service_pb.DefineFactArgs, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_container_service_pb.DefineFactResponse>): grpc.ClientUnaryCall;
|
|
99
|
+
defineFact(argument: api_container_service_pb.DefineFactArgs, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_container_service_pb.DefineFactResponse>): grpc.ClientUnaryCall;
|
|
100
|
+
getFactValues(argument: api_container_service_pb.GetFactValuesArgs, callback: grpc.requestCallback<api_container_service_pb.GetFactValuesResponse>): grpc.ClientUnaryCall;
|
|
101
|
+
getFactValues(argument: api_container_service_pb.GetFactValuesArgs, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_container_service_pb.GetFactValuesResponse>): grpc.ClientUnaryCall;
|
|
102
|
+
getFactValues(argument: api_container_service_pb.GetFactValuesArgs, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_container_service_pb.GetFactValuesResponse>): grpc.ClientUnaryCall;
|
|
93
103
|
pauseService(argument: api_container_service_pb.PauseServiceArgs, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
|
|
94
104
|
pauseService(argument: api_container_service_pb.PauseServiceArgs, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
|
|
95
105
|
pauseService(argument: api_container_service_pb.PauseServiceArgs, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<google_protobuf_empty_pb.Empty>): grpc.ClientUnaryCall;
|
|
@@ -5,6 +5,29 @@ var grpc = require('@grpc/grpc-js');
|
|
|
5
5
|
var api_container_service_pb = require('./api_container_service_pb.js');
|
|
6
6
|
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
|
|
7
7
|
var google_protobuf_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js');
|
|
8
|
+
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
9
|
+
|
|
10
|
+
function serialize_api_container_api_DefineFactArgs(arg) {
|
|
11
|
+
if (!(arg instanceof api_container_service_pb.DefineFactArgs)) {
|
|
12
|
+
throw new Error('Expected argument of type api_container_api.DefineFactArgs');
|
|
13
|
+
}
|
|
14
|
+
return Buffer.from(arg.serializeBinary());
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function deserialize_api_container_api_DefineFactArgs(buffer_arg) {
|
|
18
|
+
return api_container_service_pb.DefineFactArgs.deserializeBinary(new Uint8Array(buffer_arg));
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function serialize_api_container_api_DefineFactResponse(arg) {
|
|
22
|
+
if (!(arg instanceof api_container_service_pb.DefineFactResponse)) {
|
|
23
|
+
throw new Error('Expected argument of type api_container_api.DefineFactResponse');
|
|
24
|
+
}
|
|
25
|
+
return Buffer.from(arg.serializeBinary());
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function deserialize_api_container_api_DefineFactResponse(buffer_arg) {
|
|
29
|
+
return api_container_service_pb.DefineFactResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
30
|
+
}
|
|
8
31
|
|
|
9
32
|
function serialize_api_container_api_DownloadFilesArtifactArgs(arg) {
|
|
10
33
|
if (!(arg instanceof api_container_service_pb.DownloadFilesArtifactArgs)) {
|
|
@@ -105,6 +128,28 @@ function deserialize_api_container_api_ExecuteStartosisScriptArgs(buffer_arg) {
|
|
|
105
128
|
return api_container_service_pb.ExecuteStartosisScriptArgs.deserializeBinary(new Uint8Array(buffer_arg));
|
|
106
129
|
}
|
|
107
130
|
|
|
131
|
+
function serialize_api_container_api_GetFactValuesArgs(arg) {
|
|
132
|
+
if (!(arg instanceof api_container_service_pb.GetFactValuesArgs)) {
|
|
133
|
+
throw new Error('Expected argument of type api_container_api.GetFactValuesArgs');
|
|
134
|
+
}
|
|
135
|
+
return Buffer.from(arg.serializeBinary());
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
function deserialize_api_container_api_GetFactValuesArgs(buffer_arg) {
|
|
139
|
+
return api_container_service_pb.GetFactValuesArgs.deserializeBinary(new Uint8Array(buffer_arg));
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
function serialize_api_container_api_GetFactValuesResponse(arg) {
|
|
143
|
+
if (!(arg instanceof api_container_service_pb.GetFactValuesResponse)) {
|
|
144
|
+
throw new Error('Expected argument of type api_container_api.GetFactValuesResponse');
|
|
145
|
+
}
|
|
146
|
+
return Buffer.from(arg.serializeBinary());
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
function deserialize_api_container_api_GetFactValuesResponse(buffer_arg) {
|
|
150
|
+
return api_container_service_pb.GetFactValuesResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
151
|
+
}
|
|
152
|
+
|
|
108
153
|
function serialize_api_container_api_GetModulesArgs(arg) {
|
|
109
154
|
if (!(arg instanceof api_container_service_pb.GetModulesArgs)) {
|
|
110
155
|
throw new Error('Expected argument of type api_container_api.GetModulesArgs');
|
|
@@ -525,6 +570,30 @@ execCommand: {
|
|
|
525
570
|
responseSerialize: serialize_api_container_api_ExecCommandResponse,
|
|
526
571
|
responseDeserialize: deserialize_api_container_api_ExecCommandResponse,
|
|
527
572
|
},
|
|
573
|
+
// Define fact
|
|
574
|
+
defineFact: {
|
|
575
|
+
path: '/api_container_api.ApiContainerService/DefineFact',
|
|
576
|
+
requestStream: false,
|
|
577
|
+
responseStream: false,
|
|
578
|
+
requestType: api_container_service_pb.DefineFactArgs,
|
|
579
|
+
responseType: api_container_service_pb.DefineFactResponse,
|
|
580
|
+
requestSerialize: serialize_api_container_api_DefineFactArgs,
|
|
581
|
+
requestDeserialize: deserialize_api_container_api_DefineFactArgs,
|
|
582
|
+
responseSerialize: serialize_api_container_api_DefineFactResponse,
|
|
583
|
+
responseDeserialize: deserialize_api_container_api_DefineFactResponse,
|
|
584
|
+
},
|
|
585
|
+
// Get a list of values of a fact
|
|
586
|
+
getFactValues: {
|
|
587
|
+
path: '/api_container_api.ApiContainerService/GetFactValues',
|
|
588
|
+
requestStream: false,
|
|
589
|
+
responseStream: false,
|
|
590
|
+
requestType: api_container_service_pb.GetFactValuesArgs,
|
|
591
|
+
responseType: api_container_service_pb.GetFactValuesResponse,
|
|
592
|
+
requestSerialize: serialize_api_container_api_GetFactValuesArgs,
|
|
593
|
+
requestDeserialize: deserialize_api_container_api_GetFactValuesArgs,
|
|
594
|
+
responseSerialize: serialize_api_container_api_GetFactValuesResponse,
|
|
595
|
+
responseDeserialize: deserialize_api_container_api_GetFactValuesResponse,
|
|
596
|
+
},
|
|
528
597
|
// Pauses all processes running in the service container
|
|
529
598
|
pauseService: {
|
|
530
599
|
path: '/api_container_api.ApiContainerService/PauseService',
|
|
@@ -86,6 +86,20 @@ export class ApiContainerServiceClient {
|
|
|
86
86
|
response: api_container_service_pb.ExecCommandResponse) => void
|
|
87
87
|
): grpcWeb.ClientReadableStream<api_container_service_pb.ExecCommandResponse>;
|
|
88
88
|
|
|
89
|
+
defineFact(
|
|
90
|
+
request: api_container_service_pb.DefineFactArgs,
|
|
91
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
92
|
+
callback: (err: grpcWeb.RpcError,
|
|
93
|
+
response: api_container_service_pb.DefineFactResponse) => void
|
|
94
|
+
): grpcWeb.ClientReadableStream<api_container_service_pb.DefineFactResponse>;
|
|
95
|
+
|
|
96
|
+
getFactValues(
|
|
97
|
+
request: api_container_service_pb.GetFactValuesArgs,
|
|
98
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
99
|
+
callback: (err: grpcWeb.RpcError,
|
|
100
|
+
response: api_container_service_pb.GetFactValuesResponse) => void
|
|
101
|
+
): grpcWeb.ClientReadableStream<api_container_service_pb.GetFactValuesResponse>;
|
|
102
|
+
|
|
89
103
|
pauseService(
|
|
90
104
|
request: api_container_service_pb.PauseServiceArgs,
|
|
91
105
|
metadata: grpcWeb.Metadata | undefined,
|
|
@@ -211,6 +225,16 @@ export class ApiContainerServicePromiseClient {
|
|
|
211
225
|
metadata?: grpcWeb.Metadata
|
|
212
226
|
): Promise<api_container_service_pb.ExecCommandResponse>;
|
|
213
227
|
|
|
228
|
+
defineFact(
|
|
229
|
+
request: api_container_service_pb.DefineFactArgs,
|
|
230
|
+
metadata?: grpcWeb.Metadata
|
|
231
|
+
): Promise<api_container_service_pb.DefineFactResponse>;
|
|
232
|
+
|
|
233
|
+
getFactValues(
|
|
234
|
+
request: api_container_service_pb.GetFactValuesArgs,
|
|
235
|
+
metadata?: grpcWeb.Metadata
|
|
236
|
+
): Promise<api_container_service_pb.GetFactValuesResponse>;
|
|
237
|
+
|
|
214
238
|
pauseService(
|
|
215
239
|
request: api_container_service_pb.PauseServiceArgs,
|
|
216
240
|
metadata?: grpcWeb.Metadata
|
|
@@ -4,7 +4,11 @@
|
|
|
4
4
|
* @public
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
//
|
|
7
|
+
// Code generated by protoc-gen-grpc-web. DO NOT EDIT.
|
|
8
|
+
// versions:
|
|
9
|
+
// protoc-gen-grpc-web v1.4.2
|
|
10
|
+
// protoc v3.15.6
|
|
11
|
+
// source: api_container_service.proto
|
|
8
12
|
|
|
9
13
|
|
|
10
14
|
/* eslint-disable */
|
|
@@ -19,6 +23,8 @@ grpc.web = require('grpc-web');
|
|
|
19
23
|
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js')
|
|
20
24
|
|
|
21
25
|
var google_protobuf_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js')
|
|
26
|
+
|
|
27
|
+
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js')
|
|
22
28
|
const proto = {};
|
|
23
29
|
proto.api_container_api = require('./api_container_service_pb.js');
|
|
24
30
|
|
|
@@ -43,7 +49,7 @@ proto.api_container_api.ApiContainerServiceClient =
|
|
|
43
49
|
/**
|
|
44
50
|
* @private @const {string} The hostname
|
|
45
51
|
*/
|
|
46
|
-
this.hostname_ = hostname;
|
|
52
|
+
this.hostname_ = hostname.replace(/\/+$/, '');
|
|
47
53
|
|
|
48
54
|
};
|
|
49
55
|
|
|
@@ -69,7 +75,7 @@ proto.api_container_api.ApiContainerServicePromiseClient =
|
|
|
69
75
|
/**
|
|
70
76
|
* @private @const {string} The hostname
|
|
71
77
|
*/
|
|
72
|
-
this.hostname_ = hostname;
|
|
78
|
+
this.hostname_ = hostname.replace(/\/+$/, '');
|
|
73
79
|
|
|
74
80
|
};
|
|
75
81
|
|
|
@@ -745,6 +751,128 @@ proto.api_container_api.ApiContainerServicePromiseClient.prototype.execCommand =
|
|
|
745
751
|
};
|
|
746
752
|
|
|
747
753
|
|
|
754
|
+
/**
|
|
755
|
+
* @const
|
|
756
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
757
|
+
* !proto.api_container_api.DefineFactArgs,
|
|
758
|
+
* !proto.api_container_api.DefineFactResponse>}
|
|
759
|
+
*/
|
|
760
|
+
const methodDescriptor_ApiContainerService_DefineFact = new grpc.web.MethodDescriptor(
|
|
761
|
+
'/api_container_api.ApiContainerService/DefineFact',
|
|
762
|
+
grpc.web.MethodType.UNARY,
|
|
763
|
+
proto.api_container_api.DefineFactArgs,
|
|
764
|
+
proto.api_container_api.DefineFactResponse,
|
|
765
|
+
/**
|
|
766
|
+
* @param {!proto.api_container_api.DefineFactArgs} request
|
|
767
|
+
* @return {!Uint8Array}
|
|
768
|
+
*/
|
|
769
|
+
function(request) {
|
|
770
|
+
return request.serializeBinary();
|
|
771
|
+
},
|
|
772
|
+
proto.api_container_api.DefineFactResponse.deserializeBinary
|
|
773
|
+
);
|
|
774
|
+
|
|
775
|
+
|
|
776
|
+
/**
|
|
777
|
+
* @param {!proto.api_container_api.DefineFactArgs} request The
|
|
778
|
+
* request proto
|
|
779
|
+
* @param {?Object<string, string>} metadata User defined
|
|
780
|
+
* call metadata
|
|
781
|
+
* @param {function(?grpc.web.RpcError, ?proto.api_container_api.DefineFactResponse)}
|
|
782
|
+
* callback The callback function(error, response)
|
|
783
|
+
* @return {!grpc.web.ClientReadableStream<!proto.api_container_api.DefineFactResponse>|undefined}
|
|
784
|
+
* The XHR Node Readable Stream
|
|
785
|
+
*/
|
|
786
|
+
proto.api_container_api.ApiContainerServiceClient.prototype.defineFact =
|
|
787
|
+
function(request, metadata, callback) {
|
|
788
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
789
|
+
'/api_container_api.ApiContainerService/DefineFact',
|
|
790
|
+
request,
|
|
791
|
+
metadata || {},
|
|
792
|
+
methodDescriptor_ApiContainerService_DefineFact,
|
|
793
|
+
callback);
|
|
794
|
+
};
|
|
795
|
+
|
|
796
|
+
|
|
797
|
+
/**
|
|
798
|
+
* @param {!proto.api_container_api.DefineFactArgs} request The
|
|
799
|
+
* request proto
|
|
800
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
801
|
+
* call metadata
|
|
802
|
+
* @return {!Promise<!proto.api_container_api.DefineFactResponse>}
|
|
803
|
+
* Promise that resolves to the response
|
|
804
|
+
*/
|
|
805
|
+
proto.api_container_api.ApiContainerServicePromiseClient.prototype.defineFact =
|
|
806
|
+
function(request, metadata) {
|
|
807
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
808
|
+
'/api_container_api.ApiContainerService/DefineFact',
|
|
809
|
+
request,
|
|
810
|
+
metadata || {},
|
|
811
|
+
methodDescriptor_ApiContainerService_DefineFact);
|
|
812
|
+
};
|
|
813
|
+
|
|
814
|
+
|
|
815
|
+
/**
|
|
816
|
+
* @const
|
|
817
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
818
|
+
* !proto.api_container_api.GetFactValuesArgs,
|
|
819
|
+
* !proto.api_container_api.GetFactValuesResponse>}
|
|
820
|
+
*/
|
|
821
|
+
const methodDescriptor_ApiContainerService_GetFactValues = new grpc.web.MethodDescriptor(
|
|
822
|
+
'/api_container_api.ApiContainerService/GetFactValues',
|
|
823
|
+
grpc.web.MethodType.UNARY,
|
|
824
|
+
proto.api_container_api.GetFactValuesArgs,
|
|
825
|
+
proto.api_container_api.GetFactValuesResponse,
|
|
826
|
+
/**
|
|
827
|
+
* @param {!proto.api_container_api.GetFactValuesArgs} request
|
|
828
|
+
* @return {!Uint8Array}
|
|
829
|
+
*/
|
|
830
|
+
function(request) {
|
|
831
|
+
return request.serializeBinary();
|
|
832
|
+
},
|
|
833
|
+
proto.api_container_api.GetFactValuesResponse.deserializeBinary
|
|
834
|
+
);
|
|
835
|
+
|
|
836
|
+
|
|
837
|
+
/**
|
|
838
|
+
* @param {!proto.api_container_api.GetFactValuesArgs} request The
|
|
839
|
+
* request proto
|
|
840
|
+
* @param {?Object<string, string>} metadata User defined
|
|
841
|
+
* call metadata
|
|
842
|
+
* @param {function(?grpc.web.RpcError, ?proto.api_container_api.GetFactValuesResponse)}
|
|
843
|
+
* callback The callback function(error, response)
|
|
844
|
+
* @return {!grpc.web.ClientReadableStream<!proto.api_container_api.GetFactValuesResponse>|undefined}
|
|
845
|
+
* The XHR Node Readable Stream
|
|
846
|
+
*/
|
|
847
|
+
proto.api_container_api.ApiContainerServiceClient.prototype.getFactValues =
|
|
848
|
+
function(request, metadata, callback) {
|
|
849
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
850
|
+
'/api_container_api.ApiContainerService/GetFactValues',
|
|
851
|
+
request,
|
|
852
|
+
metadata || {},
|
|
853
|
+
methodDescriptor_ApiContainerService_GetFactValues,
|
|
854
|
+
callback);
|
|
855
|
+
};
|
|
856
|
+
|
|
857
|
+
|
|
858
|
+
/**
|
|
859
|
+
* @param {!proto.api_container_api.GetFactValuesArgs} request The
|
|
860
|
+
* request proto
|
|
861
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
862
|
+
* call metadata
|
|
863
|
+
* @return {!Promise<!proto.api_container_api.GetFactValuesResponse>}
|
|
864
|
+
* Promise that resolves to the response
|
|
865
|
+
*/
|
|
866
|
+
proto.api_container_api.ApiContainerServicePromiseClient.prototype.getFactValues =
|
|
867
|
+
function(request, metadata) {
|
|
868
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
869
|
+
'/api_container_api.ApiContainerService/GetFactValues',
|
|
870
|
+
request,
|
|
871
|
+
metadata || {},
|
|
872
|
+
methodDescriptor_ApiContainerService_GetFactValues);
|
|
873
|
+
};
|
|
874
|
+
|
|
875
|
+
|
|
748
876
|
/**
|
|
749
877
|
* @const
|
|
750
878
|
* @type {!grpc.web.MethodDescriptor<
|
|
@@ -2,6 +2,7 @@ import * as jspb from 'google-protobuf'
|
|
|
2
2
|
|
|
3
3
|
import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb';
|
|
4
4
|
import * as google_protobuf_duration_pb from 'google-protobuf/google/protobuf/duration_pb';
|
|
5
|
+
import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb';
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
export class Port extends jspb.Message {
|
|
@@ -985,10 +986,108 @@ export namespace StartosisValidationError {
|
|
|
985
986
|
}
|
|
986
987
|
}
|
|
987
988
|
|
|
989
|
+
export class DefineFactArgs extends jspb.Message {
|
|
990
|
+
getFactRecipe(): FactRecipe | undefined;
|
|
991
|
+
setFactRecipe(value?: FactRecipe): DefineFactArgs;
|
|
992
|
+
hasFactRecipe(): boolean;
|
|
993
|
+
clearFactRecipe(): DefineFactArgs;
|
|
994
|
+
|
|
995
|
+
serializeBinary(): Uint8Array;
|
|
996
|
+
toObject(includeInstance?: boolean): DefineFactArgs.AsObject;
|
|
997
|
+
static toObject(includeInstance: boolean, msg: DefineFactArgs): DefineFactArgs.AsObject;
|
|
998
|
+
static serializeBinaryToWriter(message: DefineFactArgs, writer: jspb.BinaryWriter): void;
|
|
999
|
+
static deserializeBinary(bytes: Uint8Array): DefineFactArgs;
|
|
1000
|
+
static deserializeBinaryFromReader(message: DefineFactArgs, reader: jspb.BinaryReader): DefineFactArgs;
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
export namespace DefineFactArgs {
|
|
1004
|
+
export type AsObject = {
|
|
1005
|
+
factRecipe?: FactRecipe.AsObject,
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
export class DefineFactResponse extends jspb.Message {
|
|
1010
|
+
serializeBinary(): Uint8Array;
|
|
1011
|
+
toObject(includeInstance?: boolean): DefineFactResponse.AsObject;
|
|
1012
|
+
static toObject(includeInstance: boolean, msg: DefineFactResponse): DefineFactResponse.AsObject;
|
|
1013
|
+
static serializeBinaryToWriter(message: DefineFactResponse, writer: jspb.BinaryWriter): void;
|
|
1014
|
+
static deserializeBinary(bytes: Uint8Array): DefineFactResponse;
|
|
1015
|
+
static deserializeBinaryFromReader(message: DefineFactResponse, reader: jspb.BinaryReader): DefineFactResponse;
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
export namespace DefineFactResponse {
|
|
1019
|
+
export type AsObject = {
|
|
1020
|
+
}
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
export class GetFactValuesArgs extends jspb.Message {
|
|
1024
|
+
getServiceId(): string;
|
|
1025
|
+
setServiceId(value: string): GetFactValuesArgs;
|
|
1026
|
+
|
|
1027
|
+
getFactName(): string;
|
|
1028
|
+
setFactName(value: string): GetFactValuesArgs;
|
|
1029
|
+
|
|
1030
|
+
getStartingFrom(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
1031
|
+
setStartingFrom(value?: google_protobuf_timestamp_pb.Timestamp): GetFactValuesArgs;
|
|
1032
|
+
hasStartingFrom(): boolean;
|
|
1033
|
+
clearStartingFrom(): GetFactValuesArgs;
|
|
1034
|
+
|
|
1035
|
+
serializeBinary(): Uint8Array;
|
|
1036
|
+
toObject(includeInstance?: boolean): GetFactValuesArgs.AsObject;
|
|
1037
|
+
static toObject(includeInstance: boolean, msg: GetFactValuesArgs): GetFactValuesArgs.AsObject;
|
|
1038
|
+
static serializeBinaryToWriter(message: GetFactValuesArgs, writer: jspb.BinaryWriter): void;
|
|
1039
|
+
static deserializeBinary(bytes: Uint8Array): GetFactValuesArgs;
|
|
1040
|
+
static deserializeBinaryFromReader(message: GetFactValuesArgs, reader: jspb.BinaryReader): GetFactValuesArgs;
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
export namespace GetFactValuesArgs {
|
|
1044
|
+
export type AsObject = {
|
|
1045
|
+
serviceId: string,
|
|
1046
|
+
factName: string,
|
|
1047
|
+
startingFrom?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
export enum StartingFromCase {
|
|
1051
|
+
_STARTING_FROM_NOT_SET = 0,
|
|
1052
|
+
STARTING_FROM = 3,
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1056
|
+
export class GetFactValuesResponse extends jspb.Message {
|
|
1057
|
+
getFactValuesList(): Array<FactValue>;
|
|
1058
|
+
setFactValuesList(value: Array<FactValue>): GetFactValuesResponse;
|
|
1059
|
+
clearFactValuesList(): GetFactValuesResponse;
|
|
1060
|
+
addFactValues(value?: FactValue, index?: number): FactValue;
|
|
1061
|
+
|
|
1062
|
+
getLastTimestampFromPage(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
1063
|
+
setLastTimestampFromPage(value?: google_protobuf_timestamp_pb.Timestamp): GetFactValuesResponse;
|
|
1064
|
+
hasLastTimestampFromPage(): boolean;
|
|
1065
|
+
clearLastTimestampFromPage(): GetFactValuesResponse;
|
|
1066
|
+
|
|
1067
|
+
serializeBinary(): Uint8Array;
|
|
1068
|
+
toObject(includeInstance?: boolean): GetFactValuesResponse.AsObject;
|
|
1069
|
+
static toObject(includeInstance: boolean, msg: GetFactValuesResponse): GetFactValuesResponse.AsObject;
|
|
1070
|
+
static serializeBinaryToWriter(message: GetFactValuesResponse, writer: jspb.BinaryWriter): void;
|
|
1071
|
+
static deserializeBinary(bytes: Uint8Array): GetFactValuesResponse;
|
|
1072
|
+
static deserializeBinaryFromReader(message: GetFactValuesResponse, reader: jspb.BinaryReader): GetFactValuesResponse;
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
export namespace GetFactValuesResponse {
|
|
1076
|
+
export type AsObject = {
|
|
1077
|
+
factValuesList: Array<FactValue.AsObject>,
|
|
1078
|
+
lastTimestampFromPage?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
|
|
988
1082
|
export class FactValue extends jspb.Message {
|
|
989
1083
|
getStringValue(): string;
|
|
990
1084
|
setStringValue(value: string): FactValue;
|
|
991
1085
|
|
|
1086
|
+
getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
1087
|
+
setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): FactValue;
|
|
1088
|
+
hasUpdatedAt(): boolean;
|
|
1089
|
+
clearUpdatedAt(): FactValue;
|
|
1090
|
+
|
|
992
1091
|
getFactValueCase(): FactValue.FactValueCase;
|
|
993
1092
|
|
|
994
1093
|
serializeBinary(): Uint8Array;
|
|
@@ -1002,6 +1101,7 @@ export class FactValue extends jspb.Message {
|
|
|
1002
1101
|
export namespace FactValue {
|
|
1003
1102
|
export type AsObject = {
|
|
1004
1103
|
stringValue: string,
|
|
1104
|
+
updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
1005
1105
|
}
|
|
1006
1106
|
|
|
1007
1107
|
export enum FactValueCase {
|
|
@@ -1030,6 +1130,60 @@ export namespace ConstantFactRecipe {
|
|
|
1030
1130
|
}
|
|
1031
1131
|
}
|
|
1032
1132
|
|
|
1133
|
+
export class ExecFactRecipe extends jspb.Message {
|
|
1134
|
+
getCmdArgsList(): Array<string>;
|
|
1135
|
+
setCmdArgsList(value: Array<string>): ExecFactRecipe;
|
|
1136
|
+
clearCmdArgsList(): ExecFactRecipe;
|
|
1137
|
+
addCmdArgs(value: string, index?: number): ExecFactRecipe;
|
|
1138
|
+
|
|
1139
|
+
serializeBinary(): Uint8Array;
|
|
1140
|
+
toObject(includeInstance?: boolean): ExecFactRecipe.AsObject;
|
|
1141
|
+
static toObject(includeInstance: boolean, msg: ExecFactRecipe): ExecFactRecipe.AsObject;
|
|
1142
|
+
static serializeBinaryToWriter(message: ExecFactRecipe, writer: jspb.BinaryWriter): void;
|
|
1143
|
+
static deserializeBinary(bytes: Uint8Array): ExecFactRecipe;
|
|
1144
|
+
static deserializeBinaryFromReader(message: ExecFactRecipe, reader: jspb.BinaryReader): ExecFactRecipe;
|
|
1145
|
+
}
|
|
1146
|
+
|
|
1147
|
+
export namespace ExecFactRecipe {
|
|
1148
|
+
export type AsObject = {
|
|
1149
|
+
cmdArgsList: Array<string>,
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
export class HttpRequestFactRecipe extends jspb.Message {
|
|
1154
|
+
getPortId(): string;
|
|
1155
|
+
setPortId(value: string): HttpRequestFactRecipe;
|
|
1156
|
+
|
|
1157
|
+
getEndpoint(): string;
|
|
1158
|
+
setEndpoint(value: string): HttpRequestFactRecipe;
|
|
1159
|
+
|
|
1160
|
+
getMethod(): HttpRequestMethod;
|
|
1161
|
+
setMethod(value: HttpRequestMethod): HttpRequestFactRecipe;
|
|
1162
|
+
|
|
1163
|
+
getContentType(): string;
|
|
1164
|
+
setContentType(value: string): HttpRequestFactRecipe;
|
|
1165
|
+
|
|
1166
|
+
getBody(): string;
|
|
1167
|
+
setBody(value: string): HttpRequestFactRecipe;
|
|
1168
|
+
|
|
1169
|
+
serializeBinary(): Uint8Array;
|
|
1170
|
+
toObject(includeInstance?: boolean): HttpRequestFactRecipe.AsObject;
|
|
1171
|
+
static toObject(includeInstance: boolean, msg: HttpRequestFactRecipe): HttpRequestFactRecipe.AsObject;
|
|
1172
|
+
static serializeBinaryToWriter(message: HttpRequestFactRecipe, writer: jspb.BinaryWriter): void;
|
|
1173
|
+
static deserializeBinary(bytes: Uint8Array): HttpRequestFactRecipe;
|
|
1174
|
+
static deserializeBinaryFromReader(message: HttpRequestFactRecipe, reader: jspb.BinaryReader): HttpRequestFactRecipe;
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
export namespace HttpRequestFactRecipe {
|
|
1178
|
+
export type AsObject = {
|
|
1179
|
+
portId: string,
|
|
1180
|
+
endpoint: string,
|
|
1181
|
+
method: HttpRequestMethod,
|
|
1182
|
+
contentType: string,
|
|
1183
|
+
body: string,
|
|
1184
|
+
}
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1033
1187
|
export class FactRecipe extends jspb.Message {
|
|
1034
1188
|
getServiceId(): string;
|
|
1035
1189
|
setServiceId(value: string): FactRecipe;
|
|
@@ -1042,6 +1196,16 @@ export class FactRecipe extends jspb.Message {
|
|
|
1042
1196
|
hasConstantFact(): boolean;
|
|
1043
1197
|
clearConstantFact(): FactRecipe;
|
|
1044
1198
|
|
|
1199
|
+
getExecFact(): ExecFactRecipe | undefined;
|
|
1200
|
+
setExecFact(value?: ExecFactRecipe): FactRecipe;
|
|
1201
|
+
hasExecFact(): boolean;
|
|
1202
|
+
clearExecFact(): FactRecipe;
|
|
1203
|
+
|
|
1204
|
+
getHttpRequestFact(): HttpRequestFactRecipe | undefined;
|
|
1205
|
+
setHttpRequestFact(value?: HttpRequestFactRecipe): FactRecipe;
|
|
1206
|
+
hasHttpRequestFact(): boolean;
|
|
1207
|
+
clearHttpRequestFact(): FactRecipe;
|
|
1208
|
+
|
|
1045
1209
|
getRefreshInterval(): google_protobuf_duration_pb.Duration | undefined;
|
|
1046
1210
|
setRefreshInterval(value?: google_protobuf_duration_pb.Duration): FactRecipe;
|
|
1047
1211
|
hasRefreshInterval(): boolean;
|
|
@@ -1062,12 +1226,21 @@ export namespace FactRecipe {
|
|
|
1062
1226
|
serviceId: string,
|
|
1063
1227
|
factName: string,
|
|
1064
1228
|
constantFact?: ConstantFactRecipe.AsObject,
|
|
1229
|
+
execFact?: ExecFactRecipe.AsObject,
|
|
1230
|
+
httpRequestFact?: HttpRequestFactRecipe.AsObject,
|
|
1065
1231
|
refreshInterval?: google_protobuf_duration_pb.Duration.AsObject,
|
|
1066
1232
|
}
|
|
1067
1233
|
|
|
1068
1234
|
export enum FactRecipeDefinitionCase {
|
|
1069
1235
|
FACT_RECIPE_DEFINITION_NOT_SET = 0,
|
|
1070
1236
|
CONSTANT_FACT = 3,
|
|
1237
|
+
EXEC_FACT = 4,
|
|
1238
|
+
HTTP_REQUEST_FACT = 5,
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1241
|
+
export enum RefreshIntervalCase {
|
|
1242
|
+
_REFRESH_INTERVAL_NOT_SET = 0,
|
|
1243
|
+
REFRESH_INTERVAL = 6,
|
|
1071
1244
|
}
|
|
1072
1245
|
}
|
|
1073
1246
|
|
|
@@ -1080,6 +1253,9 @@ export class ExecuteStartosisModuleArgs extends jspb.Message {
|
|
|
1080
1253
|
getData_asB64(): string;
|
|
1081
1254
|
setData(value: Uint8Array | string): ExecuteStartosisModuleArgs;
|
|
1082
1255
|
|
|
1256
|
+
getSerializedParams(): string;
|
|
1257
|
+
setSerializedParams(value: string): ExecuteStartosisModuleArgs;
|
|
1258
|
+
|
|
1083
1259
|
serializeBinary(): Uint8Array;
|
|
1084
1260
|
toObject(includeInstance?: boolean): ExecuteStartosisModuleArgs.AsObject;
|
|
1085
1261
|
static toObject(includeInstance: boolean, msg: ExecuteStartosisModuleArgs): ExecuteStartosisModuleArgs.AsObject;
|
|
@@ -1092,6 +1268,11 @@ export namespace ExecuteStartosisModuleArgs {
|
|
|
1092
1268
|
export type AsObject = {
|
|
1093
1269
|
moduleId: string,
|
|
1094
1270
|
data: Uint8Array | string,
|
|
1271
|
+
serializedParams: string,
|
|
1095
1272
|
}
|
|
1096
1273
|
}
|
|
1097
1274
|
|
|
1275
|
+
export enum HttpRequestMethod {
|
|
1276
|
+
GET = 0,
|
|
1277
|
+
POST = 1,
|
|
1278
|
+
}
|