vscode-kubernetes-tools-api
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -5,2 +5,3 @@ import * as vscode from 'vscode'; | ||
registerNodeContributor(nodeContributor: ExplorerTreeV1.NodeContributor): void; | ||
refresh(): void; | ||
} | ||
@@ -7,0 +8,0 @@ export declare namespace ExplorerTreeV1 { |
@@ -51,2 +51,5 @@ "use strict"; | ||
} | ||
if (!apiBroker.get) { | ||
return { available: false, reason: "version-unknown" }; | ||
} | ||
return apiBroker.get(component, version); | ||
@@ -53,0 +56,0 @@ }); |
@@ -0,1 +1,2 @@ | ||
import * as vscode from 'vscode'; | ||
/** | ||
@@ -15,2 +16,12 @@ * Supports invoking kubectl using the Kubernetes extension's configuration | ||
invokeCommand(command: string): Promise<KubectlV1.ShellResult | undefined>; | ||
/** | ||
* Forwards a local port to a port on a pod. | ||
* @param podName The pod to which to forward. | ||
* @param podNamespace The namespace containing the pod. | ||
* @param localPort The local port to be forwarded. | ||
* @param remotePort The port on the pod to which to forward. | ||
* @returns A Disposable which can be used to terminate port forwarding, or undefined | ||
* if port forwarding failed. | ||
*/ | ||
portForward(podName: string, podNamespace: string | undefined, localPort: number, remotePort: number): Promise<vscode.Disposable | undefined>; | ||
} | ||
@@ -17,0 +28,0 @@ export declare namespace KubectlV1 { |
{ | ||
"name": "vscode-kubernetes-tools-api", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Documents and encapsulates the API for the Kubernetes extension for Visual Studio Code", | ||
@@ -5,0 +5,0 @@ "main": "js/index.js", |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
53952
43
1072