@k8slens/extensions 6.1.1-git.8c49ea8148.0 → 6.1.1-git.94a5f86b09.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/app-paths/app-paths-channel.d.ts +8 -0
- package/dist/src/common/application-update/restart-and-install-update-channel.d.ts +7 -0
- package/dist/src/common/fetch/download-binary.injectable.d.ts +8 -0
- package/dist/src/common/fetch/download-json.injectable.d.ts +8 -0
- package/dist/src/common/fetch/fetch.injectable.d.ts +2 -2
- package/dist/src/common/fetch/timeout-controller.d.ts +9 -0
- package/dist/src/common/front-end-routing/app-navigation-channel.d.ts +3 -0
- package/dist/src/common/front-end-routing/cluster-frame-navigation-channel.d.ts +3 -0
- package/dist/src/common/front-end-routing/routes/cluster/config/leases/leases-route.injectable.d.ts +6 -0
- package/dist/src/common/front-end-routing/routes/cluster/config/leases/navigate-to-leases.injectable.d.ts +2 -0
- package/dist/src/common/fs/exec-file.injectable.d.ts +7 -1
- package/dist/src/common/helm/{add-helm-repository-channel.injectable.d.ts → add-helm-repository-channel.d.ts} +6 -3
- package/dist/src/common/helm/get-active-helm-repositories-channel.d.ts +9 -0
- package/dist/src/common/helm/remove-helm-repository-channel.d.ts +9 -0
- package/dist/src/common/k8s-api/endpoints/index.d.ts +1 -0
- package/dist/src/common/k8s-api/endpoints/lease.api.d.ts +28 -0
- package/dist/src/common/k8s-api/endpoints/lease.api.injectable.d.ts +3 -0
- package/dist/src/common/rbac.d.ts +1 -1
- package/dist/src/common/root-frame/root-frame-rendered-channel.d.ts +7 -0
- package/dist/src/common/user-store/resolved-shell.injectable.d.ts +2 -0
- package/dist/src/common/utils/channel/enlist-message-channel-listener-injection-token.d.ts +3 -3
- package/dist/src/common/utils/channel/listening-on-message-channels.injectable.d.ts +6 -0
- package/dist/src/common/utils/channel/message-channel-listener-injection-token.d.ts +24 -6
- package/dist/src/common/utils/channel/message-to-channel-injection-token.d.ts +5 -6
- package/dist/src/common/utils/channel/request-channel-listener-injection-token.d.ts +8 -6
- package/dist/src/common/utils/channel/request-from-channel-injection-token.d.ts +5 -3
- package/dist/src/common/utils/disposer.d.ts +2 -1
- package/dist/src/common/utils/index.d.ts +0 -1
- package/dist/src/common/utils/objects.d.ts +1 -0
- package/dist/src/common/utils/resolve-system-proxy/resolve-system-proxy-channel.d.ts +7 -0
- package/dist/src/common/utils/sync-box/channel-listener.injectable.d.ts +8 -0
- package/dist/src/common/utils/sync-box/channels.d.ts +16 -0
- package/dist/src/common/utils/sync-box/handler.injectable.d.ts +5 -0
- package/dist/src/common/utils/type-narrowing.d.ts +1 -1
- package/dist/src/common/vars/build-semantic-version.injectable.d.ts +1 -1
- package/dist/src/extensions/extension-api.js +91 -80
- package/dist/src/extensions/extension-loader/extension-registrator-injection-token.d.ts +2 -1
- package/dist/src/features/cluster/delete-dialog/common/clear-as-deleting-channel.d.ts +8 -0
- package/dist/src/features/cluster/delete-dialog/common/delete-channel.d.ts +8 -0
- package/dist/src/features/cluster/delete-dialog/common/set-as-deleting-channel.d.ts +8 -0
- package/dist/src/features/cluster/delete-dialog/main/clear-as-deleting-channel-listener.injectable.d.ts +5 -0
- package/dist/src/features/cluster/delete-dialog/main/delete-channel-listener.injectable.d.ts +5 -0
- package/dist/src/features/cluster/delete-dialog/main/set-as-deleteing-channel-listener.injectable.d.ts +5 -0
- package/dist/src/features/navigation/reload-page/common/channel.d.ts +7 -0
- package/dist/src/features/navigation/reload-page/renderer/register-listener.global-override-for-injectable.d.ts +15 -0
- package/dist/src/features/navigation/reload-page/renderer/register-listener.injectable.d.ts +5 -0
- package/dist/src/main/app-paths/app-paths-request-channel-listener.injectable.d.ts +4 -3
- package/dist/src/main/application-update/restart-and-install-update/restart-and-install-update-listener.injectable.d.ts +3 -3
- package/dist/src/main/build-version/setup-channel.injectable.d.ts +5 -5
- package/dist/src/main/helm/exec-helm/exec-helm.injectable.d.ts +1 -1
- package/dist/src/main/helm/helm-service/get-helm-release-resources/call-for-helm-manifest/call-for-helm-manifest.injectable.d.ts +2 -2
- package/dist/src/main/helm/helm-service/get-helm-release-resources/get-helm-release-resources.injectable.d.ts +3 -2
- package/dist/src/main/helm/helm-service/get-helm-release.global-override-for-injectable.d.ts +6 -2
- package/dist/src/main/helm/helm-service/get-helm-release.injectable.d.ts +3 -1
- package/dist/src/main/helm/helm-service/update-helm-release.global-override-for-injectable.d.ts +6 -2
- package/dist/src/main/helm/helm-service/update-helm-release.injectable.d.ts +3 -1
- package/dist/src/main/helm/repositories/add-helm-repository/add-helm-repository-channel-listener.injectable.d.ts +3 -3
- package/dist/src/main/helm/repositories/get-active-helm-repositories/get-active-helm-repositories-channel-listener.injectable.d.ts +3 -3
- package/dist/src/main/helm/repositories/remove-helm-repository/remove-helm-repository-channel-listener.injectable.d.ts +3 -3
- package/dist/src/main/router/create-handler-for-route.injectable.d.ts +7 -0
- package/dist/src/main/router/router.d.ts +6 -4
- package/dist/src/main/routes/helm/releases/get-release-route.injectable.d.ts +5 -1
- package/dist/src/main/routes/helm/releases/update-release-route.injectable.d.ts +6 -2
- package/dist/src/main/{utils/channel/message-to-channel.test.d.ts → shell-session/local-shell-session/techincal.test.d.ts} +0 -0
- package/dist/src/main/shell-session/shell-session.d.ts +11 -3
- package/dist/src/main/shell-session/spawn-pty.global-override-for-injectable.d.ts +5 -0
- package/dist/src/main/shell-session/spawn-pty.injectable.d.ts +11 -0
- package/dist/src/main/start-main-application/lens-window/application-window/create-lens-window.injectable.d.ts +1 -1
- package/dist/src/main/start-main-application/runnables/{root-frame-rendered-channel-listener/root-frame-rendered-channel-listener.injectable.d.ts → root-frame-has-rendered/channel-listener.injectable.d.ts} +3 -3
- package/dist/src/main/tray/tray-menu-item/tray-menu-item-registrator.injectable.d.ts +1 -1
- package/dist/src/main/utils/channel/channel-listeners/enlist-message-channel-listener.injectable.d.ts +1 -1
- package/dist/src/main/utils/channel/channel-listeners/enlist-request-channel-listener.injectable.d.ts +5 -1
- package/dist/src/main/utils/channel/channel-listeners/listener-tokens.d.ts +20 -0
- package/dist/src/main/utils/channel/channel-listeners/listening-on-request-channels.injectable.d.ts +6 -0
- package/dist/src/main/utils/channel/channel-listeners/{start-listening-of-channels.injectable.d.ts → start-listening-on-channels.injectable.d.ts} +2 -2
- package/dist/src/main/utils/channel/message-to-channel.injectable.d.ts +2 -2
- package/dist/src/main/utils/clear-kube-env-vars.d.ts +1 -1
- package/dist/src/main/utils/resolve-system-proxy/resolve-system-proxy-channel-responder.injectable.d.ts +3 -3
- package/dist/src/main/utils/shell-env/compute-shell-environment.injectable.d.ts +9 -0
- package/dist/src/main/utils/shell-env/compute-unix-shell-environment.global-override-for-injectable.d.ts +9 -0
- package/dist/src/main/utils/shell-env/compute-unix-shell-environment.injectable.d.ts +7 -0
- package/dist/src/main/utils/sync-box/sync-box-initial-value-channel-listener.injectable.d.ts +7 -4
- package/dist/src/renderer/components/+catalog/columns/custom-token.d.ts +11 -0
- package/dist/src/renderer/components/+catalog/columns/extensions-registrator.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+catalog/columns/kubernetes-api-version.injectable.d.ts +13 -0
- package/dist/src/renderer/components/+catalog/columns/kubernetes-distribution.injectable.d.ts +13 -0
- package/dist/src/renderer/components/+catalog/custom-category-columns.injectable.d.ts +1 -2
- package/dist/src/{common/logger-transports → renderer/components/+config-leases}/index.d.ts +2 -1
- package/dist/src/renderer/components/+config-leases/lease-details.d.ts +13 -0
- package/dist/src/renderer/components/+config-leases/leases-route-component.injectable.d.ts +13 -0
- package/dist/src/renderer/components/+config-leases/leases-sidebar-items.injectable.d.ts +10 -0
- package/dist/src/renderer/components/+config-leases/leases.d.ts +11 -0
- package/dist/src/renderer/components/+config-leases/store.d.ts +8 -0
- package/dist/src/renderer/components/+config-leases/store.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+extensions/attempt-install/attempt-install.injectable.d.ts +8 -1
- package/dist/src/renderer/components/+extensions/attempt-install/{create-temp-files-and-validate/create-temp-files-and-validate.injectable.d.ts → create-temp-files-and-validate.injectable.d.ts} +4 -4
- package/dist/src/renderer/components/+extensions/attempt-install/{get-extension-dest-folder/get-extension-dest-folder.injectable.d.ts → get-extension-dest-folder.injectable.d.ts} +1 -1
- package/dist/src/renderer/components/+extensions/attempt-install/{unpack-extension/unpack-extension.injectable.d.ts → unpack-extension.injectable.d.ts} +2 -2
- package/dist/src/renderer/components/+extensions/attempt-install/validate-package.d.ts +6 -0
- package/dist/src/renderer/components/+extensions/{attempt-installs/attempt-installs.injectable.d.ts → attempt-installs.injectable.d.ts} +0 -0
- package/dist/src/renderer/components/+extensions/install-on-drop.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+helm-releases/release-details/release-details-model/release-details-model.injectable.d.ts +0 -1
- package/dist/src/renderer/components/+helm-releases/release-details/release-details-model/request-detailed-helm-release.injectable.d.ts +1 -1
- package/dist/src/renderer/components/+preferences/extension-telemetry-preference-item-registrator.injectable.d.ts +1 -1
- package/dist/src/renderer/components/+preferences/preferences-navigation/extension-tab-preferences-navigation-item.injectable.d.ts +1 -1
- package/dist/src/renderer/components/+preferences/preferences-navigation/extensions-preferences-navigation-item-registrator.injectable.d.ts +1 -1
- package/dist/src/renderer/components/+workloads-pods/details/volumes/variant-helpers.d.ts +1 -1
- package/dist/src/renderer/components/input/input.d.ts +2 -1
- package/dist/src/renderer/components/kube-object-details/kube-object-detail-items/implementations/lease-detail-item.injectable.d.ts +7 -0
- package/dist/src/renderer/components/kube-object-details/kube-object-detail-items/kube-object-detail-item-registrator.injectable.d.ts +1 -1
- package/dist/src/renderer/components/kube-object-menu/kube-object-menu-item-registrator.injectable.d.ts +1 -1
- package/dist/src/renderer/components/kube-object-status-icon/kube-object-status-text-registrator.injectable.d.ts +1 -1
- package/dist/src/renderer/components/layout/extension-sidebar-item-registrator.injectable.d.ts +1 -1
- package/dist/src/renderer/components/status-bar/status-bar-item-injection-token.d.ts +1 -0
- package/dist/src/renderer/components/status-bar/status-bar-item-registrator.injectable.d.ts +1 -1
- package/dist/src/renderer/components/status-bar/status-bar-items.injectable.d.ts +6 -2
- package/dist/src/renderer/navigation/events.d.ts +0 -1
- package/dist/src/renderer/navigation/navigation-channel-listener.injectable.d.ts +3 -2
- package/dist/src/renderer/routes/extension-route-registrator.injectable.d.ts +1 -1
- package/dist/src/renderer/utils/channel/channel-listeners/enlist-message-channel-listener.injectable.d.ts +1 -1
- package/dist/src/renderer/utils/channel/message-to-channel.injectable.d.ts +2 -2
- package/dist/src/renderer/utils/channel/request-from-channel.injectable.d.ts +2 -1
- package/dist/src/renderer/utils/channel/send-to-main.injectable.d.ts +1 -2
- package/dist/src/renderer/utils/resolve-proxy/resolve-system-proxy.injectable.d.ts +1 -1
- package/dist/src/test-utils/channel-fakes/override-channels.d.ts +6 -1
- package/dist/src/test-utils/channel-fakes/override-messaging-from-main-to-window.d.ts +6 -1
- package/package.json +1 -1
- package/dist/src/common/app-paths/app-paths-channel.injectable.d.ts +0 -5
- package/dist/src/common/application-update/restart-and-install-update-channel/restart-and-install-update-channel.injectable.d.ts +0 -4
- package/dist/src/common/front-end-routing/app-navigation-channel.injectable.d.ts +0 -4
- package/dist/src/common/front-end-routing/cluster-frame-navigation-channel.injectable.d.ts +0 -4
- package/dist/src/common/helm/get-active-helm-repositories-channel.injectable.d.ts +0 -6
- package/dist/src/common/helm/remove-helm-repository-channel.injectable.d.ts +0 -5
- package/dist/src/common/logger-transports/sentry.d.ts +0 -21
- package/dist/src/common/root-frame-rendered-channel/root-frame-rendered-channel.injectable.d.ts +0 -4
- package/dist/src/common/utils/channel/enlist-request-channel-listener-injection-token.d.ts +0 -4
- package/dist/src/common/utils/channel/listening-of-channels.injectable.d.ts +0 -6
- package/dist/src/common/utils/channel/message-channel-injection-token.d.ts +0 -10
- package/dist/src/common/utils/channel/request-channel-injection-token.d.ts +0 -11
- package/dist/src/common/utils/downloadFile.d.ts +0 -18
- package/dist/src/common/utils/resolve-system-proxy/resolve-system-proxy-channel.injectable.d.ts +0 -4
- package/dist/src/common/utils/sync-box/sync-box-channel-listener.injectable.d.ts +0 -4
- package/dist/src/common/utils/sync-box/sync-box-channel.injectable.d.ts +0 -7
- package/dist/src/common/utils/sync-box/sync-box-initial-value-channel.injectable.d.ts +0 -7
- package/dist/src/common/utils/tentative-parse-json.d.ts +0 -1
- package/dist/src/common/utils/tentative-stringify-json.d.ts +0 -1
- package/dist/src/features/cluster/delete-dialog/common/clear-as-deleting-channel.injectable.d.ts +0 -5
- package/dist/src/features/cluster/delete-dialog/common/delete-channel.injectable.d.ts +0 -5
- package/dist/src/features/cluster/delete-dialog/common/set-as-deleting-channel.injectable.d.ts +0 -5
- package/dist/src/features/cluster/delete-dialog/main/clear-as-deleteing-channel-handler.injectable.d.ts +0 -5
- package/dist/src/features/cluster/delete-dialog/main/delete-channel-handler.injectable.d.ts +0 -5
- package/dist/src/features/cluster/delete-dialog/main/set-as-deleteing-channel-handler.injectable.d.ts +0 -5
- package/dist/src/main/start-main-application/lens-window/application-window/send-to-channel-in-electron-browser-window.injectable.d.ts +0 -4
- package/dist/src/main/utils/shell-env.d.ts +0 -17
- package/dist/src/renderer/components/+extensions/attempt-install/attempt-install.d.ts +0 -22
- package/dist/src/renderer/components/+extensions/attempt-install/install-request.d.ts +0 -9
- package/dist/src/renderer/components/+extensions/attempt-install/validate-package/validate-package.d.ts +0 -6
- package/dist/src/renderer/components/+extensions/install-on-drop/install-on-drop.d.ts +0 -5
- package/dist/src/renderer/components/+extensions/install-on-drop/install-on-drop.injectable.d.ts +0 -2
- package/dist/src/renderer/utils/channel/channel-listeners/enlist-request-channel-listener.injectable.d.ts +0 -2
- package/dist/src/renderer/utils/channel/message-to-channel.test.d.ts +0 -5
- package/dist/src/renderer/utils/channel/request-from-channel.test.d.ts +0 -5
@@ -0,0 +1,8 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
|
+
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
|
+
*/
|
5
|
+
import type { AppPaths } from "./app-path-injection-token";
|
6
|
+
import type { RequestChannel } from "../utils/channel/request-channel-listener-injection-token";
|
7
|
+
export declare type AppPathsChannel = RequestChannel<void, AppPaths>;
|
8
|
+
export declare const appPathsChannel: AppPathsChannel;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
|
+
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
|
+
*/
|
5
|
+
import type { MessageChannel } from "../utils/channel/message-channel-listener-injection-token";
|
6
|
+
export declare type RestartAndInstallUpdateChannel = MessageChannel<void>;
|
7
|
+
export declare const restartAndInstallUpdateChannel: RestartAndInstallUpdateChannel;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
/// <reference types="node" />
|
2
|
+
import type { AsyncResult } from "../utils/async-result";
|
3
|
+
export interface DownloadBinaryOptions {
|
4
|
+
signal?: AbortSignal | null | undefined;
|
5
|
+
}
|
6
|
+
export declare type DownloadBinary = (url: string, opts?: DownloadBinaryOptions) => Promise<AsyncResult<Buffer, string>>;
|
7
|
+
declare const downloadBinaryInjectable: import("@ogre-tools/injectable").Injectable<DownloadBinary, unknown, void>;
|
8
|
+
export default downloadBinaryInjectable;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import type { JsonValue } from "type-fest";
|
2
|
+
import type { AsyncResult } from "../utils/async-result";
|
3
|
+
export interface DownloadJsonOptions {
|
4
|
+
signal?: AbortSignal | null | undefined;
|
5
|
+
}
|
6
|
+
export declare type DownloadJson = (url: string, opts?: DownloadJsonOptions) => Promise<AsyncResult<JsonValue, string>>;
|
7
|
+
declare const downloadJsonInjectable: import("@ogre-tools/injectable").Injectable<DownloadJson, unknown, void>;
|
8
|
+
export default downloadJsonInjectable;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type {
|
2
|
-
export declare type Fetch = (url:
|
1
|
+
import type { RequestInit, Response } from "node-fetch";
|
2
|
+
export declare type Fetch = (url: string, init?: RequestInit) => Promise<Response>;
|
3
3
|
declare const fetchInjectable: import("@ogre-tools/injectable").Injectable<Fetch, unknown, void>;
|
4
4
|
export default fetchInjectable;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
|
+
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
|
+
*/
|
5
|
+
/**
|
6
|
+
* Creates an AbortController with an associated timeout
|
7
|
+
* @param timeout The number of milliseconds before this controller will auto abort
|
8
|
+
*/
|
9
|
+
export declare function withTimeout(timeout: number): AbortController;
|
package/dist/src/common/front-end-routing/routes/cluster/config/leases/leases-route.injectable.d.ts
ADDED
@@ -0,0 +1,6 @@
|
|
1
|
+
declare const leasesRouteInjectable: import("@ogre-tools/injectable").Injectable<{
|
2
|
+
path: string;
|
3
|
+
clusterFrame: boolean;
|
4
|
+
isEnabled: import("mobx").IComputedValue<boolean>;
|
5
|
+
}, import("../../../../front-end-route-injection-token").Route<unknown>, void>;
|
6
|
+
export default leasesRouteInjectable;
|
@@ -1,5 +1,11 @@
|
|
1
1
|
/// <reference types="node" />
|
2
2
|
import type { ExecFileOptions } from "child_process";
|
3
|
-
|
3
|
+
import type { AsyncResult } from "../utils/async-result";
|
4
|
+
export interface ExecFile {
|
5
|
+
(filePath: string, args: string[], options: ExecFileOptions): Promise<AsyncResult<string, {
|
6
|
+
stderr: string;
|
7
|
+
error: Error;
|
8
|
+
}>>;
|
9
|
+
}
|
4
10
|
declare const execFileInjectable: import("@ogre-tools/injectable").Injectable<ExecFile, unknown, void>;
|
5
11
|
export default execFileInjectable;
|
@@ -1,6 +1,9 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
|
+
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
|
+
*/
|
1
5
|
import type { HelmRepo } from "./helm-repo";
|
2
|
-
import type { RequestChannel } from "../utils/channel/request-channel-injection-token";
|
3
6
|
import type { AsyncResult } from "../utils/async-result";
|
7
|
+
import type { RequestChannel } from "../utils/channel/request-channel-listener-injection-token";
|
4
8
|
export declare type AddHelmRepositoryChannel = RequestChannel<HelmRepo, AsyncResult<string>>;
|
5
|
-
declare const
|
6
|
-
export default addHelmRepositoryChannelInjectable;
|
9
|
+
export declare const addHelmRepositoryChannel: AddHelmRepositoryChannel;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
|
+
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
|
+
*/
|
5
|
+
import type { HelmRepo } from "./helm-repo";
|
6
|
+
import type { AsyncResult } from "../utils/async-result";
|
7
|
+
import type { RequestChannel } from "../utils/channel/request-channel-listener-injection-token";
|
8
|
+
export declare type GetActiveHelmRepositoriesChannel = RequestChannel<void, AsyncResult<HelmRepo[]>>;
|
9
|
+
export declare const getActiveHelmRepositoriesChannel: GetActiveHelmRepositoriesChannel;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
|
+
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
|
+
*/
|
5
|
+
import type { AsyncResult } from "../utils/async-result";
|
6
|
+
import type { RequestChannel } from "../utils/channel/request-channel-listener-injection-token";
|
7
|
+
import type { HelmRepo } from "./helm-repo";
|
8
|
+
export declare type RemoveHelmRepositoryChannel = RequestChannel<HelmRepo, AsyncResult<string, string>>;
|
9
|
+
export declare const removeHelmRepositoryChannel: RemoveHelmRepositoryChannel;
|
@@ -15,6 +15,7 @@ export * from "./events.api";
|
|
15
15
|
export * from "./horizontal-pod-autoscaler.api";
|
16
16
|
export * from "./ingress.api";
|
17
17
|
export * from "./job.api";
|
18
|
+
export * from "./lease.api";
|
18
19
|
export * from "./limit-range.api";
|
19
20
|
export * from "./namespace.api";
|
20
21
|
export * from "./network-policy.api";
|
@@ -0,0 +1,28 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
|
+
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
|
+
*/
|
5
|
+
import type { DerivedKubeApiOptions, IgnoredKubeApiOptions } from "../kube-api";
|
6
|
+
import { KubeApi } from "../kube-api";
|
7
|
+
import type { NamespaceScopedMetadata } from "../kube-object";
|
8
|
+
import { KubeObject } from "../kube-object";
|
9
|
+
export interface LeaseSpec {
|
10
|
+
acquireTime?: string;
|
11
|
+
holderIdentity: string;
|
12
|
+
leaseDurationSeconds: number;
|
13
|
+
leaseTransitions?: number;
|
14
|
+
renewTime: string;
|
15
|
+
}
|
16
|
+
export declare class Lease extends KubeObject<NamespaceScopedMetadata, void, LeaseSpec> {
|
17
|
+
static readonly kind = "Lease";
|
18
|
+
static readonly namespaced = true;
|
19
|
+
static readonly apiBase = "/apis/coordination.k8s.io/v1/leases";
|
20
|
+
getAcquireTime(): string;
|
21
|
+
getHolderIdentity(): string;
|
22
|
+
getLeaseDurationSeconds(): number;
|
23
|
+
getLeaseTransitions(): number | undefined;
|
24
|
+
getRenewTime(): string;
|
25
|
+
}
|
26
|
+
export declare class LeaseApi extends KubeApi<Lease> {
|
27
|
+
constructor(opts?: DerivedKubeApiOptions & IgnoredKubeApiOptions);
|
28
|
+
}
|
@@ -2,7 +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
|
-
export declare type KubeResource = "namespaces" | "nodes" | "events" | "resourcequotas" | "services" | "limitranges" | "secrets" | "configmaps" | "ingresses" | "networkpolicies" | "persistentvolumeclaims" | "persistentvolumes" | "storageclasses" | "pods" | "daemonsets" | "deployments" | "statefulsets" | "replicasets" | "jobs" | "cronjobs" | "endpoints" | "customresourcedefinitions" | "horizontalpodautoscalers" | "podsecuritypolicies" | "poddisruptionbudgets" | "priorityclasses" | "runtimeclasses" | "roles" | "clusterroles" | "rolebindings" | "clusterrolebindings" | "serviceaccounts";
|
5
|
+
export declare type KubeResource = "namespaces" | "nodes" | "events" | "resourcequotas" | "services" | "limitranges" | "leases" | "secrets" | "configmaps" | "ingresses" | "networkpolicies" | "persistentvolumeclaims" | "persistentvolumes" | "storageclasses" | "pods" | "daemonsets" | "deployments" | "statefulsets" | "replicasets" | "jobs" | "cronjobs" | "endpoints" | "customresourcedefinitions" | "horizontalpodautoscalers" | "podsecuritypolicies" | "poddisruptionbudgets" | "priorityclasses" | "runtimeclasses" | "roles" | "clusterroles" | "rolebindings" | "clusterrolebindings" | "serviceaccounts";
|
6
6
|
export interface KubeApiResource extends KubeApiResourceData {
|
7
7
|
apiName: KubeResource;
|
8
8
|
}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
|
+
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
|
+
*/
|
5
|
+
import type { MessageChannel } from "../utils/channel/message-channel-listener-injection-token";
|
6
|
+
export declare type RootFrameHasRenderedChannel = MessageChannel<void>;
|
7
|
+
export declare const rootFrameHasRenderedChannel: RootFrameHasRenderedChannel;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type {
|
2
|
-
import type { MessageChannelListener } from "./message-channel-listener-injection-token";
|
3
|
-
export declare type EnlistMessageChannelListener =
|
1
|
+
import type { Disposer } from "../disposer";
|
2
|
+
import type { MessageChannel, MessageChannelListener } from "./message-channel-listener-injection-token";
|
3
|
+
export declare type EnlistMessageChannelListener = (listener: MessageChannelListener<MessageChannel<unknown>>) => Disposer;
|
4
4
|
export declare const enlistMessageChannelListenerInjectionToken: import("@ogre-tools/injectable").InjectionToken<EnlistMessageChannelListener, void>;
|
@@ -1,7 +1,25 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
/**
|
2
|
+
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
|
+
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
|
+
*/
|
5
|
+
import type { DiContainerForInjection } from "@ogre-tools/injectable";
|
6
|
+
export interface MessageChannel<Message> {
|
7
|
+
id: string;
|
8
|
+
_messageSignature?: Message;
|
6
9
|
}
|
7
|
-
export declare
|
10
|
+
export declare type MessageChannelHandler<Channel> = Channel extends MessageChannel<infer Message> ? (message: Message) => void : never;
|
11
|
+
export interface MessageChannelListener<Channel> {
|
12
|
+
channel: Channel;
|
13
|
+
handler: MessageChannelHandler<Channel>;
|
14
|
+
}
|
15
|
+
export declare const messageChannelListenerInjectionToken: import("@ogre-tools/injectable").InjectionToken<MessageChannelListener<MessageChannel<unknown>>, void>;
|
16
|
+
export interface GetMessageChannelListenerInfo<Channel extends MessageChannel<Message>, Message> {
|
17
|
+
id: string;
|
18
|
+
channel: Channel;
|
19
|
+
handler: (di: DiContainerForInjection) => MessageChannelHandler<Channel>;
|
20
|
+
causesSideEffects?: boolean;
|
21
|
+
}
|
22
|
+
export declare function getMessageChannelListenerInjectable<Channel extends MessageChannel<Message>, Message>(info: GetMessageChannelListenerInfo<Channel, Message>): import("@ogre-tools/injectable").Injectable<{
|
23
|
+
channel: Channel;
|
24
|
+
handler: MessageChannelHandler<Channel>;
|
25
|
+
}, MessageChannelListener<MessageChannel<unknown>>, void>;
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import type {
|
2
|
-
|
3
|
-
|
4
|
-
<
|
5
|
-
<TChannel extends MessageChannel<any>>(channel: TChannel, message: SetRequired<TChannel, "_messageSignature">["_messageSignature"]): void;
|
1
|
+
import type { MessageChannel } from "./message-channel-listener-injection-token";
|
2
|
+
export interface SendMessageToChannel {
|
3
|
+
(channel: MessageChannel<void>): void;
|
4
|
+
<Message>(channel: MessageChannel<Message>, message: Message): void;
|
6
5
|
}
|
7
|
-
export declare const
|
6
|
+
export declare const sendMessageToChannelInjectionToken: import("@ogre-tools/injectable").InjectionToken<SendMessageToChannel, void>;
|
@@ -1,7 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
/**
|
2
|
+
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
|
+
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
|
+
*/
|
5
|
+
export interface RequestChannel<Request, Response> {
|
6
|
+
id: string;
|
7
|
+
_requestSignature?: Request;
|
8
|
+
_responseSignature?: Response;
|
6
9
|
}
|
7
|
-
export declare const requestChannelListenerInjectionToken: import("@ogre-tools/injectable").InjectionToken<RequestChannelListener<RequestChannel<any, any>>, void>;
|
@@ -1,4 +1,6 @@
|
|
1
|
-
import type {
|
2
|
-
|
3
|
-
|
1
|
+
import type { RequestChannel } from "./request-channel-listener-injection-token";
|
2
|
+
export interface RequestFromChannel {
|
3
|
+
<Request, Response>(channel: RequestChannel<Request, Response>, request: Request): Promise<Response>;
|
4
|
+
<Response>(channel: RequestChannel<void, Response>): Promise<Response>;
|
5
|
+
}
|
4
6
|
export declare const requestFromChannelInjectionToken: import("@ogre-tools/injectable").InjectionToken<RequestFromChannel, void>;
|
@@ -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 { SingleOrMany } from "./types";
|
5
6
|
export interface Disposer {
|
6
7
|
(): void;
|
7
8
|
}
|
@@ -11,4 +12,4 @@ export interface Disposable {
|
|
11
12
|
export interface ExtendableDisposer extends Disposer {
|
12
13
|
push(...vals: (Disposer | ExtendableDisposer | Disposable)[]): void;
|
13
14
|
}
|
14
|
-
export declare function disposer(...items:
|
15
|
+
export declare function disposer(...items: SingleOrMany<Disposer | Disposable | undefined | null>[]): ExtendableDisposer;
|
@@ -13,7 +13,6 @@ export * from "./convertMemory";
|
|
13
13
|
export * from "./debouncePromise";
|
14
14
|
export * from "./delay";
|
15
15
|
export * from "./disposer";
|
16
|
-
export * from "./downloadFile";
|
17
16
|
export * from "./escapeRegExp";
|
18
17
|
export * from "./formatDuration";
|
19
18
|
export * from "./getRandId";
|
@@ -8,5 +8,6 @@
|
|
8
8
|
*/
|
9
9
|
export declare function fromEntries<T, Key extends string>(entries: Iterable<readonly [Key, T]>): Record<Key, T>;
|
10
10
|
export declare function keys<K extends keyof any>(obj: Partial<Record<K, any>>): K[];
|
11
|
+
export declare function entries<K extends string, V>(obj: Partial<Record<K, V>> | null | undefined): [K, V][];
|
11
12
|
export declare function entries<K extends string | number | symbol, V>(obj: Partial<Record<K, V>> | null | undefined): [K, V][];
|
12
13
|
export declare function entries<K extends string | number | symbol, V>(obj: Record<K, V> | null | undefined): [K, V][];
|
@@ -0,0 +1,7 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
|
+
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
|
+
*/
|
5
|
+
import type { RequestChannel } from "../channel/request-channel-listener-injection-token";
|
6
|
+
export declare type ResolveSystemProxyChannel = RequestChannel<string, string>;
|
7
|
+
export declare const resolveSystemProxyChannel: ResolveSystemProxyChannel;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
declare const syncBoxChannelListenerInjectable: import("@ogre-tools/injectable").Injectable<{
|
2
|
+
channel: import("./channels").SyncBoxChannel;
|
3
|
+
handler: (message: {
|
4
|
+
id: string;
|
5
|
+
value: any;
|
6
|
+
}) => void;
|
7
|
+
}, import("../channel/message-channel-listener-injection-token").MessageChannelListener<import("../channel/message-channel-listener-injection-token").MessageChannel<unknown>>, void>;
|
8
|
+
export default syncBoxChannelListenerInjectable;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
|
+
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
|
+
*/
|
5
|
+
import type { MessageChannel } from "../channel/message-channel-listener-injection-token";
|
6
|
+
import type { RequestChannel } from "../channel/request-channel-listener-injection-token";
|
7
|
+
export declare type SyncBoxChannel = MessageChannel<{
|
8
|
+
id: string;
|
9
|
+
value: any;
|
10
|
+
}>;
|
11
|
+
export declare const syncBoxChannel: SyncBoxChannel;
|
12
|
+
export declare type SyncBoxInitialValueChannel = RequestChannel<void, {
|
13
|
+
id: string;
|
14
|
+
value: any;
|
15
|
+
}[]>;
|
16
|
+
export declare const syncBoxInitialValueChannel: SyncBoxInitialValueChannel;
|
@@ -78,7 +78,7 @@ export declare function isBoolean(val: unknown): val is boolean;
|
|
78
78
|
* checks if val is of type object and isn't null
|
79
79
|
* @param val the value to be checked
|
80
80
|
*/
|
81
|
-
export declare function isObject(val: unknown): val is
|
81
|
+
export declare function isObject(val: unknown): val is Record<string | symbol | number, unknown>;
|
82
82
|
/**
|
83
83
|
* checks if `val` is defined, useful for filtering out undefined values in a strict manner
|
84
84
|
*/
|
@@ -4,7 +4,7 @@
|
|
4
4
|
*/
|
5
5
|
import { SemVer } from "semver";
|
6
6
|
import type { InitializableState } from "../initializable-state/create";
|
7
|
-
import type { RequestChannel } from "../utils/channel/request-channel-injection-token";
|
7
|
+
import type { RequestChannel } from "../utils/channel/request-channel-listener-injection-token";
|
8
8
|
export declare const buildVersionInjectionToken: import("@ogre-tools/injectable").InjectionToken<InitializableState<string>, void>;
|
9
9
|
export declare const buildVersionChannel: RequestChannel<void, string>;
|
10
10
|
declare const buildSemanticVersionInjectable: import("@ogre-tools/injectable").Injectable<InitializableState<SemVer>, unknown, void>;
|