UNPKG

@mittwald/kubernetes

Version:

Kubernetes client library

21 lines (20 loc) 737 B
import * as request from "request"; import { Config } from "./types/config"; export interface IKubernetesClientConfig { apiServerURL: string; namespace: string; mapRequestOptions<T extends request.Options = request.Options>(opts: T): T; } export declare class GenericClientConfig implements IKubernetesClientConfig { private kubeconfig; apiServerURL: string; namespace: string; constructor(kubeconfig: Config); mapRequestOptions<T extends request.Options = request.Options>(opts: T): T; } export declare class FileBasedConfig extends GenericClientConfig { constructor(kubeconfigFile: string); } export declare class InClusterConfig extends GenericClientConfig { constructor(namespace?: string); }