UNPKG

737 BTypeScriptView Raw
1import * as request from "request";
2import { Config } from "./types/config";
3export interface IKubernetesClientConfig {
4 apiServerURL: string;
5 namespace: string;
6 mapRequestOptions<T extends request.Options = request.Options>(opts: T): T;
7}
8export declare class GenericClientConfig implements IKubernetesClientConfig {
9 private kubeconfig;
10 apiServerURL: string;
11 namespace: string;
12 constructor(kubeconfig: Config);
13 mapRequestOptions<T extends request.Options = request.Options>(opts: T): T;
14}
15export declare class FileBasedConfig extends GenericClientConfig {
16 constructor(kubeconfigFile: string);
17}
18export declare class InClusterConfig extends GenericClientConfig {
19 constructor(namespace?: string);
20}