kui-shell
Version:
This is the monorepo for Kui, the hybrid command-line/GUI electron-based Kubernetes tool
100 lines (99 loc) • 2.29 kB
TypeScript
export declare type State = string;
export declare const States: {
Active: string;
Online: string;
Ready: string;
Running: string;
Completed: string;
Succeeded: string;
ProvisionedSuccessfully: string;
Deployed: string;
ChannelReady: string;
Addressable: string;
Offline: string;
Undeployed: string;
Failed: string;
Disparity: string;
NotProvisioned: string;
Unschedulable: string;
ErrImagePull: string;
ImagePullBackOff: string;
PodInitializing: string;
Retrying: string;
Deleting: string;
Deploying: string;
Pending: string;
Waiting: string;
Provisioning: string;
Conflict: string;
};
export declare enum FinalState {
NotPendingLike = 0,
OnlineLike = 1,
OfflineLike = 2
}
export declare enum TrafficLight {
Gray = "gray-background",
Red = "red-background",
Yellow = "yellow-background",
Green = "green-background"
}
export declare const state2Traffic: (state: string) => TrafficLight;
export declare const trafficMerge: (t1: TrafficLight, t2: TrafficLight) => TrafficLight;
export declare const rendering: {
cssForState: (state: string) => string;
outerCSS: string;
};
interface Watch {
apiVersion: string;
kind: string;
name: string;
type: string;
fqn: string;
namespace?: string;
context?: string;
labels?: any;
}
export declare const watchStatus: (watch: Watch, finalStateStr: string | FinalState, count?: number) => Promise<{
outerCSS: string;
value: string;
onclick: string;
slowPoll: number;
done: boolean;
css: string;
others: {
key: string;
value: any;
}[];
} | {
value: string;
others: {
key: string;
value: string;
}[];
outerCSS?: undefined;
onclick?: undefined;
slowPoll?: undefined;
done?: undefined;
css?: undefined;
} | {
done: boolean;
value: string;
css: string;
others: {
key: string;
value: string;
}[];
outerCSS?: undefined;
onclick?: undefined;
slowPoll?: undefined;
} | {
done: boolean;
outerCSS?: undefined;
value?: undefined;
onclick?: undefined;
slowPoll?: undefined;
css?: undefined;
others?: undefined;
}>;
export {};