@opscompass/opscompass-cli 1.0.40 → 1.0.42
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/environment/current.js +2 -0
- package/environment/demo.js +2 -0
- package/environment/dev.js +2 -0
- package/environment/local.js +2 -0
- package/environment/production.js +2 -0
- package/index.js +1 -0
- package/lib/consts.js +1 -0
- package/lib/maskValues.js +7 -7
- package/lib/utils.js +168 -47
- package/modules/compliance.js +24 -0
- package/modules/data-gathering-scripts.js +2 -6
- package/modules/defaults.js +1 -1
- package/modules/license-manager/maskedConfig.js +114 -0
- package/modules/license-manager/microsoft.js +862 -0
- package/modules/license-manager/nutanix.js +285 -0
- package/modules/license-manager/vcenter.js +281 -0
- package/modules/license-manager.js +211 -1243
- package/opscompass.js +14 -1
- package/package.json +2 -2
package/opscompass.js
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
const { OpsCompassClient } = require("./environment/current.js");
|
|
2
2
|
const { getCredentials } = require("./credentials.js");
|
|
3
|
+
const { utilsModule: utils } = require("./lib/utils.js");
|
|
3
4
|
|
|
5
|
+
/**
|
|
6
|
+
* This module provides a functions to use the OpsCompass API client
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Returns an instance of the OpsCompassClient initialized with the access token
|
|
11
|
+
* from the credentials file.
|
|
12
|
+
* @returns {Promise<OpsCompassClient>} An instance of OpsCompassClient
|
|
13
|
+
*/
|
|
4
14
|
async function getOpsCompassClient() {
|
|
5
15
|
const { access_token } = await getCredentials();
|
|
6
16
|
|
|
@@ -8,5 +18,8 @@ async function getOpsCompassClient() {
|
|
|
8
18
|
}
|
|
9
19
|
|
|
10
20
|
module.exports = {
|
|
11
|
-
getOpsCompassClient
|
|
21
|
+
getOpsCompassClient,
|
|
22
|
+
getConfigFilePath: utils.getConfigFilePath,
|
|
23
|
+
readConfigFile: utils.readConfigFile,
|
|
24
|
+
writeConfigFile: utils.writeConfigFile,
|
|
12
25
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opscompass/opscompass-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.42",
|
|
4
4
|
"description": "Calls OpsCompass's APIs",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"author": "opscompass",
|
|
17
17
|
"license": "SEE LICENSE IN license.txt",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@opscompass/opscompass-api": "^1.0.
|
|
19
|
+
"@opscompass/opscompass-api": "^1.0.41",
|
|
20
20
|
"adm-zip": "^0.5.16",
|
|
21
21
|
"axios": "^0.28.1",
|
|
22
22
|
"better-sqlite3": "^11.8.0",
|