Lens app source code (#119)

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen authored and GitHub committed 2020-03-15 09:52:02 +02:00
1 parent 936cbd53d4
commit 1d0815abd2
797 files changed
+73714 -215

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
export interface IClusterConfigMap {
clusterName: string;
clusterUrl: string;
}
export interface IClusterInfo extends IClusterConfigMap {
kubeVersion?: string;
pharosVersion?: string;
}
+11
View File
@@ -0,0 +1,11 @@
import { IClusterInfo } from "../common/cluster";
export interface IConfig extends Partial<IClusterInfo> {
lensVersion?: string;
lensTheme?: string;
username?: string;
token?: string;
allowedNamespaces?: string[];
isClusterAdmin?: boolean;
chartsEnabled: boolean;
kubectlAccess?: boolean; // User accessed via kubectl-lens plugin
}
+14
View File
@@ -0,0 +1,14 @@
export interface IKubeWatchEvent<T = any> {
type: "ADDED" | "MODIFIED" | "DELETED";
object?: T;
}
export interface IKubeWatchRouteEvent {
type: "STREAM_END";
url: string;
status: number;
}
export interface IKubeWatchRouteQuery {
api: string | string[];
}
+12
View File
@@ -0,0 +1,12 @@
export interface ILicense {
name?: string;
maxNodes?: number;
owner?: {
company?: string;
firstName?: string;
lastName?: string;
username?: string;
};
validUntil?: string;
recurring?: boolean;
}
+4
View File
@@ -0,0 +1,4 @@
export type IMetricsQuery = string | string[] | {
[metricName: string]: string;
}