@k8slens/extensions 5.4.1-git.cd1f6e1348.0 → 5.4.1-git.d1e4d8e681.0
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/dist/src/common/fs/write-file.injectable.d.ts +4 -0
- package/dist/src/common/k8s-api/endpoints/events.api.d.ts +6 -0
- package/dist/src/common/k8s-api/kube-object.d.ts +15 -0
- package/dist/src/common/utils/tuple.d.ts +4 -0
- package/dist/src/extensions/extension-api.js +56 -34
- package/dist/src/main/child-process/spawn.injectable.d.ts +5 -0
- package/dist/src/main/context-handler/context-handler.d.ts +4 -1
- package/dist/src/main/kube-auth-proxy/create-kube-auth-proxy-cert-files.d.ts +13 -0
- package/dist/src/main/kube-auth-proxy/create-kube-auth-proxy-cert-files.injectable.d.ts +3 -0
- package/dist/src/main/kube-auth-proxy/create-kube-auth-proxy.injectable.d.ts +3 -1
- package/dist/src/main/kube-auth-proxy/kube-auth-proxy-ca.injectable.d.ts +4 -0
- package/dist/src/main/kube-auth-proxy/kube-auth-proxy.d.ts +3 -1
- package/dist/src/main/lens-proxy.d.ts +2 -2
- package/dist/src/main/proxy-functions/index.d.ts +1 -1
- package/dist/src/main/proxy-functions/{kube-api-request.d.ts → kube-api-upgrade-request.d.ts} +1 -1
- package/dist/src/renderer/components/+cluster/cluster-issues.d.ts +2 -3
- package/dist/src/renderer/components/+custom-resources/crd-list.d.ts +1 -2
- package/dist/src/renderer/components/+custom-resources/crd-resources.d.ts +1 -2
- package/dist/src/renderer/components/+events/events.d.ts +0 -1
- package/dist/src/renderer/components/dock/__test__/dock-store.test.d.ts +5 -0
- package/dist/src/renderer/components/dock/dock/store.d.ts +1 -0
- package/dist/src/renderer/components/dock/dock-tab.d.ts +0 -1
- package/dist/src/renderer/components/duration/reactive-duration.d.ts +13 -0
- package/dist/src/renderer/components/kube-object/age.d.ts +14 -0
- package/dist/src/renderer/hooks/index.d.ts +1 -0
- package/dist/src/renderer/hooks/useResizeObserver.d.ts +5 -0
- package/package.json +1 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/// <reference types="@ogre-tools/injectable" />
|
|
3
|
+
declare const writeFileInjectable: import("@ogre-tools/injectable").Injectable<(filePath: string, content: string | Buffer) => Promise<void>, unknown, void>;
|
|
4
|
+
export default writeFileInjectable;
|
|
@@ -34,7 +34,13 @@ export declare class KubeEvent extends KubeObject {
|
|
|
34
34
|
static apiBase: string;
|
|
35
35
|
isWarning(): boolean;
|
|
36
36
|
getSource(): string;
|
|
37
|
+
/**
|
|
38
|
+
* @deprecated This function is not reactive to changing of time. If rendering use `<ReactiveDuration />` instead
|
|
39
|
+
*/
|
|
37
40
|
getFirstSeenTime(): string;
|
|
41
|
+
/**
|
|
42
|
+
* @deprecated This function is not reactive to changing of time. If rendering use `<ReactiveDuration />` instead
|
|
43
|
+
*/
|
|
38
44
|
getLastSeenTime(): string;
|
|
39
45
|
}
|
|
40
46
|
declare let eventApi: KubeApi<KubeEvent>;
|
|
@@ -119,7 +119,22 @@ export declare class KubeObject<Metadata extends KubeObjectMetadata = KubeObject
|
|
|
119
119
|
getResourceVersion(): string;
|
|
120
120
|
getName(): string;
|
|
121
121
|
getNs(): string;
|
|
122
|
+
/**
|
|
123
|
+
* This function computes the number of milliseconds from the UNIX EPOCH to the
|
|
124
|
+
* creation timestamp of this object.
|
|
125
|
+
*/
|
|
126
|
+
getCreationTimestamp(): number;
|
|
127
|
+
/**
|
|
128
|
+
* @deprecated This function computes a new "now" on every call which might cause subtle issues if called multiple times
|
|
129
|
+
*
|
|
130
|
+
* NOTE: Generally you can use `getCreationTimestamp` instead.
|
|
131
|
+
*/
|
|
122
132
|
getTimeDiffFromNow(): number;
|
|
133
|
+
/**
|
|
134
|
+
* @deprecated This function computes a new "now" on every call might cause subtle issues if called multiple times
|
|
135
|
+
*
|
|
136
|
+
* NOTE: this function also is not reactive to updates in the current time so it should not be used for renderering
|
|
137
|
+
*/
|
|
123
138
|
getAge(humanize?: boolean, compact?: boolean, fromNow?: boolean): string | number;
|
|
124
139
|
getFinalizers(): string[];
|
|
125
140
|
getLabels(): string[];
|
|
@@ -21,4 +21,8 @@ export declare function zip<T, N extends number>(...sources: Tuple<T[], N>): Ite
|
|
|
21
21
|
* @param value The value for each of the tuple entries
|
|
22
22
|
*/
|
|
23
23
|
export declare function filled<T, L extends number>(length: L, value: T): Tuple<T, L>;
|
|
24
|
+
/**
|
|
25
|
+
* A function for converting an explicit array to a tuple but without the `readonly` typing
|
|
26
|
+
*/
|
|
27
|
+
export declare function from<T extends any[]>(...args: T): [...T];
|
|
24
28
|
export {};
|