kui-shell
Version:
This is the monorepo for Kui, the hybrid command-line/GUI electron-based Kubernetes tool
25 lines (24 loc) • 961 B
TypeScript
/// <reference types="node" />
import { Server } from 'https';
import { Channel } from './channel';
import Commands from '@kui-shell/core/api/commands';
export declare type ExitHandler = (exitCode: number) => void;
interface Session {
uid: number;
gid: number;
token: string;
}
export interface SessionCookie {
key: string;
session: Session;
}
export declare const disableBashSessions: () => Promise<ExitHandler>;
export declare const getLoginShell: () => Promise<string>;
export declare function setShellAliases(aliases: Record<string, string>): void;
export declare const onConnection: (exitNow: ExitHandler, uid?: number, gid?: number) => (ws: Channel) => Promise<void>;
export declare const main: (N: string, server?: Server, preexistingPort?: number, expectedCookie?: SessionCookie) => Promise<number | {
wss: Server;
port: number;
}>;
declare const _default: (commandTree: Commands.Registrar) => void;
export default _default;