Socket
Socket
Sign inDemoInstall

vscode-kubernetes-tools-api

Package Overview
Dependencies
0
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.7 to 0.0.8

8

CHANGELOG.md
# Change Log
## 0.0.8
* Updated Kubectl API with option of showing forwarded ports in user interface.
## 0.0.7
* Updated Cluster Explorer API to offer re-use of built-in resource folder and grouping folder
## 0.0.6

@@ -4,0 +12,0 @@

1

js/explorer-tree/v1.d.ts

@@ -5,3 +5,2 @@ import * as vscode from 'vscode';

registerNodeContributor(nodeContributor: ExplorerTreeV1.NodeContributor): void;
refresh(): void;
}

@@ -8,0 +7,0 @@ export declare namespace ExplorerTreeV1 {

@@ -22,6 +22,7 @@ import * as vscode from 'vscode';

* @param remotePort The port on the pod to which to forward.
* @param options Options for port forwarding.
* @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>;
portForward(podName: string, podNamespace: string | undefined, localPort: number, remotePort: number, options?: KubectlV1.PortForwardOptions): Promise<vscode.Disposable | undefined>;
}

@@ -46,2 +47,52 @@ export declare namespace KubectlV1 {

}
/**
* Options for performing port forwarding using kubectl.
*/
interface PortForwardOptions {
/**
* Specifies whether and how to display the forwarded port in the Visual Studio
* Code user interface. If not present, the forwarded port is not shown.
*/
readonly showInUI?: PortForwardUIOptions;
}
/**
* Specifies that the forwarded port should not be shown in the Visual Studio Code
* user interface. This is equivalent to omitting the PortForwardOptions.showInUI property.
*/
interface PortForwardNoUIOptions {
/**
* Specifies that the port-forward should not be displayed in any location.
*/
readonly location: 'none';
}
/**
* Specifies that the forwarded port should be shown in the Visual Studio Code
* status bar. When any forwarded ports have this set, the status bar displays
* a "Kubectl Port Forwarding" indicator which the user can click to see a
* list of active port-forwards.
*/
interface PortForwardStatusBarUIOptions {
/**
* Specifies the status bar as the display location.
*/
readonly location: 'status-bar';
/**
* A string to be shown alongside the port-forward if the user displays the
* list. This helps the user to identify the purpose of the port-forward.
*/
readonly description?: string;
/**
* A function to be called if the user cancels port forwarding via the
* list of active port-forwards. This can be used to clean up associated
* state (for example, to note that the port will need to be re-forwarded
* if the user wants to perform whatever operation was using the forwarded
* port again), to provide information to the user, etc.
*/
readonly onCancel?: () => void;
}
/**
* Specifies whether and how to display a forwarded port in the Visual Studio
* Code user interface.
*/
type PortForwardUIOptions = PortForwardNoUIOptions | PortForwardStatusBarUIOptions;
}
{
"name": "vscode-kubernetes-tools-api",
"version": "0.0.7",
"version": "0.0.8",
"description": "Documents and encapsulates the API for the Kubernetes extension for Visual Studio Code",

@@ -5,0 +5,0 @@ "main": "js/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc