vscode-kubernetes-tools-api
Version:
Documents and encapsulates the API for the Kubernetes extension for Visual Studio Code
40 lines (39 loc) • 1.11 kB
TypeScript
/**
* Exposes the Kubernetes extension's Configuration settings.
*/
export interface ConfigurationV1 {
/**
* Gets the path for the kubeconfig currently in use.
* @returns a KubeconfigPath designating the environment the path relates to, and the path.
*/
getKubeconfigPath(): ConfigurationV1.KubeconfigPath;
}
export declare namespace ConfigurationV1 {
/**
* Represents the path to the kubeconfig on the host machine.
*/
interface HostKubeconfigPath {
/**
* The environment the path relates to.
*/
readonly pathType: 'host';
/**
* The path to the kubeconfig.
*/
hostPath: string;
}
/**
* Represents the path to the kubeconfig on WSL.
*/
interface WSLKubeconfigPath {
/**
* The environment the path relates to.
*/
readonly pathType: 'wsl';
/**
* The path to the kubeconfig.
*/
wslPath: string;
}
type KubeconfigPath = HostKubeconfigPath | WSLKubeconfigPath;
}