@k8slens/extensions 6.0.1-git.3f2010a6b6.0 → 6.0.1-git.4771c7755c.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/dist/src/common/cluster/cluster.d.ts +2 -0
- package/dist/src/common/fs/stat/stat.global-override-for-injectable.d.ts +5 -0
- package/dist/src/common/fs/stat/stat.injectable.d.ts +2 -0
- package/dist/src/common/fs/validate-directory.injectable.d.ts +4 -0
- package/dist/src/common/fs/watch/watch.global-override-for-injectable.d.ts +5 -0
- package/dist/src/common/fs/watch/watch.injectable.d.ts +4 -0
- package/dist/src/common/ipc/broadcast-message.injectable.d.ts +2 -2
- package/dist/src/common/k8s-api/endpoints/pod.api.d.ts +1 -0
- package/dist/src/common/k8s-api/kube-api.d.ts +1 -0
- package/dist/src/common/k8s-api/kube-object.store.d.ts +1 -0
- package/dist/src/common/protocol-handler/router.d.ts +2 -0
- package/dist/src/common/utils/abort-controller.d.ts +1 -0
- package/dist/src/common/utils/delay.d.ts +1 -0
- package/dist/src/common/utils/reject-promise.d.ts +1 -0
- package/dist/src/common/vars/package-json.injectable.d.ts +1 -0
- package/dist/src/extensions/extension-api.js +23 -12
- package/dist/src/extensions/extension-discovery/extension-discovery.d.ts +8 -0
- package/dist/src/main/__test__/cluster.test.d.ts +0 -4
- package/dist/src/main/helm/helm-chart-manager-cache.injectable.d.ts +7 -0
- package/dist/src/main/helm/helm-chart-manager.d.ts +9 -3
- package/dist/src/main/helm/helm-chart-manager.injectable.d.ts +4 -0
- package/dist/src/main/kube-auth-proxy/kube-auth-proxy.d.ts +3 -1
- package/dist/src/main/kube-auth-proxy/wait-until-port-is-used/wait-until-port-is-used.global-override-for-injectable.d.ts +5 -0
- package/dist/src/main/kube-auth-proxy/wait-until-port-is-used/wait-until-port-is-used.injectable.d.ts +3 -0
- package/dist/src/main/protocol-handler/lens-protocol-router-main/lens-protocol-router-main.d.ts +2 -0
- package/dist/src/main/utils/channel/ipc-main/ipc-main.global-override-for-injectable.d.ts +5 -0
- package/dist/src/renderer/api/catalog/entity/registry.d.ts +2 -0
- package/dist/src/renderer/components/cluster-settings/components/cluster-local-terminal-settings.d.ts +2 -1
- package/dist/src/renderer/protocol-handler/lens-protocol-router-renderer/lens-protocol-router-renderer.d.ts +2 -5
- package/dist/src/renderer/utils/channel/ipc-renderer.global-override-for-injectable.d.ts +5 -0
- package/package.json +1 -1
- package/dist/src/main/helm/__mocks__/helm-chart-manager.d.ts +0 -11
|
@@ -14,6 +14,7 @@ import { ClusterStatus } from "../cluster-types";
|
|
|
14
14
|
import type { CanI } from "./authorization-review.injectable";
|
|
15
15
|
import type { ListNamespaces } from "./list-namespaces.injectable";
|
|
16
16
|
import type { Logger } from "../logger";
|
|
17
|
+
import type { BroadcastMessage } from "../ipc/broadcast-message.injectable";
|
|
17
18
|
export interface ClusterDependencies {
|
|
18
19
|
readonly directoryForKubeConfigs: string;
|
|
19
20
|
readonly logger: Logger;
|
|
@@ -24,6 +25,7 @@ export interface ClusterDependencies {
|
|
|
24
25
|
createAuthorizationReview: (config: KubeConfig) => CanI;
|
|
25
26
|
createListNamespaces: (config: KubeConfig) => ListNamespaces;
|
|
26
27
|
createVersionDetector: (cluster: Cluster) => VersionDetector;
|
|
28
|
+
broadcastMessage: BroadcastMessage;
|
|
27
29
|
}
|
|
28
30
|
/**
|
|
29
31
|
* Cluster
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
injectable: import("@ogre-tools/injectable").Injectable<typeof import("fs-extra").stat, unknown, void>;
|
|
3
|
+
overridingInstantiate: import("@ogre-tools/injectable").Instantiate<typeof import("fs-extra").stat, void>;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { AsyncResult } from "../utils/async-result";
|
|
2
|
+
export declare type ValidateDirectory = (path: string) => Promise<AsyncResult<undefined>>;
|
|
3
|
+
declare const validateDirectoryInjectable: import("@ogre-tools/injectable").Injectable<ValidateDirectory, unknown, void>;
|
|
4
|
+
export default validateDirectoryInjectable;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
injectable: import("@ogre-tools/injectable").Injectable<import("./watch.injectable").Watch, unknown, void>;
|
|
3
|
+
overridingInstantiate: import("@ogre-tools/injectable").Instantiate<import("./watch.injectable").Watch, void>;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const broadcastMessageInjectable: import("@ogre-tools/injectable").Injectable<
|
|
1
|
+
export declare type BroadcastMessage = (channel: string, ...args: any[]) => Promise<void>;
|
|
2
|
+
declare const broadcastMessageInjectable: import("@ogre-tools/injectable").Injectable<BroadcastMessage, unknown, void>;
|
|
3
3
|
export default broadcastMessageInjectable;
|
|
@@ -686,6 +686,7 @@ export declare class Pod extends KubeObject<NamespaceScopedMetadata, PodStatus,
|
|
|
686
686
|
getQosClass(): string;
|
|
687
687
|
getReason(): string;
|
|
688
688
|
getPriorityClassName(): string;
|
|
689
|
+
getServiceAccountName(): string;
|
|
689
690
|
getStatus(): PodStatusPhase;
|
|
690
691
|
getStatusMessage(): string;
|
|
691
692
|
getStatusPhase(): string | undefined;
|
|
@@ -13,6 +13,7 @@ import type { RequestInit } from "node-fetch";
|
|
|
13
13
|
import { Agent } from "https";
|
|
14
14
|
import type { Patch } from "rfc6902";
|
|
15
15
|
import type { PartialDeep } from "type-fest";
|
|
16
|
+
import type AbortController from "abort-controller";
|
|
16
17
|
/**
|
|
17
18
|
* The options used for creating a `KubeApi`
|
|
18
19
|
*/
|
|
@@ -11,6 +11,7 @@ import type { KubeApiQueryParams, KubeApi } from "./kube-api";
|
|
|
11
11
|
import type { RequestInit } from "node-fetch";
|
|
12
12
|
import type { Patch } from "rfc6902";
|
|
13
13
|
import type { PartialDeep } from "type-fest";
|
|
14
|
+
import AbortController from "abort-controller";
|
|
14
15
|
export declare type OnLoadFailure = (error: unknown) => void;
|
|
15
16
|
export interface KubeObjectStoreLoadingParams {
|
|
16
17
|
namespaces: string[];
|
|
@@ -8,6 +8,7 @@ import type { ExtensionsStore } from "../../extensions/extensions-store/extensio
|
|
|
8
8
|
import type { ExtensionLoader } from "../../extensions/extension-loader";
|
|
9
9
|
import type { LensExtension } from "../../extensions/lens-extension";
|
|
10
10
|
import type { RouteHandler } from "../../extensions/registries/protocol-handler";
|
|
11
|
+
import type { Logger } from "../logger";
|
|
11
12
|
export declare const ProtocolHandlerIpcPrefix = "protocol-handler";
|
|
12
13
|
export declare const ProtocolHandlerInternal: string;
|
|
13
14
|
export declare const ProtocolHandlerExtension: string;
|
|
@@ -42,6 +43,7 @@ export declare function foldAttemptResults(mainAttempt: RouteAttempt, rendererAt
|
|
|
42
43
|
export interface LensProtocolRouterDependencies {
|
|
43
44
|
readonly extensionLoader: ExtensionLoader;
|
|
44
45
|
readonly extensionsStore: ExtensionsStore;
|
|
46
|
+
readonly logger: Logger;
|
|
45
47
|
}
|
|
46
48
|
export declare abstract class LensProtocolRouter {
|
|
47
49
|
protected readonly dependencies: LensProtocolRouterDependencies;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
4
4
|
*/
|
|
5
|
+
import AbortController from "abort-controller";
|
|
5
6
|
/**
|
|
6
7
|
* This is like an `AbortController` but will also abort if the parent aborts,
|
|
7
8
|
* but won't make the parent abort if this aborts (single direction)
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
4
4
|
*/
|
|
5
|
+
import type AbortController from "abort-controller";
|
|
5
6
|
/**
|
|
6
7
|
* Return a promise that will be resolved after at least `timeout` ms have
|
|
7
8
|
* passed. If `failFast` is provided then the promise is also resolved if it has
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
4
4
|
*/
|
|
5
|
+
import type { AbortSignal } from "abort-controller";
|
|
5
6
|
/**
|
|
6
7
|
* Creates a new promise that will be rejected when the signal rejects.
|
|
7
8
|
*
|
|
@@ -150,6 +150,7 @@ declare const packageJsonInjectable: import("@ogre-tools/injectable").Injectable
|
|
|
150
150
|
"@sentry/integrations": string;
|
|
151
151
|
"@side/jest-runtime": string;
|
|
152
152
|
"@types/circular-dependency-plugin": string;
|
|
153
|
+
"abort-controller": string;
|
|
153
154
|
"auto-bind": string;
|
|
154
155
|
"await-lock": string;
|
|
155
156
|
byline: string;
|