@jfvilas/kwirth-common 0.3.55 → 0.3.57
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/dist/AccessKey.js +3 -1
- package/dist/IChannel.d.ts +4 -3
- package/dist/KwirthData.d.ts +5 -0
- package/dist/KwirthData.js +6 -0
- package/package.json +1 -1
package/dist/AccessKey.js
CHANGED
|
@@ -12,7 +12,9 @@ const guid_1 = __importDefault(require("guid"));
|
|
|
12
12
|
|
|
13
13
|
where:
|
|
14
14
|
id: is a GUID
|
|
15
|
-
type: is volatile'
|
|
15
|
+
type: is 'volatile', 'permanent' (it is persisted when created) or 'bearer:....'
|
|
16
|
+
in case of a bearer accessKey, the type contains the expire for the key, that is, for example:
|
|
17
|
+
bearer:
|
|
16
18
|
resource: is a stringified ResourceIdentifier
|
|
17
19
|
*/
|
|
18
20
|
class AccessKey {
|
package/dist/IChannel.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { InstanceConfig, InstanceConfigActionEnum } from './InstanceConfig';
|
|
2
2
|
import WebSocket from 'ws';
|
|
3
|
-
type
|
|
3
|
+
type ChannelData = {
|
|
4
|
+
id: string;
|
|
4
5
|
pauseable: boolean;
|
|
5
6
|
modifyable: boolean;
|
|
6
7
|
reconnectable: boolean;
|
|
7
8
|
};
|
|
8
9
|
interface IChannel {
|
|
9
|
-
getCapabilities():
|
|
10
|
+
getCapabilities(): ChannelData;
|
|
10
11
|
getChannelScopeLevel(scope: string): number;
|
|
11
12
|
startInstance(webSocket: WebSocket, instanceConfig: InstanceConfig, podNamespace: string, podName: string, containerName: string): void;
|
|
12
13
|
pauseContinueInstance(webSocket: WebSocket, instanceConfig: InstanceConfig, action: InstanceConfigActionEnum): void;
|
|
@@ -17,5 +18,5 @@ interface IChannel {
|
|
|
17
18
|
removeConnection(webSocket: WebSocket): void;
|
|
18
19
|
updateConnection(webSocket: WebSocket, instanceId: string): boolean;
|
|
19
20
|
}
|
|
20
|
-
export type {
|
|
21
|
+
export type { ChannelData };
|
|
21
22
|
export { IChannel };
|
package/dist/KwirthData.d.ts
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
export declare enum ClusterTypeEnum {
|
|
2
|
+
KUBERNETES = "kubernetes",
|
|
3
|
+
DOCKER = "docker"
|
|
4
|
+
}
|
|
1
5
|
export interface KwirthData {
|
|
2
6
|
version: string;
|
|
3
7
|
lastVersion: string;
|
|
4
8
|
clusterName: string;
|
|
9
|
+
clusterType: ClusterTypeEnum;
|
|
5
10
|
inCluster: boolean;
|
|
6
11
|
namespace: string;
|
|
7
12
|
deployment: string;
|
package/dist/KwirthData.js
CHANGED
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ClusterTypeEnum = void 0;
|
|
4
|
+
var ClusterTypeEnum;
|
|
5
|
+
(function (ClusterTypeEnum) {
|
|
6
|
+
ClusterTypeEnum["KUBERNETES"] = "kubernetes";
|
|
7
|
+
ClusterTypeEnum["DOCKER"] = "docker";
|
|
8
|
+
})(ClusterTypeEnum || (exports.ClusterTypeEnum = ClusterTypeEnum = {}));
|