1 | import * as request from "request";
|
2 | import { Config } from "./types/config";
|
3 | export interface IKubernetesClientConfig {
|
4 | apiServerURL: string;
|
5 | namespace: string;
|
6 | mapRequestOptions<T extends request.Options = request.Options>(opts: T): T;
|
7 | }
|
8 | export 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 | }
|
15 | export declare class FileBasedConfig extends GenericClientConfig {
|
16 | constructor(kubeconfigFile: string);
|
17 | }
|
18 | export declare class InClusterConfig extends GenericClientConfig {
|
19 | constructor(namespace?: string);
|
20 | }
|