@skyramp/skyramp 0.4.89 → 0.4.91
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 +9 -9
- package/lib/dev-darwin-arm64.dylib +0 -0
- package/lib/dev-darwin-arm64.h +9 -9
- package/lib/dev-linux-386.h +9 -9
- package/lib/dev-linux-386.so +0 -0
- package/lib/dev-linux-amd64.h +9 -9
- package/lib/dev-linux-amd64.so +0 -0
- package/lib/dev-windows-amd64.dll +0 -0
- package/lib/dev-windows-amd64.h +9 -9
- package/package.json +1 -1
- package/src/classes/Protocol.d.ts +8 -0
- package/src/classes/Protocol.js +8 -0
- package/src/classes/RequestValue.d.ts +2 -1
- package/src/classes/RequestValue.js +4 -2
- package/src/classes/RestEndpoint.d.ts +1 -0
- package/src/classes/RestEndpoint.js +12 -2
- package/src/classes/SkyrampClient.d.ts +9 -6
- package/src/classes/SkyrampClient.js +30 -30
- package/src/index.d.ts +1 -0
- package/src/index.js +3 -1
|
Binary file
|
package/lib/dev-darwin-amd64.h
CHANGED
|
@@ -112,10 +112,10 @@ extern char* applyLocalWrapper();
|
|
|
112
112
|
extern char* addKubeconfigWrapper(char* context, char* clusterName, char* kubeconfigPath);
|
|
113
113
|
extern char* setProjectDirectoryWrapper(char* context);
|
|
114
114
|
extern char* getEndpointFromProjectWrapper(char* endpointName, char* projectPath);
|
|
115
|
-
extern char* deployTargetWrapper(char* filePath, char* namespace, char* workerImage, GoUint8 localImage);
|
|
116
|
-
extern char* deploySkyrampWorkerWrapper(char* namespace, char* workerImage, GoUint8 localImage);
|
|
117
|
-
extern char* deleteTargetWrapper(char* filePath, char* namespace);
|
|
118
|
-
extern char* deleteSkyrampWorkerWrapper(char* namespace);
|
|
115
|
+
extern char* deployTargetWrapper(char* filePath, char* namespace, char* kubePath, char* kubeContext, char* clusterName, char* workerImage, GoUint8 localImage);
|
|
116
|
+
extern char* deploySkyrampWorkerWrapper(char* namespace, char* kubePath, char* kubeContext, char* clusterName, char* workerImage, GoUint8 localImage);
|
|
117
|
+
extern char* deleteTargetWrapper(char* filePath, char* namespace, char* kubePath, char* kubeContext, char* clusterName);
|
|
118
|
+
extern char* deleteSkyrampWorkerWrapper(char* namespace, char* kubePath, char* kubeContext, char* clusterName);
|
|
119
119
|
extern char* initTargetWrapper(char* fileName);
|
|
120
120
|
extern struct credential_response readCredentialWrapper();
|
|
121
121
|
extern char* getOAuthURLWrapper(char* provider, GoInt port);
|
|
@@ -125,17 +125,17 @@ extern char* validateTokenWrapper(char* userToken);
|
|
|
125
125
|
extern char* generateUserTokenWrapper(char* provider, char* email, char* oauthToken);
|
|
126
126
|
extern struct worker_info newStartDockerSkyrampWorkerWrapper(char* image, char* tag, GoInt hostPort, char* targetNetworkName);
|
|
127
127
|
extern char* newDeleteDockerSkyrampWorkerWrapper(char* containerName);
|
|
128
|
-
extern char* runTesterCurlWrapper(char* namespace, char* address, char* request);
|
|
128
|
+
extern char* runTesterCurlWrapper(char* namespace, char* kubePath, char* kubeContext, char* clusterName, char* address, char* request);
|
|
129
129
|
extern char* newGrpcEndpointWrapper(char* name, char* serviceName, GoInt port, char* inputFile);
|
|
130
130
|
extern char* newRestEndpointWrapper(char* name, char* openApiTag, GoInt port, char* inputFile, char* restPath);
|
|
131
131
|
extern char* getEndpointWrapper(char* service, GoInt port, char* restPath);
|
|
132
132
|
extern char* writeMockDescriptionWrapper(char* mockDescription, char* kubernetesService);
|
|
133
133
|
extern char* writeTestDescriptionWrapper(char* testDescription, char* testName);
|
|
134
|
-
extern char* applyMockDescriptionWrapper(char* namespace, char* address, char* mockDescription, char* mockPath, char* projectPath);
|
|
134
|
+
extern char* applyMockDescriptionWrapper(char* namespace, char* kubePath, char* kubeContext, char* clusterName, char* address, char* mockDescription, char* mockPath, char* projectPath);
|
|
135
135
|
extern char* buildRequestsWrapper(char* mockDescription);
|
|
136
|
-
extern struct tester_info runTesterStartWrapper(char* namespace, char* address, char* testDescription, GoUint8 generateResult);
|
|
137
|
-
extern struct tester_info runTesterStartWrapperWithGlobalHeaders(char* namespace, char* address, char* testDescription, char* testFileName, char* testName, char* globalJsonHeaders, GoUint8 generateResult, char* projectPath, char* overrideFile, char* overrideDict);
|
|
138
|
-
extern char* runTesterStatusWrapper(char* namespace, char* address, char* testerId, GoUint8 isFormattingEnabled);
|
|
136
|
+
extern struct tester_info runTesterStartWrapper(char* namespace, char* kubePath, char* kubeContext, char* clusterName, char* address, char* testDescription, GoUint8 generateResult);
|
|
137
|
+
extern struct tester_info runTesterStartWrapperWithGlobalHeaders(char* namespace, char* kubePath, char* kubeContext, char* clusterName, char* address, char* testDescription, char* testFileName, char* testName, char* globalJsonHeaders, GoUint8 generateResult, char* projectPath, char* overrideFile, char* overrideDict);
|
|
138
|
+
extern char* runTesterStatusWrapper(char* namespace, char* kubePath, char* kubeContext, char* clusterName, char* address, char* testerId, GoUint8 isFormattingEnabled);
|
|
139
139
|
|
|
140
140
|
#ifdef __cplusplus
|
|
141
141
|
}
|
|
Binary file
|
package/lib/dev-darwin-arm64.h
CHANGED
|
@@ -112,10 +112,10 @@ extern char* applyLocalWrapper();
|
|
|
112
112
|
extern char* addKubeconfigWrapper(char* context, char* clusterName, char* kubeconfigPath);
|
|
113
113
|
extern char* setProjectDirectoryWrapper(char* context);
|
|
114
114
|
extern char* getEndpointFromProjectWrapper(char* endpointName, char* projectPath);
|
|
115
|
-
extern char* deployTargetWrapper(char* filePath, char* namespace, char* workerImage, GoUint8 localImage);
|
|
116
|
-
extern char* deploySkyrampWorkerWrapper(char* namespace, char* workerImage, GoUint8 localImage);
|
|
117
|
-
extern char* deleteTargetWrapper(char* filePath, char* namespace);
|
|
118
|
-
extern char* deleteSkyrampWorkerWrapper(char* namespace);
|
|
115
|
+
extern char* deployTargetWrapper(char* filePath, char* namespace, char* kubePath, char* kubeContext, char* clusterName, char* workerImage, GoUint8 localImage);
|
|
116
|
+
extern char* deploySkyrampWorkerWrapper(char* namespace, char* kubePath, char* kubeContext, char* clusterName, char* workerImage, GoUint8 localImage);
|
|
117
|
+
extern char* deleteTargetWrapper(char* filePath, char* namespace, char* kubePath, char* kubeContext, char* clusterName);
|
|
118
|
+
extern char* deleteSkyrampWorkerWrapper(char* namespace, char* kubePath, char* kubeContext, char* clusterName);
|
|
119
119
|
extern char* initTargetWrapper(char* fileName);
|
|
120
120
|
extern struct credential_response readCredentialWrapper();
|
|
121
121
|
extern char* getOAuthURLWrapper(char* provider, GoInt port);
|
|
@@ -125,17 +125,17 @@ extern char* validateTokenWrapper(char* userToken);
|
|
|
125
125
|
extern char* generateUserTokenWrapper(char* provider, char* email, char* oauthToken);
|
|
126
126
|
extern struct worker_info newStartDockerSkyrampWorkerWrapper(char* image, char* tag, GoInt hostPort, char* targetNetworkName);
|
|
127
127
|
extern char* newDeleteDockerSkyrampWorkerWrapper(char* containerName);
|
|
128
|
-
extern char* runTesterCurlWrapper(char* namespace, char* address, char* request);
|
|
128
|
+
extern char* runTesterCurlWrapper(char* namespace, char* kubePath, char* kubeContext, char* clusterName, char* address, char* request);
|
|
129
129
|
extern char* newGrpcEndpointWrapper(char* name, char* serviceName, GoInt port, char* inputFile);
|
|
130
130
|
extern char* newRestEndpointWrapper(char* name, char* openApiTag, GoInt port, char* inputFile, char* restPath);
|
|
131
131
|
extern char* getEndpointWrapper(char* service, GoInt port, char* restPath);
|
|
132
132
|
extern char* writeMockDescriptionWrapper(char* mockDescription, char* kubernetesService);
|
|
133
133
|
extern char* writeTestDescriptionWrapper(char* testDescription, char* testName);
|
|
134
|
-
extern char* applyMockDescriptionWrapper(char* namespace, char* address, char* mockDescription, char* mockPath, char* projectPath);
|
|
134
|
+
extern char* applyMockDescriptionWrapper(char* namespace, char* kubePath, char* kubeContext, char* clusterName, char* address, char* mockDescription, char* mockPath, char* projectPath);
|
|
135
135
|
extern char* buildRequestsWrapper(char* mockDescription);
|
|
136
|
-
extern struct tester_info runTesterStartWrapper(char* namespace, char* address, char* testDescription, GoUint8 generateResult);
|
|
137
|
-
extern struct tester_info runTesterStartWrapperWithGlobalHeaders(char* namespace, char* address, char* testDescription, char* testFileName, char* testName, char* globalJsonHeaders, GoUint8 generateResult, char* projectPath, char* overrideFile, char* overrideDict);
|
|
138
|
-
extern char* runTesterStatusWrapper(char* namespace, char* address, char* testerId, GoUint8 isFormattingEnabled);
|
|
136
|
+
extern struct tester_info runTesterStartWrapper(char* namespace, char* kubePath, char* kubeContext, char* clusterName, char* address, char* testDescription, GoUint8 generateResult);
|
|
137
|
+
extern struct tester_info runTesterStartWrapperWithGlobalHeaders(char* namespace, char* kubePath, char* kubeContext, char* clusterName, char* address, char* testDescription, char* testFileName, char* testName, char* globalJsonHeaders, GoUint8 generateResult, char* projectPath, char* overrideFile, char* overrideDict);
|
|
138
|
+
extern char* runTesterStatusWrapper(char* namespace, char* kubePath, char* kubeContext, char* clusterName, char* address, char* testerId, GoUint8 isFormattingEnabled);
|
|
139
139
|
|
|
140
140
|
#ifdef __cplusplus
|
|
141
141
|
}
|
package/lib/dev-linux-386.h
CHANGED
|
@@ -112,10 +112,10 @@ extern char* applyLocalWrapper();
|
|
|
112
112
|
extern char* addKubeconfigWrapper(char* context, char* clusterName, char* kubeconfigPath);
|
|
113
113
|
extern char* setProjectDirectoryWrapper(char* context);
|
|
114
114
|
extern char* getEndpointFromProjectWrapper(char* endpointName, char* projectPath);
|
|
115
|
-
extern char* deployTargetWrapper(char* filePath, char* namespace, char* workerImage, GoUint8 localImage);
|
|
116
|
-
extern char* deploySkyrampWorkerWrapper(char* namespace, char* workerImage, GoUint8 localImage);
|
|
117
|
-
extern char* deleteTargetWrapper(char* filePath, char* namespace);
|
|
118
|
-
extern char* deleteSkyrampWorkerWrapper(char* namespace);
|
|
115
|
+
extern char* deployTargetWrapper(char* filePath, char* namespace, char* kubePath, char* kubeContext, char* clusterName, char* workerImage, GoUint8 localImage);
|
|
116
|
+
extern char* deploySkyrampWorkerWrapper(char* namespace, char* kubePath, char* kubeContext, char* clusterName, char* workerImage, GoUint8 localImage);
|
|
117
|
+
extern char* deleteTargetWrapper(char* filePath, char* namespace, char* kubePath, char* kubeContext, char* clusterName);
|
|
118
|
+
extern char* deleteSkyrampWorkerWrapper(char* namespace, char* kubePath, char* kubeContext, char* clusterName);
|
|
119
119
|
extern char* initTargetWrapper(char* fileName);
|
|
120
120
|
extern struct credential_response readCredentialWrapper();
|
|
121
121
|
extern char* getOAuthURLWrapper(char* provider, GoInt port);
|
|
@@ -125,17 +125,17 @@ extern char* validateTokenWrapper(char* userToken);
|
|
|
125
125
|
extern char* generateUserTokenWrapper(char* provider, char* email, char* oauthToken);
|
|
126
126
|
extern struct worker_info newStartDockerSkyrampWorkerWrapper(char* image, char* tag, GoInt hostPort, char* targetNetworkName);
|
|
127
127
|
extern char* newDeleteDockerSkyrampWorkerWrapper(char* containerName);
|
|
128
|
-
extern char* runTesterCurlWrapper(char* namespace, char* address, char* request);
|
|
128
|
+
extern char* runTesterCurlWrapper(char* namespace, char* kubePath, char* kubeContext, char* clusterName, char* address, char* request);
|
|
129
129
|
extern char* newGrpcEndpointWrapper(char* name, char* serviceName, GoInt port, char* inputFile);
|
|
130
130
|
extern char* newRestEndpointWrapper(char* name, char* openApiTag, GoInt port, char* inputFile, char* restPath);
|
|
131
131
|
extern char* getEndpointWrapper(char* service, GoInt port, char* restPath);
|
|
132
132
|
extern char* writeMockDescriptionWrapper(char* mockDescription, char* kubernetesService);
|
|
133
133
|
extern char* writeTestDescriptionWrapper(char* testDescription, char* testName);
|
|
134
|
-
extern char* applyMockDescriptionWrapper(char* namespace, char* address, char* mockDescription, char* mockPath, char* projectPath);
|
|
134
|
+
extern char* applyMockDescriptionWrapper(char* namespace, char* kubePath, char* kubeContext, char* clusterName, char* address, char* mockDescription, char* mockPath, char* projectPath);
|
|
135
135
|
extern char* buildRequestsWrapper(char* mockDescription);
|
|
136
|
-
extern struct tester_info runTesterStartWrapper(char* namespace, char* address, char* testDescription, GoUint8 generateResult);
|
|
137
|
-
extern struct tester_info runTesterStartWrapperWithGlobalHeaders(char* namespace, char* address, char* testDescription, char* testFileName, char* testName, char* globalJsonHeaders, GoUint8 generateResult, char* projectPath, char* overrideFile, char* overrideDict);
|
|
138
|
-
extern char* runTesterStatusWrapper(char* namespace, char* address, char* testerId, GoUint8 isFormattingEnabled);
|
|
136
|
+
extern struct tester_info runTesterStartWrapper(char* namespace, char* kubePath, char* kubeContext, char* clusterName, char* address, char* testDescription, GoUint8 generateResult);
|
|
137
|
+
extern struct tester_info runTesterStartWrapperWithGlobalHeaders(char* namespace, char* kubePath, char* kubeContext, char* clusterName, char* address, char* testDescription, char* testFileName, char* testName, char* globalJsonHeaders, GoUint8 generateResult, char* projectPath, char* overrideFile, char* overrideDict);
|
|
138
|
+
extern char* runTesterStatusWrapper(char* namespace, char* kubePath, char* kubeContext, char* clusterName, char* address, char* testerId, GoUint8 isFormattingEnabled);
|
|
139
139
|
|
|
140
140
|
#ifdef __cplusplus
|
|
141
141
|
}
|
package/lib/dev-linux-386.so
CHANGED
|
Binary file
|
package/lib/dev-linux-amd64.h
CHANGED
|
@@ -112,10 +112,10 @@ extern char* applyLocalWrapper();
|
|
|
112
112
|
extern char* addKubeconfigWrapper(char* context, char* clusterName, char* kubeconfigPath);
|
|
113
113
|
extern char* setProjectDirectoryWrapper(char* context);
|
|
114
114
|
extern char* getEndpointFromProjectWrapper(char* endpointName, char* projectPath);
|
|
115
|
-
extern char* deployTargetWrapper(char* filePath, char* namespace, char* workerImage, GoUint8 localImage);
|
|
116
|
-
extern char* deploySkyrampWorkerWrapper(char* namespace, char* workerImage, GoUint8 localImage);
|
|
117
|
-
extern char* deleteTargetWrapper(char* filePath, char* namespace);
|
|
118
|
-
extern char* deleteSkyrampWorkerWrapper(char* namespace);
|
|
115
|
+
extern char* deployTargetWrapper(char* filePath, char* namespace, char* kubePath, char* kubeContext, char* clusterName, char* workerImage, GoUint8 localImage);
|
|
116
|
+
extern char* deploySkyrampWorkerWrapper(char* namespace, char* kubePath, char* kubeContext, char* clusterName, char* workerImage, GoUint8 localImage);
|
|
117
|
+
extern char* deleteTargetWrapper(char* filePath, char* namespace, char* kubePath, char* kubeContext, char* clusterName);
|
|
118
|
+
extern char* deleteSkyrampWorkerWrapper(char* namespace, char* kubePath, char* kubeContext, char* clusterName);
|
|
119
119
|
extern char* initTargetWrapper(char* fileName);
|
|
120
120
|
extern struct credential_response readCredentialWrapper();
|
|
121
121
|
extern char* getOAuthURLWrapper(char* provider, GoInt port);
|
|
@@ -125,17 +125,17 @@ extern char* validateTokenWrapper(char* userToken);
|
|
|
125
125
|
extern char* generateUserTokenWrapper(char* provider, char* email, char* oauthToken);
|
|
126
126
|
extern struct worker_info newStartDockerSkyrampWorkerWrapper(char* image, char* tag, GoInt hostPort, char* targetNetworkName);
|
|
127
127
|
extern char* newDeleteDockerSkyrampWorkerWrapper(char* containerName);
|
|
128
|
-
extern char* runTesterCurlWrapper(char* namespace, char* address, char* request);
|
|
128
|
+
extern char* runTesterCurlWrapper(char* namespace, char* kubePath, char* kubeContext, char* clusterName, char* address, char* request);
|
|
129
129
|
extern char* newGrpcEndpointWrapper(char* name, char* serviceName, GoInt port, char* inputFile);
|
|
130
130
|
extern char* newRestEndpointWrapper(char* name, char* openApiTag, GoInt port, char* inputFile, char* restPath);
|
|
131
131
|
extern char* getEndpointWrapper(char* service, GoInt port, char* restPath);
|
|
132
132
|
extern char* writeMockDescriptionWrapper(char* mockDescription, char* kubernetesService);
|
|
133
133
|
extern char* writeTestDescriptionWrapper(char* testDescription, char* testName);
|
|
134
|
-
extern char* applyMockDescriptionWrapper(char* namespace, char* address, char* mockDescription, char* mockPath, char* projectPath);
|
|
134
|
+
extern char* applyMockDescriptionWrapper(char* namespace, char* kubePath, char* kubeContext, char* clusterName, char* address, char* mockDescription, char* mockPath, char* projectPath);
|
|
135
135
|
extern char* buildRequestsWrapper(char* mockDescription);
|
|
136
|
-
extern struct tester_info runTesterStartWrapper(char* namespace, char* address, char* testDescription, GoUint8 generateResult);
|
|
137
|
-
extern struct tester_info runTesterStartWrapperWithGlobalHeaders(char* namespace, char* address, char* testDescription, char* testFileName, char* testName, char* globalJsonHeaders, GoUint8 generateResult, char* projectPath, char* overrideFile, char* overrideDict);
|
|
138
|
-
extern char* runTesterStatusWrapper(char* namespace, char* address, char* testerId, GoUint8 isFormattingEnabled);
|
|
136
|
+
extern struct tester_info runTesterStartWrapper(char* namespace, char* kubePath, char* kubeContext, char* clusterName, char* address, char* testDescription, GoUint8 generateResult);
|
|
137
|
+
extern struct tester_info runTesterStartWrapperWithGlobalHeaders(char* namespace, char* kubePath, char* kubeContext, char* clusterName, char* address, char* testDescription, char* testFileName, char* testName, char* globalJsonHeaders, GoUint8 generateResult, char* projectPath, char* overrideFile, char* overrideDict);
|
|
138
|
+
extern char* runTesterStatusWrapper(char* namespace, char* kubePath, char* kubeContext, char* clusterName, char* address, char* testerId, GoUint8 isFormattingEnabled);
|
|
139
139
|
|
|
140
140
|
#ifdef __cplusplus
|
|
141
141
|
}
|
package/lib/dev-linux-amd64.so
CHANGED
|
Binary file
|
|
Binary file
|
package/lib/dev-windows-amd64.h
CHANGED
|
@@ -112,10 +112,10 @@ extern __declspec(dllexport) char* applyLocalWrapper();
|
|
|
112
112
|
extern __declspec(dllexport) char* addKubeconfigWrapper(char* context, char* clusterName, char* kubeconfigPath);
|
|
113
113
|
extern __declspec(dllexport) char* setProjectDirectoryWrapper(char* context);
|
|
114
114
|
extern __declspec(dllexport) char* getEndpointFromProjectWrapper(char* endpointName, char* projectPath);
|
|
115
|
-
extern __declspec(dllexport) char* deployTargetWrapper(char* filePath, char* namespace, char* workerImage, GoUint8 localImage);
|
|
116
|
-
extern __declspec(dllexport) char* deploySkyrampWorkerWrapper(char* namespace, char* workerImage, GoUint8 localImage);
|
|
117
|
-
extern __declspec(dllexport) char* deleteTargetWrapper(char* filePath, char* namespace);
|
|
118
|
-
extern __declspec(dllexport) char* deleteSkyrampWorkerWrapper(char* namespace);
|
|
115
|
+
extern __declspec(dllexport) char* deployTargetWrapper(char* filePath, char* namespace, char* kubePath, char* kubeContext, char* clusterName, char* workerImage, GoUint8 localImage);
|
|
116
|
+
extern __declspec(dllexport) char* deploySkyrampWorkerWrapper(char* namespace, char* kubePath, char* kubeContext, char* clusterName, char* workerImage, GoUint8 localImage);
|
|
117
|
+
extern __declspec(dllexport) char* deleteTargetWrapper(char* filePath, char* namespace, char* kubePath, char* kubeContext, char* clusterName);
|
|
118
|
+
extern __declspec(dllexport) char* deleteSkyrampWorkerWrapper(char* namespace, char* kubePath, char* kubeContext, char* clusterName);
|
|
119
119
|
extern __declspec(dllexport) char* initTargetWrapper(char* fileName);
|
|
120
120
|
extern __declspec(dllexport) struct credential_response readCredentialWrapper();
|
|
121
121
|
extern __declspec(dllexport) char* getOAuthURLWrapper(char* provider, GoInt port);
|
|
@@ -125,17 +125,17 @@ extern __declspec(dllexport) char* validateTokenWrapper(char* userToken);
|
|
|
125
125
|
extern __declspec(dllexport) char* generateUserTokenWrapper(char* provider, char* email, char* oauthToken);
|
|
126
126
|
extern __declspec(dllexport) struct worker_info newStartDockerSkyrampWorkerWrapper(char* image, char* tag, GoInt hostPort, char* targetNetworkName);
|
|
127
127
|
extern __declspec(dllexport) char* newDeleteDockerSkyrampWorkerWrapper(char* containerName);
|
|
128
|
-
extern __declspec(dllexport) char* runTesterCurlWrapper(char* namespace, char* address, char* request);
|
|
128
|
+
extern __declspec(dllexport) char* runTesterCurlWrapper(char* namespace, char* kubePath, char* kubeContext, char* clusterName, char* address, char* request);
|
|
129
129
|
extern __declspec(dllexport) char* newGrpcEndpointWrapper(char* name, char* serviceName, GoInt port, char* inputFile);
|
|
130
130
|
extern __declspec(dllexport) char* newRestEndpointWrapper(char* name, char* openApiTag, GoInt port, char* inputFile, char* restPath);
|
|
131
131
|
extern __declspec(dllexport) char* getEndpointWrapper(char* service, GoInt port, char* restPath);
|
|
132
132
|
extern __declspec(dllexport) char* writeMockDescriptionWrapper(char* mockDescription, char* kubernetesService);
|
|
133
133
|
extern __declspec(dllexport) char* writeTestDescriptionWrapper(char* testDescription, char* testName);
|
|
134
|
-
extern __declspec(dllexport) char* applyMockDescriptionWrapper(char* namespace, char* address, char* mockDescription, char* mockPath, char* projectPath);
|
|
134
|
+
extern __declspec(dllexport) char* applyMockDescriptionWrapper(char* namespace, char* kubePath, char* kubeContext, char* clusterName, char* address, char* mockDescription, char* mockPath, char* projectPath);
|
|
135
135
|
extern __declspec(dllexport) char* buildRequestsWrapper(char* mockDescription);
|
|
136
|
-
extern __declspec(dllexport) struct tester_info runTesterStartWrapper(char* namespace, char* address, char* testDescription, GoUint8 generateResult);
|
|
137
|
-
extern __declspec(dllexport) struct tester_info runTesterStartWrapperWithGlobalHeaders(char* namespace, char* address, char* testDescription, char* testFileName, char* testName, char* globalJsonHeaders, GoUint8 generateResult, char* projectPath, char* overrideFile, char* overrideDict);
|
|
138
|
-
extern __declspec(dllexport) char* runTesterStatusWrapper(char* namespace, char* address, char* testerId, GoUint8 isFormattingEnabled);
|
|
136
|
+
extern __declspec(dllexport) struct tester_info runTesterStartWrapper(char* namespace, char* kubePath, char* kubeContext, char* clusterName, char* address, char* testDescription, GoUint8 generateResult);
|
|
137
|
+
extern __declspec(dllexport) struct tester_info runTesterStartWrapperWithGlobalHeaders(char* namespace, char* kubePath, char* kubeContext, char* clusterName, char* address, char* testDescription, char* testFileName, char* testName, char* globalJsonHeaders, GoUint8 generateResult, char* projectPath, char* overrideFile, char* overrideDict);
|
|
138
|
+
extern __declspec(dllexport) char* runTesterStatusWrapper(char* namespace, char* kubePath, char* kubeContext, char* clusterName, char* address, char* testerId, GoUint8 isFormattingEnabled);
|
|
139
139
|
|
|
140
140
|
#ifdef __cplusplus
|
|
141
141
|
}
|
package/package.json
CHANGED
|
@@ -7,9 +7,10 @@ interface RequestValueOptions {
|
|
|
7
7
|
methodType?: string;
|
|
8
8
|
methodName?: string;
|
|
9
9
|
params?: RestParam[];
|
|
10
|
-
headers?:
|
|
10
|
+
headers?: {[headerName: string]: string},
|
|
11
11
|
vars?: Map<string, string | number>;
|
|
12
12
|
blob?: string;
|
|
13
|
+
graphqlParam?: string;
|
|
13
14
|
javascriptPath?: string;
|
|
14
15
|
javascriptFunction?: string;
|
|
15
16
|
}
|
|
@@ -31,6 +31,7 @@ class RequestValue {
|
|
|
31
31
|
this.headers = options.headers;
|
|
32
32
|
this.vars = options.vars;
|
|
33
33
|
this.blob = options.blob;
|
|
34
|
+
this.graphqlParam = options.graphqlParam;
|
|
34
35
|
this.javascriptPath = options.javascriptPath;
|
|
35
36
|
this.javascript = options.javascriptFunction;
|
|
36
37
|
}
|
|
@@ -82,6 +83,9 @@ class RequestValue {
|
|
|
82
83
|
if (this.blob !== undefined && this.blob !== null) {
|
|
83
84
|
requestDict.blob = this.blob;
|
|
84
85
|
}
|
|
86
|
+
if (this.graphqlParam!== undefined && this.graphqlParam!== null) {
|
|
87
|
+
requestDict.graphqlParam = this.graphqlParam;
|
|
88
|
+
}
|
|
85
89
|
if (this.vars !== undefined && this.vars !== null) {
|
|
86
90
|
requestDict.vars = this.vars;
|
|
87
91
|
}
|
|
@@ -104,8 +108,6 @@ class RequestValue {
|
|
|
104
108
|
requestDict["override"] = this.responseValue;
|
|
105
109
|
}
|
|
106
110
|
}
|
|
107
|
-
|
|
108
|
-
|
|
109
111
|
}
|
|
110
112
|
|
|
111
113
|
module.exports = RequestValue;
|
|
@@ -5,6 +5,7 @@ interface RestEndpointOptions {
|
|
|
5
5
|
restPath?: string,
|
|
6
6
|
methodType?: string[], // GET, POST, PUT, DELETE, PATCH
|
|
7
7
|
endpointAddress?: string,
|
|
8
|
+
subProtocol?: string,
|
|
8
9
|
}
|
|
9
10
|
export declare class RestEndpoint extends Endpoint {
|
|
10
11
|
constructor(name: string, openApiTag: string, port: number, openapiFile: string, endpointAddress: string);
|
|
@@ -31,7 +31,7 @@ class RestEndpoint extends Endpoint {
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
function createEndpoint({ serviceName, port, restPath, methodTypes }) {
|
|
34
|
+
function createEndpoint({ serviceName, port, restPath, methodTypes, subProtocol }) {
|
|
35
35
|
// Validate required arguments
|
|
36
36
|
if (typeof serviceName !== 'string' || serviceName.length === 0) {
|
|
37
37
|
throw new Error('serviceName must be a non-empty string');
|
|
@@ -46,6 +46,16 @@ function createEndpoint({ serviceName, port, restPath, methodTypes }) {
|
|
|
46
46
|
throw new Error('restPath must be a string');
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
+
// Validate subProtocol
|
|
50
|
+
const allowedProtocols = ['graphql', 'jsonrpc-http', 'jsonrpc-ws'];
|
|
51
|
+
let protocol = 'rest';
|
|
52
|
+
if (subProtocol !== undefined) {
|
|
53
|
+
if (typeof subProtocol !== 'string' || !allowedProtocols.includes(subProtocol.toLowerCase())) {
|
|
54
|
+
throw new Error('Invalid subProtocol. It must not be "graphql" or "jsonrpc".');
|
|
55
|
+
}
|
|
56
|
+
protocol = subProtocol;
|
|
57
|
+
}
|
|
58
|
+
|
|
49
59
|
// allowed HTTP methods
|
|
50
60
|
const allowedMethods = ['GET', 'POST', 'PUT', 'DELETE', 'PATCH'];
|
|
51
61
|
|
|
@@ -54,7 +64,7 @@ function createEndpoint({ serviceName, port, restPath, methodTypes }) {
|
|
|
54
64
|
name: serviceName,
|
|
55
65
|
port: port,
|
|
56
66
|
alias: serviceName,
|
|
57
|
-
protocol:
|
|
67
|
+
protocol: protocol,
|
|
58
68
|
}],
|
|
59
69
|
endpoints: [{
|
|
60
70
|
name: serviceName + '-endpoint',
|
|
@@ -8,22 +8,25 @@ export declare class SkyrampClient {
|
|
|
8
8
|
addKubeconfig(context: string, clusterName: string, kubeconfigPath: string): Promise<void>;
|
|
9
9
|
removeLocal(): Promise<void>;
|
|
10
10
|
removeCluster(clusterName?: string): Promise<void>;
|
|
11
|
-
mockerApply(namespace: string, address: string, endpoint: Endpoint): Promise<void>;
|
|
11
|
+
mockerApply(namespace: string, kubePath: string, kubeContext: string, clusterName: string, address: string, endpoint: Endpoint): Promise<void>;
|
|
12
12
|
runDockerSkyrampWorker(workerImage?:string, workerTag?:string, hostPost?:int, targetNetworkName?:string): Promise<void>
|
|
13
13
|
removeDockerSkyrampWorker() : Promise<void>
|
|
14
|
-
mockerApplyV1(namespace: string, address: string, response: ResponseValue | ResponseValue[], trafficConfig: TrafficConfig): Promise<void>;
|
|
15
|
-
mockerApplyFromFile(namespace: string, address: string, filePath: string): Promise<void>;
|
|
14
|
+
mockerApplyV1(namespace: string, kubePath: string, kubeContext: string, clusterName: string, address: string, response: ResponseValue | ResponseValue[], trafficConfig: TrafficConfig): Promise<void>;
|
|
15
|
+
mockerApplyFromFile(namespace: string, kubePath: string, kubeContext: string, clusterName: string, address: string, filePath: string): Promise<void>;
|
|
16
16
|
applyMockDescription(namespace: string, address: string, mockYamlContent: string): Promise<void>;
|
|
17
|
-
testerStart(namespace: string, address: string, scenario: Scenario): Promise<void>;
|
|
17
|
+
testerStart(namespace: string, kubePath: string, kubeContext: string, clusterName: string, address: string, scenario: Scenario): Promise<void>;
|
|
18
18
|
testerStartV1(namespace: string,
|
|
19
|
+
kubePath: string,
|
|
20
|
+
kubeContext: string,
|
|
21
|
+
clusterName: string,
|
|
19
22
|
address: string,
|
|
20
23
|
scenario: Scenario,
|
|
21
24
|
testName: string,
|
|
22
25
|
globalHeaders: {[headerName: string]: string},
|
|
23
26
|
generateTestReport: boolean,
|
|
24
27
|
isDockerenv: boolean): Promise<void>;
|
|
25
|
-
testerStartFromFile(namespace: string, address: string, filePath: string): Promise<void>;
|
|
26
|
-
runTesterStart(namespace: string, address: string, testYamlContent: string, generateReport: boolean): Promise<void>;
|
|
28
|
+
testerStartFromFile(namespace: string, kubePath: string, kubeContext: string, clusterName: string, address: string, filePath: string): Promise<void>;
|
|
29
|
+
runTesterStart(namespace: string, kubePath: string, kubeContext: string, clusterName: string, address: string, testYamlContent: string, generateReport: boolean): Promise<void>;
|
|
27
30
|
initTarget(targetName: string): Promise<void>;
|
|
28
31
|
deployTarget(targetDescription: string, namespace: string, workerImage?: string, localImage?: boolean): Promise<void>;
|
|
29
32
|
deleteTarget(targetDescription: string, namespace: string): Promise<void>;
|
|
@@ -34,8 +34,8 @@ const CONTAINER_PORT = 35142;
|
|
|
34
34
|
const { createTestDescriptionFromScenario, getYamlBytes, readDataFromFile, SKYRAMP_YAML_VERSION } = require('../utils');
|
|
35
35
|
const applyLocalWrapper = lib.func('applyLocalWrapper', 'string', []);
|
|
36
36
|
const addKubeconfigWrapper = lib.func('addKubeconfigWrapper', 'string', ['string', 'bool', 'string', 'string']);
|
|
37
|
-
const deleteSkyrampWorkerWrapper = lib.func('deleteSkyrampWorkerWrapper', 'string', ['string'])
|
|
38
|
-
const deploySkyrampWorkerWrapper = lib.func('deploySkyrampWorkerWrapper', 'string', ['string', 'string', 'bool']);
|
|
37
|
+
const deleteSkyrampWorkerWrapper = lib.func('deleteSkyrampWorkerWrapper', 'string', ['string', 'string', 'string', 'string'])
|
|
38
|
+
const deploySkyrampWorkerWrapper = lib.func('deploySkyrampWorkerWrapper', 'string', ['string', 'string', 'string', 'string', 'string', 'bool']);
|
|
39
39
|
const getKubeConfigPath = lib.func('getKubeConfigPath', 'string', []);
|
|
40
40
|
const removeLocalWrapper = lib.func('removeLocalWrapper', 'string', []);
|
|
41
41
|
const removeClusterFromConfigWrapper = lib.func('removeClusterFromConfigWrapper', 'string', ['string']);
|
|
@@ -43,14 +43,14 @@ const removeClusterFromConfigWrapper = lib.func('removeClusterFromConfigWrapper'
|
|
|
43
43
|
const newStartDockerSkyrampWorkerWrapper = lib.func('newStartDockerSkyrampWorkerWrapper', workerInfoType, ['string', 'string', 'int', 'string']);
|
|
44
44
|
const newDeleteDockerSkyrampWorkerWrapper = lib.func('newDeleteDockerSkyrampWorkerWrapper', 'string', ['string']);
|
|
45
45
|
// tester related
|
|
46
|
-
const runTesterStartWrapper = lib.func('runTesterStartWrapper', testerInfoType, ['string', 'string', 'string', 'bool']);
|
|
46
|
+
const runTesterStartWrapper = lib.func('runTesterStartWrapper', testerInfoType, ['string', 'string', 'string', 'string', 'string', 'string', 'bool']);
|
|
47
47
|
// mocker related
|
|
48
|
-
const runTesterStartWrapperv1 = lib.func('runTesterStartWrapperWithGlobalHeaders', testerInfoType, ['string', 'string', 'string', 'string', 'string', 'string', 'bool', 'string', 'string', 'string']);
|
|
49
|
-
const applyMockDescriptionWrapper = lib.func('applyMockDescriptionWrapper', 'string', ['string', 'string', 'string', 'string', 'string']);
|
|
48
|
+
const runTesterStartWrapperv1 = lib.func('runTesterStartWrapperWithGlobalHeaders', testerInfoType, ['string', 'string', 'string', 'string', 'string', 'string', 'string', 'string', 'string', 'bool', 'string', 'string', 'string']);
|
|
49
|
+
const applyMockDescriptionWrapper = lib.func('applyMockDescriptionWrapper', 'string', ['string', 'string', 'string', 'string', 'string', 'string', 'string', 'string']);
|
|
50
50
|
// NPM only: for VS code extension use
|
|
51
51
|
const initTargetWrapper = lib.func('initTargetWrapper', 'string', ['string']);
|
|
52
|
-
const deployTargetWrapper = lib.func('deployTargetWrapper', 'string', ['string', 'string', 'string', 'bool']);
|
|
53
|
-
const deleteTargetWrapper = lib.func('deleteTargetWrapper', 'string', ['string', 'string']);
|
|
52
|
+
const deployTargetWrapper = lib.func('deployTargetWrapper', 'string', ['string', 'string', 'string', 'string', 'string', 'string', 'bool']);
|
|
53
|
+
const deleteTargetWrapper = lib.func('deleteTargetWrapper', 'string', ['string', 'string', 'string', 'string', 'string']);
|
|
54
54
|
|
|
55
55
|
// credential / oauth related
|
|
56
56
|
const readCredentialWrapper = lib.func('readCredentialWrapper', credResponseType, []);
|
|
@@ -261,12 +261,12 @@ class SkyrampClient {
|
|
|
261
261
|
* @returns {Promise} - A Promise that resolves if deployment is successful, and rejects with an error if any error occurs during deployment.
|
|
262
262
|
* @throws {Error} - If there is no cluster to deploy the worker to.
|
|
263
263
|
*/
|
|
264
|
-
async deploySkyrampWorker(namespace, workerImage = '', localImage = false) {
|
|
264
|
+
async deploySkyrampWorker(namespace, workerImage = '', localImage = false, kubePath='', kubeContext='', clusterName='') {
|
|
265
265
|
if (this.kubeConfigPath === null) {
|
|
266
266
|
throw new Error('No cluster to deploy worker to.');
|
|
267
267
|
}
|
|
268
268
|
return new Promise((resolve, reject) => {
|
|
269
|
-
deploySkyrampWorkerWrapper.async(namespace, workerImage, localImage, (err, res) => {
|
|
269
|
+
deploySkyrampWorkerWrapper.async(namespace, kubePath, kubeContext, clusterName, workerImage, localImage, (err, res) => {
|
|
270
270
|
if (err) {
|
|
271
271
|
reject(err);
|
|
272
272
|
} else if (res) {
|
|
@@ -286,7 +286,7 @@ class SkyrampClient {
|
|
|
286
286
|
* @returns {Promise} - A promise that resolves with no value upon successful deletion.
|
|
287
287
|
* @throws {Error} - If there is no cluster to delete the worker from or if there is no worker to delete from the specified namespace.
|
|
288
288
|
*/
|
|
289
|
-
async deleteSkyrampWorker(namespace) {
|
|
289
|
+
async deleteSkyrampWorker(namespace, kubePath='', kubeContext='', clusterName='') {
|
|
290
290
|
if (this.kubeConfigPath === null) {
|
|
291
291
|
throw new Error('No cluster to delete worker from.');
|
|
292
292
|
}
|
|
@@ -295,7 +295,7 @@ class SkyrampClient {
|
|
|
295
295
|
throw new Error(`No worker to delete from ${namespace} namespace.`);
|
|
296
296
|
}
|
|
297
297
|
return new Promise((resolve, reject) => {
|
|
298
|
-
deleteSkyrampWorkerWrapper.async(namespace, (err, res) => {
|
|
298
|
+
deleteSkyrampWorkerWrapper.async(namespace, kubePath, kubeContext, clusterName, (err, res) => {
|
|
299
299
|
if (err) {
|
|
300
300
|
reject(err);
|
|
301
301
|
} else if (res) {
|
|
@@ -353,9 +353,9 @@ class SkyrampClient {
|
|
|
353
353
|
});
|
|
354
354
|
}
|
|
355
355
|
|
|
356
|
-
async mockerApply(namespace, address, endpoint) {
|
|
356
|
+
async mockerApply(namespace, kubeConfig, kubeContext, clusterName, address, endpoint) {
|
|
357
357
|
const yamlContent = getYamlBytes(endpoint.mockDescription);
|
|
358
|
-
return this.applyMockDescription(namespace, address, yamlContent);
|
|
358
|
+
return this.applyMockDescription(namespace, kubeConfig, kubeContext, clusterName, address, yamlContent);
|
|
359
359
|
}
|
|
360
360
|
|
|
361
361
|
/**
|
|
@@ -367,24 +367,24 @@ class SkyrampClient {
|
|
|
367
367
|
* @param {object} trafficConfig - The traffic configuration parameters.
|
|
368
368
|
* @returns {Promise} A Promise that resolves when the mock description is successfully applied.
|
|
369
369
|
*/
|
|
370
|
-
async mockerApplyV1(namespace, address, response, trafficConfig) {
|
|
370
|
+
async mockerApplyV1(namespace, kubeConfig, kubeContext, clusterName, address, response, trafficConfig) {
|
|
371
371
|
const mockDescription = this.getMockDescriptionv1(response);
|
|
372
372
|
if (trafficConfig instanceof TrafficConfig) {
|
|
373
373
|
mockDescription.mock = { ...mockDescription.mock, ...trafficConfig.toJson() }
|
|
374
374
|
}
|
|
375
375
|
const yamlContent = getYamlBytes(mockDescription);
|
|
376
|
-
return this.applyMockDescription(namespace, address, yamlContent);
|
|
376
|
+
return this.applyMockDescription(namespace, kubeConfig, kubeContext, clusterName, address, yamlContent);
|
|
377
377
|
}
|
|
378
378
|
|
|
379
379
|
// NPM only: for VS code extension use
|
|
380
|
-
async mockerApplyFromFile(namespace, address, filepath) {
|
|
380
|
+
async mockerApplyFromFile(namespace, kubeConfig, kubeContext, clusterName, address, filepath) {
|
|
381
381
|
const yamlContent = getYamlBytes(readDataFromFile(filepath)[0]);
|
|
382
|
-
return this.applyMockDescription(namespace, address, yamlContent);
|
|
382
|
+
return this.applyMockDescription(namespace, kubeConfig, kubeContext, clusterName, address, yamlContent);
|
|
383
383
|
}
|
|
384
384
|
|
|
385
|
-
async applyMockDescription(namespace, address, yamlContent) {
|
|
385
|
+
async applyMockDescription(namespace, kubeConfig, kubeContext, clusterName, address, yamlContent) {
|
|
386
386
|
return new Promise((resolve, reject) => {
|
|
387
|
-
applyMockDescriptionWrapper.async(namespace, address, yamlContent, '', '', (err, res) => {
|
|
387
|
+
applyMockDescriptionWrapper.async(namespace, kubeConfig, kubeContext, clusterName, address, yamlContent, '', '', (err, res) => {
|
|
388
388
|
if (err) {
|
|
389
389
|
reject(err);
|
|
390
390
|
} else if (res) {
|
|
@@ -396,10 +396,10 @@ class SkyrampClient {
|
|
|
396
396
|
});
|
|
397
397
|
}
|
|
398
398
|
|
|
399
|
-
async testerStart(namespace, address, scenario) {
|
|
399
|
+
async testerStart(namespace, kubePath, kubeContext, clusterName, address, scenario) {
|
|
400
400
|
const testDescription = createTestDescriptionFromScenario(scenario);
|
|
401
401
|
const testYamlContent = getYamlBytes(testDescription);
|
|
402
|
-
return this.runTesterStart(namespace, address, testYamlContent, false);
|
|
402
|
+
return this.runTesterStart(namespace, kubePath, kubeContext, clusterName, address, testYamlContent, false);
|
|
403
403
|
}
|
|
404
404
|
|
|
405
405
|
/**
|
|
@@ -421,19 +421,19 @@ class SkyrampClient {
|
|
|
421
421
|
if (globalHeaders !== undefined && globalHeaders !== null) {
|
|
422
422
|
globalHeaders = JSON.stringify(globalHeaders);
|
|
423
423
|
}
|
|
424
|
-
return this.runTesterStartv1(namespace, address, testYamlContent, testName, globalHeaders, generateTestReport);
|
|
424
|
+
return this.runTesterStartv1(namespace, '', '', '', address, testYamlContent, testName, globalHeaders, generateTestReport);
|
|
425
425
|
}
|
|
426
426
|
|
|
427
427
|
// NPM only: for VS code extension use
|
|
428
|
-
async testerStartFromFile(namespace, address, filepath) {
|
|
428
|
+
async testerStartFromFile(namespace, kubePath, kubeContext, clusterName, address, filepath) {
|
|
429
429
|
const testDescription = readDataFromFile(filepath)[0]
|
|
430
430
|
const testYamlContent = getYamlBytes(testDescription);
|
|
431
|
-
return this.runTesterStart(namespace, address, testYamlContent, true);
|
|
431
|
+
return this.runTesterStart(namespace, kubePath, kubeContext, clusterName, address, testYamlContent, true);
|
|
432
432
|
}
|
|
433
433
|
|
|
434
|
-
async runTesterStart(namespace, address, testYamlContent, generateReport) {
|
|
434
|
+
async runTesterStart(namespace, kubePath, kubeContext, clusterName, address, testYamlContent, generateReport) {
|
|
435
435
|
return new Promise((resolve, reject) => {
|
|
436
|
-
runTesterStartWrapper.async(namespace, address, testYamlContent, generateReport, (err, res) => {
|
|
436
|
+
runTesterStartWrapper.async(namespace, kubePath, kubeContext, clusterName, address, testYamlContent, generateReport, (err, res) => {
|
|
437
437
|
if (err) {
|
|
438
438
|
reject(err);
|
|
439
439
|
} else if (res.error) {
|
|
@@ -445,9 +445,9 @@ class SkyrampClient {
|
|
|
445
445
|
});
|
|
446
446
|
}
|
|
447
447
|
|
|
448
|
-
async runTesterStartv1(namespace, address, testYamlContent, testName, globalHeaders, generateReport = true) {
|
|
448
|
+
async runTesterStartv1(namespace, kubePath, kubeContext, clusterName, address, testYamlContent, testName, globalHeaders, generateReport = true) {
|
|
449
449
|
return new Promise((resolve, reject) => {
|
|
450
|
-
runTesterStartWrapperv1.async(namespace, address, testYamlContent, "", testName, globalHeaders, generateReport, "", "", "", (err, res) => {
|
|
450
|
+
runTesterStartWrapperv1.async(namespace, kubePath, kubeContext, clusterName, address, testYamlContent, "", testName, globalHeaders, generateReport, "", "", "", (err, res) => {
|
|
451
451
|
if (err) {
|
|
452
452
|
reject(err);
|
|
453
453
|
} else if (res.error) {
|
|
@@ -480,7 +480,7 @@ class SkyrampClient {
|
|
|
480
480
|
throw new Error('No cluster to deploy target to.');
|
|
481
481
|
}
|
|
482
482
|
return new Promise((resolve, reject) => {
|
|
483
|
-
deployTargetWrapper.async(targetDescription, namespace, workerImage, localImage, (err, res) => {
|
|
483
|
+
deployTargetWrapper.async(targetDescription, namespace, '', '', '', workerImage, localImage, (err, res) => {
|
|
484
484
|
if (err) {
|
|
485
485
|
reject(err);
|
|
486
486
|
} else if (res) {
|
|
@@ -498,7 +498,7 @@ class SkyrampClient {
|
|
|
498
498
|
throw new Error('No cluster to delete target from.');
|
|
499
499
|
}
|
|
500
500
|
return new Promise((resolve, reject) => {
|
|
501
|
-
deleteTargetWrapper.async(targetDescription, namespace, (err, res) => {
|
|
501
|
+
deleteTargetWrapper.async(targetDescription, namespace, '', '', '', (err, res) => {
|
|
502
502
|
if (err) {
|
|
503
503
|
reject(err);
|
|
504
504
|
} else if (res) {
|
package/src/index.d.ts
CHANGED
package/src/index.js
CHANGED
|
@@ -7,6 +7,7 @@ const ResponseValue = require('./classes/ResponseValue');
|
|
|
7
7
|
const RestParam = require('./classes/RestParam');
|
|
8
8
|
const TrafficConfig = require('./classes/TrafficConfig');
|
|
9
9
|
const DelayConfig = require('./classes/DelayConfig');
|
|
10
|
+
const Protocol = require('./classes/Protocol');
|
|
10
11
|
|
|
11
12
|
module.exports = {
|
|
12
13
|
SkyrampClient,
|
|
@@ -18,4 +19,5 @@ module.exports = {
|
|
|
18
19
|
RestParam,
|
|
19
20
|
TrafficConfig,
|
|
20
21
|
DelayConfig,
|
|
21
|
-
|
|
22
|
+
Protocol,
|
|
23
|
+
}
|