dcl-ops-lib 8.0.1 → 8.2.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/getAmi.js +1 -0
- package/package.json +1 -1
- package/supra.d.ts +2 -0
- package/supra.js +17 -0
package/getAmi.js
CHANGED
package/package.json
CHANGED
package/supra.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
export declare const supra: pulumi.StackReference;
|
|
3
3
|
export declare function getDbHostAndPort(): pulumi.Output<any>;
|
|
4
|
+
export declare function getReaderDbHostAndPort(): pulumi.Output<any>;
|
|
4
5
|
export declare function getDbHost(): pulumi.Output<any>;
|
|
6
|
+
export declare function getReaderDbHost(): pulumi.Output<any>;
|
|
5
7
|
export declare function getDbPort(): pulumi.OutputInstance<number>;
|
|
6
8
|
export declare function getPublicBastionIp(): pulumi.Output<any>;
|
|
7
9
|
export declare function getInternalServiceDiscoveryNamespaceId(): pulumi.Output<any>;
|
package/supra.js
CHANGED
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.supra = void 0;
|
|
4
4
|
exports.getDbHostAndPort = getDbHostAndPort;
|
|
5
|
+
exports.getReaderDbHostAndPort = getReaderDbHostAndPort;
|
|
5
6
|
exports.getDbHost = getDbHost;
|
|
7
|
+
exports.getReaderDbHost = getReaderDbHost;
|
|
6
8
|
exports.getDbPort = getDbPort;
|
|
7
9
|
exports.getPublicBastionIp = getPublicBastionIp;
|
|
8
10
|
exports.getInternalServiceDiscoveryNamespaceId = getInternalServiceDiscoveryNamespaceId;
|
|
@@ -23,10 +25,25 @@ function getDbHostAndPort() {
|
|
|
23
25
|
}
|
|
24
26
|
});
|
|
25
27
|
}
|
|
28
|
+
// returns a "db.hostname.com:port" Output<string> for the supra shared database - reader endpoint
|
|
29
|
+
function getReaderDbHostAndPort() {
|
|
30
|
+
return exports.supra.requireOutput("db").apply((db) => {
|
|
31
|
+
if (db.dbReaderEndpoint.includes(":")) {
|
|
32
|
+
return db.dbReaderEndpoint;
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
return db.dbReaderEndpoint + ":" + DEFAULT_DB_PORT;
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
}
|
|
26
39
|
// returns "db.hostname.com" from "db.hostname.com:port" Output<string> for the supra shared database
|
|
27
40
|
function getDbHost() {
|
|
28
41
|
return exports.supra.requireOutput("db").apply((db) => db.endpoint.split(":")[0]);
|
|
29
42
|
}
|
|
43
|
+
// returns "db.hostname.com" from "db.hostname.com:port" Output<string> for the supra shared database - reader endpoint
|
|
44
|
+
function getReaderDbHost() {
|
|
45
|
+
return exports.supra.requireOutput("db").apply((db) => db.dbReaderEndpoint.split(":")[0]);
|
|
46
|
+
}
|
|
30
47
|
// returns "port" from "db.hostname.com:port" Output<string> for the supra shared database
|
|
31
48
|
function getDbPort() {
|
|
32
49
|
return exports.supra.requireOutput("db").apply((db) => parseInt(db.endpoint.split(":")[1] || DEFAULT_DB_PORT));
|