Socket
Socket
Sign inDemoInstall

vscode-kubernetes-tools-api

Package Overview
Dependencies
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vscode-kubernetes-tools-api - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

54

js/cluster-explorer/v1.d.ts

@@ -39,2 +39,6 @@ import * as vscode from 'vscode';

/**
* Exposes built-in node types for reuse as custom NodeContributors.
*/
readonly nodeSources: ClusterExplorerV1.NodeSources;
/**
* Registers an object to customize the appearance of nodes in the Cluster Explorer. The object will be

@@ -295,2 +299,52 @@ * consulted every time the Kubernetes extension displays a tree node.

}
/**
* Represents a source of tree nodes.
*/
interface NodeSource {
/**
* Creates a NodeContributor which contributes the nodes from the source at a
* given location.
* @param parentFolder The name of the folder under which the nodes should be contributed,
* or undefined if the nodes should be contributed directly under the context tree node.
* @returns A NodeContributor which, when registered, adds the nodes from the source
* under the specified folder.
*/
at(parentFolder: string | undefined): NodeContributor;
/**
* Creates a new NodeSource which will return the same node(s) as this, but
* only if a condition holds.
* @param condition The condition under which the new NodeSource will return node(s).
* @returns A NodeSource which will return the same node(s) as this, but
* only if the specified condition holds.
*/
if(condition: () => boolean | Thenable<boolean>): NodeSource;
/**
* Gets tree nodes from the source.
* @returns The set of tree nodes obtained from the source.
*/
nodes(): Promise<Node[]>;
}
/**
* Exposes built-in node types for reuse as custom NodeContributors.
*/
interface NodeSources {
/**
* A NodeSet consisting of a single folder node which, when expanded, shows all resources of a
* specific type.
* @param displayName The singular display name of the resource type. Example: Stateful Set.
* @param pluralDisplayName The plural display name of the resource type - used as the folder display name. Example: Stateful Sets.
* @param manifestKind The string used to identify the resource type in Kubernetes manifests. Example: StatefulSet.
* @param abbreviation The string used to identify the resource type on the kubectl command line. Example: sts.
* @returns A NodeSet which provides the requested folder node.
*/
resourceFolder(displayName: string, pluralDisplayName: string, manifestKind: string, abbreviation: string): NodeSource;
/**
* A NodeSet consisting of a single folder node which, when expanded, displays an arbitrary set of nodes.
* @param displayName The display name of the folder.
* @param contextValue The context value for the folder's TreeItem, if you need to associate commands with the folder.
* @param children The nodes to display under the grouping folder.
* @returns A NodeSet which provides the requested folder node.
*/
groupingFolder(displayName: string, contextValue: string | undefined, ...children: NodeSource[]): NodeSource;
}
}

2

package.json
{
"name": "vscode-kubernetes-tools-api",
"version": "0.0.6",
"version": "0.0.7",
"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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc