@axway/axway-central-cli 4.5.0 → 4.6.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.security-profile-branches.json +18 -0
- package/package.json +1 -1
- package/dist/cli.js +0 -71
- package/dist/commands/apply/index.js +0 -112
- package/dist/commands/completion/index.js +0 -100
- package/dist/commands/config/common/index.js +0 -28
- package/dist/commands/config/index.js +0 -20
- package/dist/commands/config/list.js +0 -24
- package/dist/commands/config/set.js +0 -102
- package/dist/commands/config/unset.js +0 -48
- package/dist/commands/create/agentResource.js +0 -108
- package/dist/commands/create/environment.js +0 -62
- package/dist/commands/create/index.js +0 -109
- package/dist/commands/create/serviceAccount.js +0 -15
- package/dist/commands/delete/index.js +0 -196
- package/dist/commands/edit/environment.js +0 -101
- package/dist/commands/edit/index.js +0 -28
- package/dist/commands/get/index.js +0 -272
- package/dist/commands/install/agents.js +0 -290
- package/dist/commands/install/apigeexAgents.js +0 -223
- package/dist/commands/install/apigeexSaasAgents.js +0 -300
- package/dist/commands/install/awsAgents.js +0 -525
- package/dist/commands/install/awsSaasAgents.js +0 -508
- package/dist/commands/install/azureAgents.js +0 -242
- package/dist/commands/install/azureSaasAgents.js +0 -519
- package/dist/commands/install/backstageAgents.js +0 -167
- package/dist/commands/install/edgeAgents.js +0 -409
- package/dist/commands/install/gitHubSaasAgents.js +0 -294
- package/dist/commands/install/gitLabAgents.js +0 -178
- package/dist/commands/install/graylogAgent.js +0 -147
- package/dist/commands/install/helpers/creators.js +0 -359
- package/dist/commands/install/helpers/deleters.js +0 -36
- package/dist/commands/install/helpers/getters.js +0 -95
- package/dist/commands/install/helpers/index.js +0 -267
- package/dist/commands/install/helpers/inputs.js +0 -593
- package/dist/commands/install/helpers/regex.js +0 -67
- package/dist/commands/install/helpers/templates/apigeexTemplates.js +0 -109
- package/dist/commands/install/helpers/templates/awsTemplates.js +0 -129
- package/dist/commands/install/helpers/templates/azureTemplates.js +0 -125
- package/dist/commands/install/helpers/templates/backstageTemplates.js +0 -95
- package/dist/commands/install/helpers/templates/edgeTemplates.js +0 -360
- package/dist/commands/install/helpers/templates/gitLabTemplates.js +0 -66
- package/dist/commands/install/helpers/templates/graylogTemplates.js +0 -75
- package/dist/commands/install/helpers/templates/ibmAPIConnectTemplates.js +0 -116
- package/dist/commands/install/helpers/templates/istioTemplates.js +0 -214
- package/dist/commands/install/helpers/templates/kafkaTemplates.js +0 -194
- package/dist/commands/install/helpers/templates/sapApiPortalTemplates.js +0 -114
- package/dist/commands/install/helpers/templates/softwareAGWebMethodsTemplates.js +0 -93
- package/dist/commands/install/helpers/templates/traceableTemplates.js +0 -135
- package/dist/commands/install/helpers/templates/wso2Templates.js +0 -85
- package/dist/commands/install/helpers/util.js +0 -26
- package/dist/commands/install/ibmAPIConnectAgents.js +0 -213
- package/dist/commands/install/index.js +0 -36
- package/dist/commands/install/istioAgents.js +0 -346
- package/dist/commands/install/kafkaAgents.js +0 -303
- package/dist/commands/install/platform.js +0 -175
- package/dist/commands/install/sapApiPortalAgents.js +0 -198
- package/dist/commands/install/softwareAGWebMethodsAgents.js +0 -161
- package/dist/commands/install/swaggerHubSaasAgents.js +0 -272
- package/dist/commands/install/traceableAgents.js +0 -257
- package/dist/commands/install/traceableSaasAgents.js +0 -275
- package/dist/commands/install/wso2Agents.js +0 -163
- package/dist/commands/productize/helpers/productizationHelper.js +0 -408
- package/dist/commands/productize/index.js +0 -99
- package/dist/common/ApiServerClient.js +0 -1109
- package/dist/common/CacheController.js +0 -146
- package/dist/common/CliConfigManager.js +0 -76
- package/dist/common/CompositeError.js +0 -95
- package/dist/common/CoreConfigController.js +0 -174
- package/dist/common/DefinitionsManager.js +0 -298
- package/dist/common/Kubectl.js +0 -68
- package/dist/common/PlatformClient.js +0 -128
- package/dist/common/Renderer.js +0 -409
- package/dist/common/TmpFile.js +0 -96
- package/dist/common/bashCommands.js +0 -97
- package/dist/common/basicPrompts.js +0 -160
- package/dist/common/dataService.js +0 -312
- package/dist/common/errorHandler.js +0 -46
- package/dist/common/modules.d.js +0 -1
- package/dist/common/resultsRenderers.js +0 -164
- package/dist/common/types.js +0 -746
- package/dist/common/utils.js +0 -476
- package/dist/main.js +0 -8
|
@@ -1,267 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
var _exportNames = {
|
|
7
|
-
streamPipeline: true,
|
|
8
|
-
unzip: true,
|
|
9
|
-
invalidValueExampleErrMsg: true,
|
|
10
|
-
eolChar: true,
|
|
11
|
-
eolCharWin: true,
|
|
12
|
-
pwd: true,
|
|
13
|
-
pwdWin: true,
|
|
14
|
-
amplifyAgentsKeysSecret: true,
|
|
15
|
-
amplifyAgentsCredsSecret: true,
|
|
16
|
-
configFiles: true,
|
|
17
|
-
agentsDocsUrl: true
|
|
18
|
-
};
|
|
19
|
-
exports.unzip = exports.streamPipeline = exports.pwdWin = exports.pwd = exports.invalidValueExampleErrMsg = exports.eolCharWin = exports.eolChar = exports.configFiles = exports.amplifyAgentsKeysSecret = exports.amplifyAgentsCredsSecret = exports.agentsDocsUrl = void 0;
|
|
20
|
-
var _extractZip = _interopRequireDefault(require("extract-zip"));
|
|
21
|
-
var _stream = _interopRequireDefault(require("stream"));
|
|
22
|
-
var _util = _interopRequireDefault(require("util"));
|
|
23
|
-
var _deleters = require("./deleters");
|
|
24
|
-
Object.keys(_deleters).forEach(function (key) {
|
|
25
|
-
if (key === "default" || key === "__esModule") return;
|
|
26
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
27
|
-
if (key in exports && exports[key] === _deleters[key]) return;
|
|
28
|
-
Object.defineProperty(exports, key, {
|
|
29
|
-
enumerable: true,
|
|
30
|
-
get: function () {
|
|
31
|
-
return _deleters[key];
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
});
|
|
35
|
-
var _creators = require("./creators");
|
|
36
|
-
Object.keys(_creators).forEach(function (key) {
|
|
37
|
-
if (key === "default" || key === "__esModule") return;
|
|
38
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
39
|
-
if (key in exports && exports[key] === _creators[key]) return;
|
|
40
|
-
Object.defineProperty(exports, key, {
|
|
41
|
-
enumerable: true,
|
|
42
|
-
get: function () {
|
|
43
|
-
return _creators[key];
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
});
|
|
47
|
-
var _getters = require("./getters");
|
|
48
|
-
Object.keys(_getters).forEach(function (key) {
|
|
49
|
-
if (key === "default" || key === "__esModule") return;
|
|
50
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
51
|
-
if (key in exports && exports[key] === _getters[key]) return;
|
|
52
|
-
Object.defineProperty(exports, key, {
|
|
53
|
-
enumerable: true,
|
|
54
|
-
get: function () {
|
|
55
|
-
return _getters[key];
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
});
|
|
59
|
-
var _inputs = require("./inputs");
|
|
60
|
-
Object.keys(_inputs).forEach(function (key) {
|
|
61
|
-
if (key === "default" || key === "__esModule") return;
|
|
62
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
63
|
-
if (key in exports && exports[key] === _inputs[key]) return;
|
|
64
|
-
Object.defineProperty(exports, key, {
|
|
65
|
-
enumerable: true,
|
|
66
|
-
get: function () {
|
|
67
|
-
return _inputs[key];
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
});
|
|
71
|
-
var _regex = require("./regex");
|
|
72
|
-
Object.keys(_regex).forEach(function (key) {
|
|
73
|
-
if (key === "default" || key === "__esModule") return;
|
|
74
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
75
|
-
if (key in exports && exports[key] === _regex[key]) return;
|
|
76
|
-
Object.defineProperty(exports, key, {
|
|
77
|
-
enumerable: true,
|
|
78
|
-
get: function () {
|
|
79
|
-
return _regex[key];
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
});
|
|
83
|
-
var _apigeexTemplates = require("./templates/apigeexTemplates");
|
|
84
|
-
Object.keys(_apigeexTemplates).forEach(function (key) {
|
|
85
|
-
if (key === "default" || key === "__esModule") return;
|
|
86
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
87
|
-
if (key in exports && exports[key] === _apigeexTemplates[key]) return;
|
|
88
|
-
Object.defineProperty(exports, key, {
|
|
89
|
-
enumerable: true,
|
|
90
|
-
get: function () {
|
|
91
|
-
return _apigeexTemplates[key];
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
});
|
|
95
|
-
var _awsTemplates = require("./templates/awsTemplates");
|
|
96
|
-
Object.keys(_awsTemplates).forEach(function (key) {
|
|
97
|
-
if (key === "default" || key === "__esModule") return;
|
|
98
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
99
|
-
if (key in exports && exports[key] === _awsTemplates[key]) return;
|
|
100
|
-
Object.defineProperty(exports, key, {
|
|
101
|
-
enumerable: true,
|
|
102
|
-
get: function () {
|
|
103
|
-
return _awsTemplates[key];
|
|
104
|
-
}
|
|
105
|
-
});
|
|
106
|
-
});
|
|
107
|
-
var _azureTemplates = require("./templates/azureTemplates");
|
|
108
|
-
Object.keys(_azureTemplates).forEach(function (key) {
|
|
109
|
-
if (key === "default" || key === "__esModule") return;
|
|
110
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
111
|
-
if (key in exports && exports[key] === _azureTemplates[key]) return;
|
|
112
|
-
Object.defineProperty(exports, key, {
|
|
113
|
-
enumerable: true,
|
|
114
|
-
get: function () {
|
|
115
|
-
return _azureTemplates[key];
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
});
|
|
119
|
-
var _edgeTemplates = require("./templates/edgeTemplates");
|
|
120
|
-
Object.keys(_edgeTemplates).forEach(function (key) {
|
|
121
|
-
if (key === "default" || key === "__esModule") return;
|
|
122
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
123
|
-
if (key in exports && exports[key] === _edgeTemplates[key]) return;
|
|
124
|
-
Object.defineProperty(exports, key, {
|
|
125
|
-
enumerable: true,
|
|
126
|
-
get: function () {
|
|
127
|
-
return _edgeTemplates[key];
|
|
128
|
-
}
|
|
129
|
-
});
|
|
130
|
-
});
|
|
131
|
-
var _istioTemplates = require("./templates/istioTemplates");
|
|
132
|
-
Object.keys(_istioTemplates).forEach(function (key) {
|
|
133
|
-
if (key === "default" || key === "__esModule") return;
|
|
134
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
135
|
-
if (key in exports && exports[key] === _istioTemplates[key]) return;
|
|
136
|
-
Object.defineProperty(exports, key, {
|
|
137
|
-
enumerable: true,
|
|
138
|
-
get: function () {
|
|
139
|
-
return _istioTemplates[key];
|
|
140
|
-
}
|
|
141
|
-
});
|
|
142
|
-
});
|
|
143
|
-
var _gitLabTemplates = require("./templates/gitLabTemplates");
|
|
144
|
-
Object.keys(_gitLabTemplates).forEach(function (key) {
|
|
145
|
-
if (key === "default" || key === "__esModule") return;
|
|
146
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
147
|
-
if (key in exports && exports[key] === _gitLabTemplates[key]) return;
|
|
148
|
-
Object.defineProperty(exports, key, {
|
|
149
|
-
enumerable: true,
|
|
150
|
-
get: function () {
|
|
151
|
-
return _gitLabTemplates[key];
|
|
152
|
-
}
|
|
153
|
-
});
|
|
154
|
-
});
|
|
155
|
-
var _kafkaTemplates = require("./templates/kafkaTemplates");
|
|
156
|
-
Object.keys(_kafkaTemplates).forEach(function (key) {
|
|
157
|
-
if (key === "default" || key === "__esModule") return;
|
|
158
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
159
|
-
if (key in exports && exports[key] === _kafkaTemplates[key]) return;
|
|
160
|
-
Object.defineProperty(exports, key, {
|
|
161
|
-
enumerable: true,
|
|
162
|
-
get: function () {
|
|
163
|
-
return _kafkaTemplates[key];
|
|
164
|
-
}
|
|
165
|
-
});
|
|
166
|
-
});
|
|
167
|
-
var _graylogTemplates = require("./templates/graylogTemplates");
|
|
168
|
-
Object.keys(_graylogTemplates).forEach(function (key) {
|
|
169
|
-
if (key === "default" || key === "__esModule") return;
|
|
170
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
171
|
-
if (key in exports && exports[key] === _graylogTemplates[key]) return;
|
|
172
|
-
Object.defineProperty(exports, key, {
|
|
173
|
-
enumerable: true,
|
|
174
|
-
get: function () {
|
|
175
|
-
return _graylogTemplates[key];
|
|
176
|
-
}
|
|
177
|
-
});
|
|
178
|
-
});
|
|
179
|
-
var _ibmAPIConnectTemplates = require("./templates/ibmAPIConnectTemplates");
|
|
180
|
-
Object.keys(_ibmAPIConnectTemplates).forEach(function (key) {
|
|
181
|
-
if (key === "default" || key === "__esModule") return;
|
|
182
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
183
|
-
if (key in exports && exports[key] === _ibmAPIConnectTemplates[key]) return;
|
|
184
|
-
Object.defineProperty(exports, key, {
|
|
185
|
-
enumerable: true,
|
|
186
|
-
get: function () {
|
|
187
|
-
return _ibmAPIConnectTemplates[key];
|
|
188
|
-
}
|
|
189
|
-
});
|
|
190
|
-
});
|
|
191
|
-
var _softwareAGWebMethodsTemplates = require("./templates/softwareAGWebMethodsTemplates");
|
|
192
|
-
Object.keys(_softwareAGWebMethodsTemplates).forEach(function (key) {
|
|
193
|
-
if (key === "default" || key === "__esModule") return;
|
|
194
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
195
|
-
if (key in exports && exports[key] === _softwareAGWebMethodsTemplates[key]) return;
|
|
196
|
-
Object.defineProperty(exports, key, {
|
|
197
|
-
enumerable: true,
|
|
198
|
-
get: function () {
|
|
199
|
-
return _softwareAGWebMethodsTemplates[key];
|
|
200
|
-
}
|
|
201
|
-
});
|
|
202
|
-
});
|
|
203
|
-
var _traceableTemplates = require("./templates/traceableTemplates");
|
|
204
|
-
Object.keys(_traceableTemplates).forEach(function (key) {
|
|
205
|
-
if (key === "default" || key === "__esModule") return;
|
|
206
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
207
|
-
if (key in exports && exports[key] === _traceableTemplates[key]) return;
|
|
208
|
-
Object.defineProperty(exports, key, {
|
|
209
|
-
enumerable: true,
|
|
210
|
-
get: function () {
|
|
211
|
-
return _traceableTemplates[key];
|
|
212
|
-
}
|
|
213
|
-
});
|
|
214
|
-
});
|
|
215
|
-
var _util2 = require("./util");
|
|
216
|
-
Object.keys(_util2).forEach(function (key) {
|
|
217
|
-
if (key === "default" || key === "__esModule") return;
|
|
218
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
219
|
-
if (key in exports && exports[key] === _util2[key]) return;
|
|
220
|
-
Object.defineProperty(exports, key, {
|
|
221
|
-
enumerable: true,
|
|
222
|
-
get: function () {
|
|
223
|
-
return _util2[key];
|
|
224
|
-
}
|
|
225
|
-
});
|
|
226
|
-
});
|
|
227
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
228
|
-
const streamPipeline = exports.streamPipeline = _util.default.promisify(_stream.default.pipeline);
|
|
229
|
-
const unzip = async filePath => {
|
|
230
|
-
await (0, _extractZip.default)(filePath, {
|
|
231
|
-
dir: process.cwd()
|
|
232
|
-
});
|
|
233
|
-
};
|
|
234
|
-
exports.unzip = unzip;
|
|
235
|
-
const invalidValueExampleErrMsg = (resourceType, example) => {
|
|
236
|
-
return `Invalid ${resourceType} entered. ${resourceType} must be in the form of ${example}`;
|
|
237
|
-
};
|
|
238
|
-
exports.invalidValueExampleErrMsg = invalidValueExampleErrMsg;
|
|
239
|
-
const eolChar = exports.eolChar = '\\';
|
|
240
|
-
const eolCharWin = exports.eolCharWin = '^';
|
|
241
|
-
const pwd = exports.pwd = '"$(pwd)"';
|
|
242
|
-
const pwdWin = exports.pwdWin = '"%cd%"';
|
|
243
|
-
const amplifyAgentsKeysSecret = exports.amplifyAgentsKeysSecret = 'amplify-agents-keys';
|
|
244
|
-
const amplifyAgentsCredsSecret = exports.amplifyAgentsCredsSecret = 'amplify-agents-credentials';
|
|
245
|
-
|
|
246
|
-
// configFiles - the agent config file names
|
|
247
|
-
const configFiles = exports.configFiles = {
|
|
248
|
-
DA_ENV_VARS: 'da_env_vars.env',
|
|
249
|
-
TA_ENV_VARS: 'ta_env_vars.env',
|
|
250
|
-
AGENT_ENV_VARS: 'agent_env_vars.env'
|
|
251
|
-
};
|
|
252
|
-
const agentsDocsUrl = exports.agentsDocsUrl = {
|
|
253
|
-
V7: 'https://docs.axway.com/bundle/amplify-central/page/docs/connect_manage_environ/connect_api_manager/index.html',
|
|
254
|
-
APIGEEX: 'https://docs.axway.com/bundle/amplify-central/page/docs/connect_manage_environ/connect_apigeex_gateway/index.html',
|
|
255
|
-
AWS: 'https://docs.axway.com/bundle/amplify-central/page/docs/connect_manage_environ/connect_aws_gateway/index.html',
|
|
256
|
-
AZURE: 'https://docs.axway.com/bundle/amplify-central/page/docs/connect_manage_environ/connect_azure_gateway/index.html',
|
|
257
|
-
ISTIO: 'https://docs.axway.com/bundle/amplify-central/page/docs/connect_manage_environ/mesh_management/index.html',
|
|
258
|
-
GRAYLOG: 'https://docs.axway.com/bundle/amplify-central/page/docs/connect_manage_environ/mesh_management/index.html',
|
|
259
|
-
IBMAPICONNECT: 'https://docs.axway.com/bundle/amplify-central/page/docs/connect_manage_environ/connect_ibm_api_connect/index.html',
|
|
260
|
-
SOFTWAREAGWEBMETHODS: 'https://docs.axway.com/bundle/amplify-central/page/docs/connect_manage_environ/connect_software_ag_webmethods/index.html',
|
|
261
|
-
TRACEABLE: 'https://docs.axway.com/bundle/amplify-central/page/docs/runtime_security/configure_runtime_compliance_traceable/index.html',
|
|
262
|
-
BACKSTAGE: 'https://docs.axway.com/bundle/amplify-central/page/docs/connect_manage_environ/connect_backstage/index.html',
|
|
263
|
-
SAPAPIPORTAL: 'https://docs.axway.com/bundle/amplify-central/page/docs/connect_manage_environ/connect_sap_api_portal/index.html',
|
|
264
|
-
WSO2: 'https://docs.axway.com/bundle/amplify-central/page/docs/connect_manage_environ/connect_wso2_gateway/index.html'
|
|
265
|
-
};
|
|
266
|
-
|
|
267
|
-
// export * from './updaters';
|