@podman-desktop/kubernetes-dashboard-extension-api 0.4.0-next.202601290701-0174be5 → 0.4.0-next.202601290701-8bfc5b5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@podman-desktop/kubernetes-dashboard-extension-api",
|
|
3
|
-
"version": "0.4.0-next.202601290701-
|
|
3
|
+
"version": "0.4.0-next.202601290701-8bfc5b5",
|
|
4
4
|
"description": "API for Kubernetes Dashboard extension",
|
|
5
5
|
"repository": "https://github.com/podman-desktop/extension-kubernetes-dashboard",
|
|
6
6
|
"publishConfig": {
|
|
@@ -124,4 +124,29 @@ export interface KubernetesDashboardExtensionApi {
|
|
|
124
124
|
* The subscriber is used to subscribe to the events emitted by the Kubernetes Dashboard extension.
|
|
125
125
|
*/
|
|
126
126
|
getSubscriber(): KubernetesDashboardSubscriber;
|
|
127
|
+
|
|
128
|
+
readonly contexts: typeof contexts;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Options for the connect operation.
|
|
133
|
+
*/
|
|
134
|
+
export interface ConnectOptions {
|
|
135
|
+
/**
|
|
136
|
+
* The resources (pods, deployments, etc) to connect to. By default, connects to all resources managed by the Dashboard extension.
|
|
137
|
+
*/
|
|
138
|
+
resources?: string[];
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Namespace for Kubernetes contexts operations.
|
|
143
|
+
*/
|
|
144
|
+
export namespace contexts {
|
|
145
|
+
/**
|
|
146
|
+
* Connects to a Kubernetes context.
|
|
147
|
+
*
|
|
148
|
+
* @param contextName - The name of the context to connect to.
|
|
149
|
+
* @param options - The options for the connect operation.
|
|
150
|
+
*/
|
|
151
|
+
export function connect(contextName: string, options?: ConnectOptions): Promise<void>;
|
|
127
152
|
}
|