@k8slens/extensions 5.3.1-git.a2b9153e52.0 → 5.3.1-git.a9abcf99e4.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/catalog/catalog-entity.d.ts +1 -1
- package/dist/src/common/hotbar-store.d.ts +2 -3
- package/dist/src/common/ipc/catalog.d.ts +12 -10
- package/dist/src/common/{cluster-ipc.d.ts → ipc/cluster.d.ts} +8 -0
- package/dist/src/{renderer/remote-helpers → common/ipc}/dialog.d.ts +1 -1
- package/dist/src/common/ipc/extension-handling.d.ts +8 -0
- package/dist/src/common/ipc/hotbar.d.ts +1 -1
- package/dist/src/common/ipc/index.d.ts +1 -6
- package/dist/src/common/ipc/ipc.d.ts +2 -3
- package/dist/src/common/ipc/{update-available.ipc.d.ts → update-available.d.ts} +0 -0
- package/dist/src/common/ipc/window.d.ts +33 -0
- package/dist/src/common/{ipc/extension-loader.ipc.d.ts → ipc-channel/channel.d.ts} +4 -1
- package/dist/src/common/k8s-api/kube-watch-event.d.ts +9 -0
- package/dist/src/extensions/common-api/registrations.d.ts +1 -1
- package/dist/src/extensions/extension-api.js +88 -171
- package/dist/src/extensions/extension-discovery/extension-discovery.d.ts +0 -1
- package/dist/src/extensions/extension-loader/extension-loader.d.ts +0 -2
- package/dist/src/extensions/lens-renderer-extension.d.ts +2 -1
- package/dist/src/extensions/registries/index.d.ts +0 -1
- package/dist/src/main/cluster-manager.d.ts +1 -1
- package/dist/src/main/ipc/dialog.d.ts +9 -0
- package/dist/src/main/ipc/window.d.ts +7 -0
- package/dist/src/main/menu/menu-registration.d.ts +8 -0
- package/dist/src/main/tray/tray-menu-registration.d.ts +13 -0
- package/dist/src/main/window-manager.d.ts +0 -3
- package/dist/src/renderer/components/+extensions/attempt-install/install-request.d.ts +9 -0
- package/dist/src/renderer/components/+extensions/{install-from-select-file-dialog/install-from-select-file-dialog.injectable.d.ts → install-from-select-file-dialog.injectable.d.ts} +0 -0
- package/dist/src/renderer/components/+preferences/app-preferences/app-preference-registration.d.ts +18 -0
- package/dist/src/renderer/components/+user-management/+service-accounts/details.d.ts +1 -1
- package/dist/src/renderer/components/+welcome/welcome-banner-items/welcome-banner-registration.d.ts +19 -0
- package/dist/src/renderer/components/+welcome/welcome-menu-items/welcome-menu-registration.d.ts +9 -0
- package/dist/src/renderer/components/+workloads-pods/pod-details-secrets.d.ts +1 -1
- package/dist/src/renderer/components/cluster-manager/bottom-bar-items.injectable.d.ts +4 -0
- package/dist/src/renderer/components/cluster-manager/bottom-bar.d.ts +3 -6
- package/dist/src/{extensions/registries/status-bar-registry.d.ts → renderer/components/cluster-manager/status-bar-registration.d.ts} +1 -4
- package/dist/src/renderer/components/command-palette/registered-commands/commands.d.ts +47 -0
- package/dist/src/renderer/components/dialog/dialog.d.ts +0 -1
- package/dist/src/renderer/components/icon/icon.d.ts +1 -0
- package/dist/src/renderer/components/input/search-input-url.d.ts +1 -1
- package/dist/src/renderer/components/kube-object-details/kube-object-details.d.ts +1 -1
- package/dist/src/renderer/components/layout/top-bar/top-bar-registration.d.ts +12 -0
- package/dist/src/renderer/components/path-picker/path-picker.d.ts +1 -1
- package/dist/src/renderer/hooks/index.d.ts +1 -0
- package/dist/src/renderer/hooks/use-toggle.d.ts +1 -0
- package/dist/src/renderer/ipc/index.d.ts +35 -1
- package/dist/src/renderer/{remote-helpers/index.d.ts → ipc/register-listeners.d.ts} +1 -2
- package/package.json +1 -1
- package/dist/src/common/ipc/cluster.ipc.d.ts +0 -11
- package/dist/src/renderer/components/+catalog/catalog-entity-item.d.ts +0 -23
- package/dist/src/renderer/components/+extensions/install-from-select-file-dialog/install-from-select-file-dialog.d.ts +0 -6
|
@@ -54,7 +54,6 @@ export declare class ExtensionDiscovery {
|
|
|
54
54
|
get whenLoaded(): Promise<void> & {
|
|
55
55
|
cancel(): void;
|
|
56
56
|
};
|
|
57
|
-
protected static readonly extensionDiscoveryChannel = "extension-discovery:main";
|
|
58
57
|
events: EventEmitter;
|
|
59
58
|
constructor(dependencies: Dependencies);
|
|
60
59
|
get localFolderPath(): string;
|
|
@@ -32,8 +32,6 @@ export declare class ExtensionLoader {
|
|
|
32
32
|
* This is updated by the `observe` in the constructor. DO NOT write directly to it
|
|
33
33
|
*/
|
|
34
34
|
protected instancesByName: import("mobx").ObservableMap<string, LensExtension>;
|
|
35
|
-
protected static readonly extensionsMainChannel = "extensions:main";
|
|
36
|
-
protected static readonly extensionsRendererChannel = "extensions:renderer";
|
|
37
35
|
private events;
|
|
38
36
|
isLoaded: boolean;
|
|
39
37
|
get whenLoaded(): Promise<void> & {
|
|
@@ -16,6 +16,7 @@ import type { CommandRegistration } from "../renderer/components/command-palette
|
|
|
16
16
|
import type { AppPreferenceRegistration } from "../renderer/components/+preferences/app-preferences/app-preference-registration";
|
|
17
17
|
import type { AdditionalCategoryColumnRegistration } from "../renderer/components/+catalog/custom-category-columns";
|
|
18
18
|
import type { CustomCategoryViewRegistration } from "../renderer/components/+catalog/custom-views";
|
|
19
|
+
import type { StatusBarRegistration } from "../renderer/components/cluster-manager/status-bar-registration";
|
|
19
20
|
export declare class LensRendererExtension extends LensExtension {
|
|
20
21
|
globalPages: registries.PageRegistration[];
|
|
21
22
|
clusterPages: registries.PageRegistration[];
|
|
@@ -23,7 +24,7 @@ export declare class LensRendererExtension extends LensExtension {
|
|
|
23
24
|
kubeObjectStatusTexts: registries.KubeObjectStatusRegistration[];
|
|
24
25
|
appPreferences: AppPreferenceRegistration[];
|
|
25
26
|
entitySettings: registries.EntitySettingRegistration[];
|
|
26
|
-
statusBarItems:
|
|
27
|
+
statusBarItems: StatusBarRegistration[];
|
|
27
28
|
kubeObjectDetailItems: registries.KubeObjectDetailRegistration[];
|
|
28
29
|
kubeObjectMenuItems: registries.KubeObjectMenuRegistration[];
|
|
29
30
|
kubeWorkloadsOverviewItems: registries.WorkloadsOverviewDetailRegistration[];
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
4
4
|
*/
|
|
5
5
|
/// <reference types="node" />
|
|
6
|
-
import "../common/cluster
|
|
6
|
+
import "../common/ipc/cluster";
|
|
7
7
|
import type http from "http";
|
|
8
8
|
import { Cluster } from "../common/cluster/cluster";
|
|
9
9
|
import { Singleton } from "../common/utils";
|
|
@@ -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 { OpenDialogOptions } from "electron";
|
|
6
|
+
export declare function showOpenDialog(dialogOptions: OpenDialogOptions): Promise<{
|
|
7
|
+
canceled: boolean;
|
|
8
|
+
filePaths: string[];
|
|
9
|
+
}>;
|
|
@@ -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 { WindowAction } from "../../common/ipc/window";
|
|
6
|
+
export declare function handleWindowAction(action: WindowAction): void;
|
|
7
|
+
export declare function onLocationChange(): void;
|
|
@@ -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 { MenuItemConstructorOptions } from "electron";
|
|
6
|
+
export interface MenuRegistration extends MenuItemConstructorOptions {
|
|
7
|
+
parentId: string;
|
|
8
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
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 TrayMenuRegistration {
|
|
6
|
+
label?: string;
|
|
7
|
+
click?: (menuItem: TrayMenuRegistration) => void;
|
|
8
|
+
id?: string;
|
|
9
|
+
type?: "normal" | "separator" | "submenu";
|
|
10
|
+
toolTip?: string;
|
|
11
|
+
enabled?: boolean;
|
|
12
|
+
submenu?: TrayMenuRegistration[];
|
|
13
|
+
}
|
|
@@ -7,9 +7,6 @@ import { BrowserWindow } from "electron";
|
|
|
7
7
|
import windowStateKeeper from "electron-window-state";
|
|
8
8
|
import { Singleton } from "../common/utils";
|
|
9
9
|
import { ClusterFrameInfo } from "../common/cluster-frames";
|
|
10
|
-
export declare const enum IpcMainWindowEvents {
|
|
11
|
-
OPEN_CONTEXT_MENU = "window:open-context-menu"
|
|
12
|
-
}
|
|
13
10
|
export interface SendToViewArgs {
|
|
14
11
|
channel: string;
|
|
15
12
|
frameInfo?: ClusterFrameInfo;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
4
|
+
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
5
|
+
*/
|
|
6
|
+
export interface InstallRequest {
|
|
7
|
+
fileName: string;
|
|
8
|
+
dataP: Promise<Buffer | null>;
|
|
9
|
+
}
|
|
File without changes
|
package/dist/src/renderer/components/+preferences/app-preferences/app-preference-registration.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
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 React from "react";
|
|
6
|
+
export interface AppPreferenceComponents {
|
|
7
|
+
Hint: React.ComponentType<any>;
|
|
8
|
+
Input: React.ComponentType<any>;
|
|
9
|
+
}
|
|
10
|
+
export interface AppPreferenceRegistration {
|
|
11
|
+
title: string;
|
|
12
|
+
id?: string;
|
|
13
|
+
showInPreferencesTab?: string;
|
|
14
|
+
components: AppPreferenceComponents;
|
|
15
|
+
}
|
|
16
|
+
export interface RegisteredAppPreference extends AppPreferenceRegistration {
|
|
17
|
+
id: string;
|
|
18
|
+
}
|
|
@@ -11,7 +11,7 @@ interface Props extends KubeObjectDetailsProps<ServiceAccount> {
|
|
|
11
11
|
export declare class ServiceAccountsDetails extends React.Component<Props> {
|
|
12
12
|
secrets: Secret[];
|
|
13
13
|
imagePullSecrets: Secret[];
|
|
14
|
-
|
|
14
|
+
componentDidMount(): void;
|
|
15
15
|
constructor(props: Props);
|
|
16
16
|
renderSecrets(): JSX.Element | JSX.Element[];
|
|
17
17
|
renderImagePullSecrets(): JSX.Element | JSX.Element[];
|
package/dist/src/renderer/components/+welcome/welcome-banner-items/welcome-banner-registration.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
3
|
+
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
4
|
+
*/
|
|
5
|
+
/// <reference types="react" />
|
|
6
|
+
/**
|
|
7
|
+
* WelcomeBannerRegistration is for an extension to register
|
|
8
|
+
* Provide a Banner component to be renderered in the welcome screen.
|
|
9
|
+
*/
|
|
10
|
+
export interface WelcomeBannerRegistration {
|
|
11
|
+
/**
|
|
12
|
+
* The banner component to be shown on the welcome screen.
|
|
13
|
+
*/
|
|
14
|
+
Banner?: React.ComponentType;
|
|
15
|
+
/**
|
|
16
|
+
* The banner width in px.
|
|
17
|
+
*/
|
|
18
|
+
width?: number;
|
|
19
|
+
}
|
package/dist/src/renderer/components/+welcome/welcome-menu-items/welcome-menu-registration.d.ts
ADDED
|
@@ -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
|
+
export interface WelcomeMenuRegistration {
|
|
6
|
+
title: string | (() => string);
|
|
7
|
+
icon: string;
|
|
8
|
+
click: () => void | Promise<void>;
|
|
9
|
+
}
|
|
@@ -10,7 +10,7 @@ interface Props {
|
|
|
10
10
|
}
|
|
11
11
|
export declare class PodDetailsSecrets extends Component<Props> {
|
|
12
12
|
secrets: Map<string, Secret>;
|
|
13
|
-
|
|
13
|
+
componentDidMount(): void;
|
|
14
14
|
constructor(props: Props);
|
|
15
15
|
render(): JSX.Element;
|
|
16
16
|
protected renderSecretLink(secret: Secret): JSX.Element;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="@ogre-tools/injectable" />
|
|
2
|
+
import type { StatusBarRegistration } from "./status-bar-registration";
|
|
3
|
+
declare const bottomBarItemsInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<import("mobx").IComputedValue<StatusBarRegistration[]>, unknown>, import("mobx").IComputedValue<StatusBarRegistration[]>, unknown>;
|
|
4
|
+
export default bottomBarItemsInjectable;
|
|
@@ -3,9 +3,6 @@
|
|
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
4
4
|
*/
|
|
5
5
|
import React from "react";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
renderRegisteredItems(): JSX.Element;
|
|
10
|
-
render(): JSX.Element;
|
|
11
|
-
}
|
|
6
|
+
export declare const BottomBar: React.ForwardRefExoticComponent<React.RefAttributes<any> & {
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
}>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
/**
|
|
2
3
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
3
4
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
4
5
|
*/
|
|
5
|
-
import type React from "react";
|
|
6
|
-
import { BaseRegistry } from "./base-registry";
|
|
7
6
|
interface StatusBarComponents {
|
|
8
7
|
Item?: React.ComponentType;
|
|
9
8
|
/**
|
|
@@ -22,6 +21,4 @@ export interface StatusBarRegistration extends StatusBarRegistrationV2 {
|
|
|
22
21
|
*/
|
|
23
22
|
item?: React.ReactNode;
|
|
24
23
|
}
|
|
25
|
-
export declare class StatusBarRegistry extends BaseRegistry<StatusBarRegistration> {
|
|
26
|
-
}
|
|
27
24
|
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
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 { CatalogEntity } from "../../../../common/catalog";
|
|
6
|
+
/**
|
|
7
|
+
* The context given to commands when executed
|
|
8
|
+
*/
|
|
9
|
+
export interface CommandContext {
|
|
10
|
+
entity?: CatalogEntity;
|
|
11
|
+
}
|
|
12
|
+
export interface CommandActionNavigateOptions {
|
|
13
|
+
/**
|
|
14
|
+
* If `true` then the navigate will only navigate on the root frame and not
|
|
15
|
+
* within a cluster
|
|
16
|
+
* @default false
|
|
17
|
+
*/
|
|
18
|
+
forceRootFrame?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface CommandActionContext extends CommandContext {
|
|
21
|
+
navigate: (url: string, opts?: CommandActionNavigateOptions) => void;
|
|
22
|
+
}
|
|
23
|
+
export interface CommandRegistration {
|
|
24
|
+
/**
|
|
25
|
+
* The ID of the command, must be globally unique
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* The display name of the command in the command pallet
|
|
30
|
+
*/
|
|
31
|
+
title: string | ((context: CommandContext) => string);
|
|
32
|
+
/**
|
|
33
|
+
* @deprecated use `isActive` instead since there is always an entity active
|
|
34
|
+
*/
|
|
35
|
+
scope?: "global" | "entity";
|
|
36
|
+
/**
|
|
37
|
+
* The function to run when this command is selected
|
|
38
|
+
*/
|
|
39
|
+
action: (context: CommandActionContext) => void;
|
|
40
|
+
/**
|
|
41
|
+
* A function that determines if the command is active.
|
|
42
|
+
*
|
|
43
|
+
* @default () => true
|
|
44
|
+
*/
|
|
45
|
+
isActive?: (context: CommandContext) => boolean;
|
|
46
|
+
}
|
|
47
|
+
export declare type RegisteredCommand = Required<Omit<CommandRegistration, "scope">>;
|
|
@@ -23,7 +23,6 @@ export declare class Dialog extends React.PureComponent<DialogProps, DialogState
|
|
|
23
23
|
private contentElem;
|
|
24
24
|
ref: React.RefObject<HTMLDivElement>;
|
|
25
25
|
static defaultProps: DialogProps;
|
|
26
|
-
closeOnNavigate: import("mobx").IReactionDisposer;
|
|
27
26
|
state: DialogState;
|
|
28
27
|
get elem(): HTMLElement;
|
|
29
28
|
get isOpen(): boolean;
|
|
@@ -22,6 +22,7 @@ export interface IconProps extends React.HTMLAttributes<any>, TooltipDecoratorPr
|
|
|
22
22
|
disabled?: boolean;
|
|
23
23
|
}
|
|
24
24
|
export declare class Icon extends React.PureComponent<IconProps> {
|
|
25
|
+
private readonly ref;
|
|
25
26
|
static defaultProps: IconProps;
|
|
26
27
|
get isInteractive(): boolean;
|
|
27
28
|
onClick(evt: React.MouseEvent): void;
|
|
@@ -11,8 +11,8 @@ export interface SearchInputUrlProps extends InputProps {
|
|
|
11
11
|
}
|
|
12
12
|
export declare class SearchInputUrl extends React.Component<SearchInputUrlProps> {
|
|
13
13
|
inputVal: string;
|
|
14
|
-
updateInput: import("mobx").IReactionDisposer;
|
|
15
14
|
updateUrl: import("lodash").DebouncedFunc<(val: string) => void>;
|
|
15
|
+
componentDidMount(): void;
|
|
16
16
|
setValue: (value: string) => void;
|
|
17
17
|
clear: () => void;
|
|
18
18
|
onChange: (val: string, evt: React.ChangeEvent<any>) => void;
|
|
@@ -15,6 +15,6 @@ export declare class KubeObjectDetails extends React.Component {
|
|
|
15
15
|
constructor(props: {});
|
|
16
16
|
get path(): string;
|
|
17
17
|
get object(): KubeObject<import("../../../common/k8s-api/kube-object").KubeObjectMetadata, any, any>;
|
|
18
|
-
|
|
18
|
+
componentDidMount(): void;
|
|
19
19
|
render(): JSX.Element;
|
|
20
20
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
4
|
+
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
5
|
+
*/
|
|
6
|
+
interface TopBarComponents {
|
|
7
|
+
Item: React.ComponentType;
|
|
8
|
+
}
|
|
9
|
+
export interface TopBarRegistration {
|
|
10
|
+
components: TopBarComponents;
|
|
11
|
+
}
|
|
12
|
+
export {};
|
|
@@ -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
|
-
import { FileFilter, OpenDialogOptions } from "electron";
|
|
5
|
+
import type { FileFilter, OpenDialogOptions } from "electron";
|
|
6
6
|
import React from "react";
|
|
7
7
|
export interface PathPickOpts {
|
|
8
8
|
label: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useToggle(initial: boolean): [value: boolean, toggle: () => void];
|
|
@@ -2,4 +2,38 @@
|
|
|
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
|
-
|
|
5
|
+
import { OpenDialogOptions } from "electron";
|
|
6
|
+
import type { ClusterId, ClusterState } from "../../common/cluster-types";
|
|
7
|
+
import { type WindowAction } from "../../common/ipc/window";
|
|
8
|
+
import type { InstalledExtension } from "../../extensions/extension-discovery/extension-discovery";
|
|
9
|
+
import type { LensExtensionId } from "../../extensions/lens-extension";
|
|
10
|
+
import type { Location } from "history";
|
|
11
|
+
export declare function emitOpenAppMenuAsContextMenu(): void;
|
|
12
|
+
export declare function emitWindowLocationChanged(location: Location): void;
|
|
13
|
+
export declare function requestWindowAction(type: WindowAction): Promise<void>;
|
|
14
|
+
export declare function requestOpenFilePickingDialog(opts: OpenDialogOptions): Promise<{
|
|
15
|
+
canceled: boolean;
|
|
16
|
+
filePaths: string[];
|
|
17
|
+
}>;
|
|
18
|
+
export declare function requestSetClusterFrameId(clusterId: ClusterId): Promise<void>;
|
|
19
|
+
export declare function requestClusterActivation(clusterId: ClusterId, force?: boolean): Promise<void>;
|
|
20
|
+
export declare function requestClusterDisconnection(clusterId: ClusterId, force?: boolean): Promise<void>;
|
|
21
|
+
export declare function requestSetClusterAsDeleting(clusterId: ClusterId): Promise<void>;
|
|
22
|
+
export declare function requestClearClusterAsDeleting(clusterId: ClusterId): Promise<void>;
|
|
23
|
+
export declare function requestDeleteCluster(clusterId: ClusterId): Promise<void>;
|
|
24
|
+
export declare function requestInitialClusterStates(): Promise<{
|
|
25
|
+
id: string;
|
|
26
|
+
state: ClusterState;
|
|
27
|
+
}[]>;
|
|
28
|
+
export declare function requestKubectlApplyAll(clusterId: ClusterId, resources: string[], kubectlArgs: string[]): Promise<{
|
|
29
|
+
stderr?: string;
|
|
30
|
+
stdout?: string;
|
|
31
|
+
}>;
|
|
32
|
+
export declare function requestKubectlDeleteAll(clusterId: ClusterId, resources: string[], kubectlArgs: string[]): Promise<{
|
|
33
|
+
stderr?: string;
|
|
34
|
+
stdout?: string;
|
|
35
|
+
}>;
|
|
36
|
+
export declare function requestInitialExtensionDiscovery(): Promise<{
|
|
37
|
+
isLoaded: boolean;
|
|
38
|
+
}>;
|
|
39
|
+
export declare function requestExtensionLoaderInitialState(): Promise<[LensExtensionId, InstalledExtension][]>;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@k8slens/extensions",
|
|
3
3
|
"productName": "OpenLens extensions",
|
|
4
4
|
"description": "OpenLens - Open Source Kubernetes IDE: extensions",
|
|
5
|
-
"version": "5.3.1-git.
|
|
5
|
+
"version": "5.3.1-git.a9abcf99e4.0",
|
|
6
6
|
"copyright": "© 2021 OpenLens Authors",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"main": "dist/src/extensions/extension-api.js",
|
|
@@ -1,11 +0,0 @@
|
|
|
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
|
-
* This channel is broadcast on whenever the cluster fails to list namespaces
|
|
7
|
-
* during a refresh and no `accessibleNamespaces` have been set.
|
|
8
|
-
*/
|
|
9
|
-
export declare const ClusterListNamespaceForbiddenChannel = "cluster:list-namespace-forbidden";
|
|
10
|
-
export declare type ListNamespaceForbiddenArgs = [clusterId: string];
|
|
11
|
-
export declare function isListNamespaceForbiddenArgs(args: unknown[]): args is ListNamespaceForbiddenArgs;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { CatalogEntity } from "../../api/catalog-entity";
|
|
3
|
-
import type { ItemObject } from "../../../common/item.store";
|
|
4
|
-
import type { CatalogEntityRegistry } from "../../api/catalog-entity-registry";
|
|
5
|
-
export declare class CatalogEntityItem<T extends CatalogEntity> implements ItemObject {
|
|
6
|
-
entity: T;
|
|
7
|
-
private registry;
|
|
8
|
-
constructor(entity: T, registry: CatalogEntityRegistry);
|
|
9
|
-
get kind(): string;
|
|
10
|
-
get apiVersion(): string;
|
|
11
|
-
get name(): string;
|
|
12
|
-
getName(): string;
|
|
13
|
-
get id(): string;
|
|
14
|
-
getId(): string;
|
|
15
|
-
get phase(): string;
|
|
16
|
-
get enabled(): boolean;
|
|
17
|
-
get labels(): string[];
|
|
18
|
-
getLabelBadges(onClick?: React.MouseEventHandler<any>): JSX.Element[];
|
|
19
|
-
get source(): string;
|
|
20
|
-
get searchFields(): string[];
|
|
21
|
-
onRun(): void;
|
|
22
|
-
onContextMenuOpen(ctx: any): Promise<void>;
|
|
23
|
-
}
|