@skyramp/skyramp 0.4.43 → 0.4.45
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/lib/dev-darwin-amd64.dylib +0 -0
- package/lib/dev-darwin-amd64.h +6 -1
- package/lib/dev-darwin-arm64.dylib +0 -0
- package/lib/dev-darwin-arm64.h +6 -1
- package/lib/dev-linux-386.h +6 -1
- package/lib/dev-linux-386.so +0 -0
- package/lib/dev-linux-amd64.h +6 -1
- package/lib/dev-linux-amd64.so +0 -0
- package/lib/dev-windows-amd64.dll +0 -0
- package/lib/dev-windows-amd64.h +6 -1
- package/package.json +1 -1
- package/src/classes/SkyrampClient.js +2 -2
|
Binary file
|
package/lib/dev-darwin-amd64.h
CHANGED
|
@@ -95,8 +95,10 @@ extern "C" {
|
|
|
95
95
|
extern char* removeLocalWrapper();
|
|
96
96
|
extern char* removeClusterFromConfigWrapper(char* clusterName);
|
|
97
97
|
extern char* getKubeConfigPath();
|
|
98
|
-
extern char* applyLocalWrapper(
|
|
98
|
+
extern char* applyLocalWrapper();
|
|
99
99
|
extern char* addKubeconfigWrapper(char* context, char* clusterName, char* kubeconfigPath);
|
|
100
|
+
extern char* setProjectDirectoryWrapper(char* context);
|
|
101
|
+
extern char* getEndpointFromProjectWrapper(char* endpointName, char* projectPath);
|
|
100
102
|
extern char* deployTargetWrapper(char* filePath, char* namespace, char* workerImage, GoUint8 localImage);
|
|
101
103
|
extern char* deploySkyrampWorkerWrapper(char* namespace, char* workerImage, GoUint8 localImage);
|
|
102
104
|
extern char* deleteTargetWrapper(char* filePath, char* namespace);
|
|
@@ -110,11 +112,14 @@ extern char* validateTokenWrapper(char* userToken);
|
|
|
110
112
|
extern char* generateUserTokenWrapper(char* provider, char* email, char* oauthToken);
|
|
111
113
|
extern char* newGrpcEndpointWrapper(char* name, char* serviceName, GoInt port, char* inputFile);
|
|
112
114
|
extern char* newRestEndpointWrapper(char* name, char* openApiTag, GoInt port, char* inputFile);
|
|
115
|
+
extern char* getEndpointWrapper(char* service, GoInt port, char* restPath);
|
|
113
116
|
extern char* writeMockDescriptionWrapper(char* mockDescription, char* kubernetesService);
|
|
114
117
|
extern char* writeTestDescriptionWrapper(char* testDescription, char* testName);
|
|
115
118
|
extern char* applyMockDescriptionWrapper(char* namespace, char* address, char* mockDescription);
|
|
116
119
|
extern char* buildRequestsWrapper(char* mockDescription);
|
|
117
120
|
extern char* runTesterStartWrapper(char* namespace, char* address, char* testDescription, GoUint8 generateResult);
|
|
121
|
+
extern char* runTesterStartWrapperWithGlobalHeaders(char* namespace, char* address, char* testDescription, char* globalJsonHeaders, GoUint8 generateResult);
|
|
122
|
+
extern char* runTesterStatusWrapper(char* namespace, char* address);
|
|
118
123
|
|
|
119
124
|
#ifdef __cplusplus
|
|
120
125
|
}
|
|
Binary file
|
package/lib/dev-darwin-arm64.h
CHANGED
|
@@ -95,8 +95,10 @@ extern "C" {
|
|
|
95
95
|
extern char* removeLocalWrapper();
|
|
96
96
|
extern char* removeClusterFromConfigWrapper(char* clusterName);
|
|
97
97
|
extern char* getKubeConfigPath();
|
|
98
|
-
extern char* applyLocalWrapper(
|
|
98
|
+
extern char* applyLocalWrapper();
|
|
99
99
|
extern char* addKubeconfigWrapper(char* context, char* clusterName, char* kubeconfigPath);
|
|
100
|
+
extern char* setProjectDirectoryWrapper(char* context);
|
|
101
|
+
extern char* getEndpointFromProjectWrapper(char* endpointName, char* projectPath);
|
|
100
102
|
extern char* deployTargetWrapper(char* filePath, char* namespace, char* workerImage, GoUint8 localImage);
|
|
101
103
|
extern char* deploySkyrampWorkerWrapper(char* namespace, char* workerImage, GoUint8 localImage);
|
|
102
104
|
extern char* deleteTargetWrapper(char* filePath, char* namespace);
|
|
@@ -110,11 +112,14 @@ extern char* validateTokenWrapper(char* userToken);
|
|
|
110
112
|
extern char* generateUserTokenWrapper(char* provider, char* email, char* oauthToken);
|
|
111
113
|
extern char* newGrpcEndpointWrapper(char* name, char* serviceName, GoInt port, char* inputFile);
|
|
112
114
|
extern char* newRestEndpointWrapper(char* name, char* openApiTag, GoInt port, char* inputFile);
|
|
115
|
+
extern char* getEndpointWrapper(char* service, GoInt port, char* restPath);
|
|
113
116
|
extern char* writeMockDescriptionWrapper(char* mockDescription, char* kubernetesService);
|
|
114
117
|
extern char* writeTestDescriptionWrapper(char* testDescription, char* testName);
|
|
115
118
|
extern char* applyMockDescriptionWrapper(char* namespace, char* address, char* mockDescription);
|
|
116
119
|
extern char* buildRequestsWrapper(char* mockDescription);
|
|
117
120
|
extern char* runTesterStartWrapper(char* namespace, char* address, char* testDescription, GoUint8 generateResult);
|
|
121
|
+
extern char* runTesterStartWrapperWithGlobalHeaders(char* namespace, char* address, char* testDescription, char* globalJsonHeaders, GoUint8 generateResult);
|
|
122
|
+
extern char* runTesterStatusWrapper(char* namespace, char* address);
|
|
118
123
|
|
|
119
124
|
#ifdef __cplusplus
|
|
120
125
|
}
|
package/lib/dev-linux-386.h
CHANGED
|
@@ -95,8 +95,10 @@ extern "C" {
|
|
|
95
95
|
extern char* removeLocalWrapper();
|
|
96
96
|
extern char* removeClusterFromConfigWrapper(char* clusterName);
|
|
97
97
|
extern char* getKubeConfigPath();
|
|
98
|
-
extern char* applyLocalWrapper(
|
|
98
|
+
extern char* applyLocalWrapper();
|
|
99
99
|
extern char* addKubeconfigWrapper(char* context, char* clusterName, char* kubeconfigPath);
|
|
100
|
+
extern char* setProjectDirectoryWrapper(char* context);
|
|
101
|
+
extern char* getEndpointFromProjectWrapper(char* endpointName, char* projectPath);
|
|
100
102
|
extern char* deployTargetWrapper(char* filePath, char* namespace, char* workerImage, GoUint8 localImage);
|
|
101
103
|
extern char* deploySkyrampWorkerWrapper(char* namespace, char* workerImage, GoUint8 localImage);
|
|
102
104
|
extern char* deleteTargetWrapper(char* filePath, char* namespace);
|
|
@@ -110,11 +112,14 @@ extern char* validateTokenWrapper(char* userToken);
|
|
|
110
112
|
extern char* generateUserTokenWrapper(char* provider, char* email, char* oauthToken);
|
|
111
113
|
extern char* newGrpcEndpointWrapper(char* name, char* serviceName, GoInt port, char* inputFile);
|
|
112
114
|
extern char* newRestEndpointWrapper(char* name, char* openApiTag, GoInt port, char* inputFile);
|
|
115
|
+
extern char* getEndpointWrapper(char* service, GoInt port, char* restPath);
|
|
113
116
|
extern char* writeMockDescriptionWrapper(char* mockDescription, char* kubernetesService);
|
|
114
117
|
extern char* writeTestDescriptionWrapper(char* testDescription, char* testName);
|
|
115
118
|
extern char* applyMockDescriptionWrapper(char* namespace, char* address, char* mockDescription);
|
|
116
119
|
extern char* buildRequestsWrapper(char* mockDescription);
|
|
117
120
|
extern char* runTesterStartWrapper(char* namespace, char* address, char* testDescription, GoUint8 generateResult);
|
|
121
|
+
extern char* runTesterStartWrapperWithGlobalHeaders(char* namespace, char* address, char* testDescription, char* globalJsonHeaders, GoUint8 generateResult);
|
|
122
|
+
extern char* runTesterStatusWrapper(char* namespace, char* address);
|
|
118
123
|
|
|
119
124
|
#ifdef __cplusplus
|
|
120
125
|
}
|
package/lib/dev-linux-386.so
CHANGED
|
Binary file
|
package/lib/dev-linux-amd64.h
CHANGED
|
@@ -95,8 +95,10 @@ extern "C" {
|
|
|
95
95
|
extern char* removeLocalWrapper();
|
|
96
96
|
extern char* removeClusterFromConfigWrapper(char* clusterName);
|
|
97
97
|
extern char* getKubeConfigPath();
|
|
98
|
-
extern char* applyLocalWrapper(
|
|
98
|
+
extern char* applyLocalWrapper();
|
|
99
99
|
extern char* addKubeconfigWrapper(char* context, char* clusterName, char* kubeconfigPath);
|
|
100
|
+
extern char* setProjectDirectoryWrapper(char* context);
|
|
101
|
+
extern char* getEndpointFromProjectWrapper(char* endpointName, char* projectPath);
|
|
100
102
|
extern char* deployTargetWrapper(char* filePath, char* namespace, char* workerImage, GoUint8 localImage);
|
|
101
103
|
extern char* deploySkyrampWorkerWrapper(char* namespace, char* workerImage, GoUint8 localImage);
|
|
102
104
|
extern char* deleteTargetWrapper(char* filePath, char* namespace);
|
|
@@ -110,11 +112,14 @@ extern char* validateTokenWrapper(char* userToken);
|
|
|
110
112
|
extern char* generateUserTokenWrapper(char* provider, char* email, char* oauthToken);
|
|
111
113
|
extern char* newGrpcEndpointWrapper(char* name, char* serviceName, GoInt port, char* inputFile);
|
|
112
114
|
extern char* newRestEndpointWrapper(char* name, char* openApiTag, GoInt port, char* inputFile);
|
|
115
|
+
extern char* getEndpointWrapper(char* service, GoInt port, char* restPath);
|
|
113
116
|
extern char* writeMockDescriptionWrapper(char* mockDescription, char* kubernetesService);
|
|
114
117
|
extern char* writeTestDescriptionWrapper(char* testDescription, char* testName);
|
|
115
118
|
extern char* applyMockDescriptionWrapper(char* namespace, char* address, char* mockDescription);
|
|
116
119
|
extern char* buildRequestsWrapper(char* mockDescription);
|
|
117
120
|
extern char* runTesterStartWrapper(char* namespace, char* address, char* testDescription, GoUint8 generateResult);
|
|
121
|
+
extern char* runTesterStartWrapperWithGlobalHeaders(char* namespace, char* address, char* testDescription, char* globalJsonHeaders, GoUint8 generateResult);
|
|
122
|
+
extern char* runTesterStatusWrapper(char* namespace, char* address);
|
|
118
123
|
|
|
119
124
|
#ifdef __cplusplus
|
|
120
125
|
}
|
package/lib/dev-linux-amd64.so
CHANGED
|
Binary file
|
|
Binary file
|
package/lib/dev-windows-amd64.h
CHANGED
|
@@ -95,8 +95,10 @@ extern "C" {
|
|
|
95
95
|
extern __declspec(dllexport) char* removeLocalWrapper();
|
|
96
96
|
extern __declspec(dllexport) char* removeClusterFromConfigWrapper(char* clusterName);
|
|
97
97
|
extern __declspec(dllexport) char* getKubeConfigPath();
|
|
98
|
-
extern __declspec(dllexport) char* applyLocalWrapper(
|
|
98
|
+
extern __declspec(dllexport) char* applyLocalWrapper();
|
|
99
99
|
extern __declspec(dllexport) char* addKubeconfigWrapper(char* context, char* clusterName, char* kubeconfigPath);
|
|
100
|
+
extern __declspec(dllexport) char* setProjectDirectoryWrapper(char* context);
|
|
101
|
+
extern __declspec(dllexport) char* getEndpointFromProjectWrapper(char* endpointName, char* projectPath);
|
|
100
102
|
extern __declspec(dllexport) char* deployTargetWrapper(char* filePath, char* namespace, char* workerImage, GoUint8 localImage);
|
|
101
103
|
extern __declspec(dllexport) char* deploySkyrampWorkerWrapper(char* namespace, char* workerImage, GoUint8 localImage);
|
|
102
104
|
extern __declspec(dllexport) char* deleteTargetWrapper(char* filePath, char* namespace);
|
|
@@ -110,11 +112,14 @@ extern __declspec(dllexport) char* validateTokenWrapper(char* userToken);
|
|
|
110
112
|
extern __declspec(dllexport) char* generateUserTokenWrapper(char* provider, char* email, char* oauthToken);
|
|
111
113
|
extern __declspec(dllexport) char* newGrpcEndpointWrapper(char* name, char* serviceName, GoInt port, char* inputFile);
|
|
112
114
|
extern __declspec(dllexport) char* newRestEndpointWrapper(char* name, char* openApiTag, GoInt port, char* inputFile);
|
|
115
|
+
extern __declspec(dllexport) char* getEndpointWrapper(char* service, GoInt port, char* restPath);
|
|
113
116
|
extern __declspec(dllexport) char* writeMockDescriptionWrapper(char* mockDescription, char* kubernetesService);
|
|
114
117
|
extern __declspec(dllexport) char* writeTestDescriptionWrapper(char* testDescription, char* testName);
|
|
115
118
|
extern __declspec(dllexport) char* applyMockDescriptionWrapper(char* namespace, char* address, char* mockDescription);
|
|
116
119
|
extern __declspec(dllexport) char* buildRequestsWrapper(char* mockDescription);
|
|
117
120
|
extern __declspec(dllexport) char* runTesterStartWrapper(char* namespace, char* address, char* testDescription, GoUint8 generateResult);
|
|
121
|
+
extern __declspec(dllexport) char* runTesterStartWrapperWithGlobalHeaders(char* namespace, char* address, char* testDescription, char* globalJsonHeaders, GoUint8 generateResult);
|
|
122
|
+
extern __declspec(dllexport) char* runTesterStatusWrapper(char* namespace, char* address);
|
|
118
123
|
|
|
119
124
|
#ifdef __cplusplus
|
|
120
125
|
}
|
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@ const credResponseType = koffi.struct({
|
|
|
16
16
|
});
|
|
17
17
|
|
|
18
18
|
const { createTestDescriptionFromScenario, getYamlBytes, readDataFromFile } = require('../utils');
|
|
19
|
-
const applyLocalWrapper = lib.func('applyLocalWrapper', 'string', [
|
|
19
|
+
const applyLocalWrapper = lib.func('applyLocalWrapper', 'string', []);
|
|
20
20
|
const addKubeconfigWrapper = lib.func('addKubeconfigWrapper', 'string', ['string', 'bool', 'string', 'string']);
|
|
21
21
|
const deleteSkyrampWorkerWrapper = lib.func('deleteSkyrampWorkerWrapper', 'string', ['string'])
|
|
22
22
|
const deploySkyrampWorkerWrapper = lib.func('deploySkyrampWorkerWrapper', 'string', ['string', 'string', 'bool']);
|
|
@@ -131,7 +131,7 @@ class SkyrampClient {
|
|
|
131
131
|
|
|
132
132
|
async applyLocal() {
|
|
133
133
|
return new Promise((resolve, reject) => {
|
|
134
|
-
applyLocalWrapper.async(
|
|
134
|
+
applyLocalWrapper.async( (err, res) => {
|
|
135
135
|
if (err) {
|
|
136
136
|
reject(err);
|
|
137
137
|
} else if (res) {
|