kui-shell
Version:
This is the monorepo for Kui, the hybrid command-line/GUI electron-based Kubernetes tool
36 lines (35 loc) • 1.17 kB
TypeScript
import { Tab } from '@kui-shell/core/api/ui-lite';
import { ModeRegistration } from '@kui-shell/core/api/registrars';
import { Table } from '@kui-shell/core/api/table-models';
import { Resource, KubeResource } from '@kui-shell/plugin-k8s';
interface CRDBearer extends KubeResource {
spec: {
customresourcedefinitions: {
owned?: {
version: string;
description: string;
displayName: string;
kind: string;
name: string;
resources: {
kind: string;
name: string;
version: string;
}[];
specDescriptors: {
description: string;
displayName: string;
path: string;
'x-descriptors': string[];
}[];
}[];
};
};
}
export declare const crdsMode: ModeRegistration<KubeResource>;
interface Parameters {
command: string;
resource: Resource<CRDBearer>;
}
export declare const renderAndView: (tab: Tab, parameters: Parameters) => Table;
export {};