vscode-kubernetes-tools-api
Advanced tools
Comparing version 1.1.0 to 1.2.0
# Change Log | ||
## 1.2.0 | ||
* Added Cluster Explorer API v1.1 | ||
Thanks to @lstocchi | ||
## 1.1.0 | ||
@@ -4,0 +10,0 @@ |
import { API } from '..'; | ||
import { ClusterExplorerV1 } from './v1'; | ||
import { ClusterExplorerV1_1 } from './v1_1'; | ||
/** | ||
@@ -11,2 +12,6 @@ * Provides access to the Kubernetes extension's Explorer Tree API. | ||
readonly v1: Promise<API<ClusterExplorerV1>>; | ||
/** | ||
* Provides access to v1_1 of the Kubernetes extension's Explorer Tree API. | ||
*/ | ||
readonly v1_1: Promise<API<ClusterExplorerV1_1>>; | ||
} |
@@ -8,2 +8,3 @@ import { Extension, API, ComponentKey, Version } from '.'; | ||
import { ConfigurationV1 } from './configuration/v1'; | ||
import { ClusterExplorerV1_1 } from './cluster-explorer/v1_1'; | ||
export declare class ExtensionHelper implements Extension { | ||
@@ -21,2 +22,3 @@ private readonly apiBroker; | ||
v1: Promise<API<ClusterExplorerV1>>; | ||
v1_1: Promise<API<ClusterExplorerV1_1>>; | ||
}>; | ||
@@ -23,0 +25,0 @@ readonly helm: Readonly<{ |
@@ -43,2 +43,3 @@ "use strict"; | ||
v1: this.get("clusterexplorer", "v1"), | ||
v1_1: this.get("clusterexplorer", "v1_1"), | ||
}); | ||
@@ -45,0 +46,0 @@ this.helm = readonlify({ |
@@ -7,2 +7,3 @@ import { ClusterProviderAPI } from './clusterprovider/versions'; | ||
import { ClusterExplorerV1 } from './cluster-explorer/v1'; | ||
import { ClusterExplorerV1_1 } from './cluster-explorer/v1_1'; | ||
import { HelmAPI } from './helm/versions'; | ||
@@ -20,2 +21,3 @@ import { HelmV1 } from './helm/v1'; | ||
export { ClusterExplorerV1 } from './cluster-explorer/v1'; | ||
export { ClusterExplorerV1_1 } from './cluster-explorer/v1_1'; | ||
export { HelmAPI } from './helm/versions'; | ||
@@ -146,3 +148,3 @@ export { HelmV1 } from './helm/v1'; | ||
*/ | ||
export declare type ComponentKey<T> = T extends ClusterProviderV1 ? "clusterprovider" : T extends KubectlV1 ? "kubectl" : T extends ClusterExplorerV1 ? "clusterexplorer" : T extends HelmV1 ? "helm" : T extends CloudExplorerV1 ? "cloudexplorer" : T extends ConfigurationV1 ? "configuration" : "invalid_api_interface"; | ||
export declare type ComponentKey<T> = T extends ClusterProviderV1 ? "clusterprovider" : T extends KubectlV1 ? "kubectl" : T extends ClusterExplorerV1 | ClusterExplorerV1_1 ? "clusterexplorer" : T extends HelmV1 ? "helm" : T extends CloudExplorerV1 ? "cloudexplorer" : T extends ConfigurationV1 ? "configuration" : "invalid_api_interface"; | ||
/** | ||
@@ -152,2 +154,2 @@ * A TypeScript type associating Kubernetes extension API version IDs with | ||
*/ | ||
export declare type Version<T> = T extends ClusterProviderV1 ? "v1" : T extends KubectlV1 ? "v1" : T extends ClusterExplorerV1 ? "v1" : T extends HelmV1 ? "v1" : T extends CloudExplorerV1 ? "v1" : T extends ConfigurationV1 ? "v1" : "invalid_api_interface"; | ||
export declare type Version<T> = T extends ClusterProviderV1 ? "v1" : T extends KubectlV1 ? "v1" : T extends ClusterExplorerV1 | ClusterExplorerV1_1 ? "v1" | "v1_1" : T extends HelmV1 ? "v1" : T extends CloudExplorerV1 ? "v1" : T extends ConfigurationV1 ? "v1" : "invalid_api_interface"; |
{ | ||
"name": "vscode-kubernetes-tools-api", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Documents and encapsulates the API for the Kubernetes extension for Visual Studio Code", | ||
@@ -5,0 +5,0 @@ "main": "js/index.js", |
@@ -31,3 +31,3 @@ # API Library for Visual Studio Code Kubernetes Tools | ||
// Standard pattern for accessing the APIs | ||
const explorer = await k8s.extension.clusterExplorer.v1; | ||
const explorer = await k8s.extension.clusterExplorer.v1_1; | ||
if (!explorer.available) { | ||
@@ -34,0 +34,0 @@ vscode.window.showErrorMessage(`Command not available: ${explorer.reason}`); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
92359
64
1850