@alauda-fe/workload-util-shared 0.0.1
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/esm2022/alauda-fe-workload-util-shared.mjs +5 -0
- package/esm2022/index.mjs +6 -0
- package/esm2022/lib/directives/index.mjs +3 -0
- package/esm2022/lib/directives/oam-resource-disabled-container.directive.mjs +53 -0
- package/esm2022/lib/directives/sync-control.directive.mjs +52 -0
- package/esm2022/lib/pipes/index.mjs +4 -0
- package/esm2022/lib/pipes/is-oam-resource.pipe.mjs +17 -0
- package/esm2022/lib/pipes/range.pipe.mjs +17 -0
- package/esm2022/lib/pipes/short-num.pipe.mjs +15 -0
- package/esm2022/lib/services/cluster-api.service.mjs +93 -0
- package/esm2022/lib/services/feature-gate.service.mjs +50 -0
- package/esm2022/lib/services/index.mjs +6 -0
- package/esm2022/lib/services/pod-util.service.mjs +70 -0
- package/esm2022/lib/services/resource-quota.service.mjs +116 -0
- package/esm2022/lib/services/terminal.service.mjs +46 -0
- package/esm2022/lib/typings/account.mjs +2 -0
- package/esm2022/lib/typings/backend-api.mjs +7 -0
- package/esm2022/lib/typings/batch-action.type.mjs +2 -0
- package/esm2022/lib/typings/form.mjs +2 -0
- package/esm2022/lib/typings/helpers.mjs +14 -0
- package/esm2022/lib/typings/index.mjs +10 -0
- package/esm2022/lib/typings/k8s-form-model.mjs +12 -0
- package/esm2022/lib/typings/k8s-resource-definitions/acp-resource-definition.mjs +258 -0
- package/esm2022/lib/typings/k8s-resource-definitions/alu-resource-definition.mjs +281 -0
- package/esm2022/lib/typings/k8s-resource-definitions/index.mjs +142 -0
- package/esm2022/lib/typings/k8s.mjs +143 -0
- package/esm2022/lib/typings/status.mjs +269 -0
- package/esm2022/lib/utils/code-editor-config.mjs +2 -0
- package/esm2022/lib/utils/constants.mjs +61 -0
- package/esm2022/lib/utils/crd.mjs +36 -0
- package/esm2022/lib/utils/format-number.mjs +227 -0
- package/esm2022/lib/utils/helpers.mjs +27 -0
- package/esm2022/lib/utils/index.mjs +14 -0
- package/esm2022/lib/utils/k8s-util.service.mjs +28 -0
- package/esm2022/lib/utils/patterns.mjs +140 -0
- package/esm2022/lib/utils/pod-util.mjs +75 -0
- package/esm2022/lib/utils/resource-status.mjs +86 -0
- package/esm2022/lib/utils/resources-config-util.mjs +28 -0
- package/esm2022/lib/utils/status.mjs +84 -0
- package/esm2022/lib/utils/validator.mjs +11 -0
- package/esm2022/lib/utils/workspace.mjs +25 -0
- package/index.d.ts +5 -0
- package/lib/directives/index.d.ts +2 -0
- package/lib/directives/oam-resource-disabled-container.directive.d.ts +17 -0
- package/lib/directives/sync-control.directive.d.ts +14 -0
- package/lib/pipes/index.d.ts +3 -0
- package/lib/pipes/is-oam-resource.pipe.d.ts +9 -0
- package/lib/pipes/range.pipe.d.ts +7 -0
- package/lib/pipes/short-num.pipe.d.ts +7 -0
- package/lib/services/cluster-api.service.d.ts +38 -0
- package/lib/services/feature-gate.service.d.ts +38 -0
- package/lib/services/index.d.ts +5 -0
- package/lib/services/pod-util.service.d.ts +18 -0
- package/lib/services/resource-quota.service.d.ts +25 -0
- package/lib/services/terminal.service.d.ts +15 -0
- package/lib/typings/account.d.ts +17 -0
- package/lib/typings/backend-api.d.ts +220 -0
- package/lib/typings/batch-action.type.d.ts +35 -0
- package/lib/typings/form.d.ts +10 -0
- package/lib/typings/helpers.d.ts +45 -0
- package/lib/typings/index.d.ts +9 -0
- package/lib/typings/k8s-form-model.d.ts +128 -0
- package/lib/typings/k8s-resource-definitions/acp-resource-definition.d.ts +242 -0
- package/lib/typings/k8s-resource-definitions/alu-resource-definition.d.ts +269 -0
- package/lib/typings/k8s-resource-definitions/index.d.ts +1911 -0
- package/lib/typings/k8s.d.ts +1147 -0
- package/lib/typings/status.d.ts +252 -0
- package/lib/utils/code-editor-config.d.ts +1 -0
- package/lib/utils/constants.d.ts +57 -0
- package/lib/utils/crd.d.ts +21 -0
- package/lib/utils/format-number.d.ts +11 -0
- package/lib/utils/helpers.d.ts +13 -0
- package/lib/utils/index.d.ts +13 -0
- package/lib/utils/k8s-util.service.d.ts +8 -0
- package/lib/utils/patterns.d.ts +132 -0
- package/lib/utils/pod-util.d.ts +19 -0
- package/lib/utils/resource-status.d.ts +8 -0
- package/lib/utils/resources-config-util.d.ts +22 -0
- package/lib/utils/status.d.ts +3 -0
- package/lib/utils/validator.d.ts +4 -0
- package/lib/utils/workspace.d.ts +14 -0
- package/package.json +36 -0
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
export declare const ALUResourceDefinitions: {
|
|
2
|
+
readonly PROJECT_MEMBER: {
|
|
3
|
+
readonly type: "projectmembers";
|
|
4
|
+
readonly apiGroup: "auth.alauda.io";
|
|
5
|
+
};
|
|
6
|
+
readonly USER: {
|
|
7
|
+
readonly type: "users";
|
|
8
|
+
readonly apiGroup: "auth.alauda.io";
|
|
9
|
+
};
|
|
10
|
+
readonly GROUP: {
|
|
11
|
+
readonly type: "groups";
|
|
12
|
+
readonly apiGroup: "auth.alauda.io";
|
|
13
|
+
};
|
|
14
|
+
readonly NAMESPACE_RESOURCE_RATIO: {
|
|
15
|
+
readonly type: "namespaceresourceratios";
|
|
16
|
+
readonly apiGroup: "resource.alauda.io";
|
|
17
|
+
};
|
|
18
|
+
readonly CUSTOM_RESOURCE_DEFINITION: {
|
|
19
|
+
readonly type: "customresourcedefinitions";
|
|
20
|
+
readonly apiGroup: "apiextensions.k8s.io";
|
|
21
|
+
readonly apiVersion: "v1beta1";
|
|
22
|
+
};
|
|
23
|
+
readonly CONNECTOR: {
|
|
24
|
+
readonly type: "connectors";
|
|
25
|
+
readonly apiGroup: "dex.coreos.com";
|
|
26
|
+
};
|
|
27
|
+
readonly ROLE_TEMPLATE: {
|
|
28
|
+
readonly type: "roletemplates";
|
|
29
|
+
readonly apiGroup: "auth.alauda.io";
|
|
30
|
+
readonly apiVersion: "v1beta1";
|
|
31
|
+
};
|
|
32
|
+
readonly FUNCTION_RESOURCE: {
|
|
33
|
+
readonly type: "functionresources";
|
|
34
|
+
readonly apiGroup: "auth.alauda.io";
|
|
35
|
+
readonly apiVersion: "v1beta1";
|
|
36
|
+
};
|
|
37
|
+
readonly LICENSE: {
|
|
38
|
+
readonly type: "secrets";
|
|
39
|
+
};
|
|
40
|
+
readonly REPORT: {
|
|
41
|
+
readonly type: "reports";
|
|
42
|
+
readonly apiGroup: "metering.alauda.io";
|
|
43
|
+
readonly apiVersion: "v1beta1";
|
|
44
|
+
};
|
|
45
|
+
readonly RECORD: {
|
|
46
|
+
readonly type: "records";
|
|
47
|
+
readonly apiGroup: "metering.alauda.io";
|
|
48
|
+
readonly apiVersion: "v1beta1";
|
|
49
|
+
};
|
|
50
|
+
readonly CSI_NODE: {
|
|
51
|
+
readonly apiGroup: "storage.k8s.io";
|
|
52
|
+
readonly type: "csinodes";
|
|
53
|
+
};
|
|
54
|
+
readonly TSF: {
|
|
55
|
+
readonly type: "tsfproducts";
|
|
56
|
+
readonly apiGroup: "product.alauda.io";
|
|
57
|
+
readonly apiVersion: "v1beta1";
|
|
58
|
+
};
|
|
59
|
+
readonly TDSQL: {
|
|
60
|
+
readonly type: "tdsqldeploys";
|
|
61
|
+
readonly apiVersion: "v1alpha1";
|
|
62
|
+
readonly apiGroup: "product.alauda.io";
|
|
63
|
+
};
|
|
64
|
+
readonly PORTAL: {
|
|
65
|
+
readonly type: "*";
|
|
66
|
+
readonly apiGroup: "product.alauda.io";
|
|
67
|
+
};
|
|
68
|
+
readonly NAMESPACE_IMPORT: {
|
|
69
|
+
readonly type: "namespace-import";
|
|
70
|
+
readonly apiGroup: "namespace.alauda.io";
|
|
71
|
+
};
|
|
72
|
+
readonly AUDIT: {
|
|
73
|
+
readonly apiGroup: "aiops.alauda.io";
|
|
74
|
+
readonly type: "audits";
|
|
75
|
+
};
|
|
76
|
+
readonly CLUSTER_ADDON_TYPE: {
|
|
77
|
+
readonly apiGroup: "platform.tkestack.io";
|
|
78
|
+
readonly type: "clusteraddontypes";
|
|
79
|
+
};
|
|
80
|
+
readonly CLUSTER_CREDENTIAL: {
|
|
81
|
+
readonly apiGroup: "platform.tkestack.io";
|
|
82
|
+
readonly type: "clustercredentials";
|
|
83
|
+
};
|
|
84
|
+
readonly CODING: {
|
|
85
|
+
readonly type: "codings";
|
|
86
|
+
readonly apiGroup: "product.alauda.io";
|
|
87
|
+
readonly apiVersion: "v1";
|
|
88
|
+
};
|
|
89
|
+
readonly LOG_POLICY: {
|
|
90
|
+
readonly apiGroup: "aiops.alauda.io";
|
|
91
|
+
readonly apiVersion: "v1alpha1";
|
|
92
|
+
readonly type: "logpolicies";
|
|
93
|
+
};
|
|
94
|
+
readonly TI_MATRIX: {
|
|
95
|
+
readonly type: "timatrixes";
|
|
96
|
+
readonly apiVersion: "v1alpha1";
|
|
97
|
+
readonly apiGroup: "product.alauda.io";
|
|
98
|
+
};
|
|
99
|
+
readonly SYSTEM_CONFIG: {
|
|
100
|
+
readonly apiGroup: "alauda.io";
|
|
101
|
+
readonly apiVersion: "v1";
|
|
102
|
+
readonly type: "systemconfigs";
|
|
103
|
+
};
|
|
104
|
+
readonly MESSAGE: {
|
|
105
|
+
readonly apiGroup: "ait.alauda.io";
|
|
106
|
+
readonly apiVersion: "v1alpha1";
|
|
107
|
+
readonly type: "messages";
|
|
108
|
+
};
|
|
109
|
+
readonly ALAUDA_PRODUCT: {
|
|
110
|
+
readonly type: "alaudaproducts";
|
|
111
|
+
readonly apiGroup: "portal.alauda.io";
|
|
112
|
+
};
|
|
113
|
+
readonly INSPECTION: {
|
|
114
|
+
readonly type: "inspections";
|
|
115
|
+
readonly apiGroup: "ait.alauda.io";
|
|
116
|
+
readonly apiVersion: "v1alpha1";
|
|
117
|
+
};
|
|
118
|
+
readonly INSPECTION_DETAILS: {
|
|
119
|
+
readonly type: "inspectiondetails";
|
|
120
|
+
readonly apiGroup: "ait.alauda.io";
|
|
121
|
+
readonly apiVersion: "v1alpha1";
|
|
122
|
+
};
|
|
123
|
+
readonly INSPECTION_ITEMS: {
|
|
124
|
+
readonly type: "inspectionitems";
|
|
125
|
+
readonly apiGroup: "ait.alauda.io";
|
|
126
|
+
readonly apiVersion: "v1alpha1";
|
|
127
|
+
};
|
|
128
|
+
readonly MODULE_HEALTH: {
|
|
129
|
+
readonly type: "modulehealths";
|
|
130
|
+
readonly apiGroup: "ait.alauda.io";
|
|
131
|
+
readonly apiVersion: "v1alpha1";
|
|
132
|
+
};
|
|
133
|
+
readonly MODULE_HEALTH_RECORD: {
|
|
134
|
+
readonly type: "modulehealthrecords";
|
|
135
|
+
readonly apiGroup: "ait.alauda.io";
|
|
136
|
+
readonly apiVersion: "v1alpha1";
|
|
137
|
+
};
|
|
138
|
+
readonly USER_SECURITY_POLICY: {
|
|
139
|
+
readonly type: "userpolicies";
|
|
140
|
+
readonly apiGroup: "security.alauda.io";
|
|
141
|
+
readonly apiVersion: "v1alpha1";
|
|
142
|
+
};
|
|
143
|
+
readonly PROBE: {
|
|
144
|
+
readonly type: "probes";
|
|
145
|
+
readonly apiVersion: "v1";
|
|
146
|
+
readonly apiGroup: "monitoring.coreos.com";
|
|
147
|
+
};
|
|
148
|
+
readonly COMPONENT_PROBER: {
|
|
149
|
+
readonly type: "componentprobers";
|
|
150
|
+
readonly apiGroup: "ait.alauda.io";
|
|
151
|
+
readonly apiVersion: "v1alpha1";
|
|
152
|
+
};
|
|
153
|
+
readonly FUNCTION_TEST: {
|
|
154
|
+
readonly type: "functiontests";
|
|
155
|
+
readonly apiGroup: "testing.alauda.io";
|
|
156
|
+
readonly apiVersion: "v1alpha1";
|
|
157
|
+
};
|
|
158
|
+
readonly CERTIFICATE: {
|
|
159
|
+
readonly type: "certificates";
|
|
160
|
+
readonly apiGroup: "cert-manager.io";
|
|
161
|
+
};
|
|
162
|
+
readonly ACCESS_TOKEN_INFO: {
|
|
163
|
+
readonly apiGroup: "auth.alauda.io";
|
|
164
|
+
readonly type: "accesstokeninfoes";
|
|
165
|
+
};
|
|
166
|
+
readonly SECURITY_RULE: {
|
|
167
|
+
readonly type: "securityrules";
|
|
168
|
+
readonly apiGroup: "ait.alauda.io";
|
|
169
|
+
readonly apiVersion: "v1alpha1";
|
|
170
|
+
};
|
|
171
|
+
readonly REGION: {
|
|
172
|
+
readonly apiGroup: "infrastructure.alauda.io";
|
|
173
|
+
readonly apiVersion: "v1alpha1";
|
|
174
|
+
readonly type: "regions";
|
|
175
|
+
};
|
|
176
|
+
readonly TOPOLVM_CLUSTER_V2: {
|
|
177
|
+
readonly type: "topolvmclusters";
|
|
178
|
+
readonly apiGroup: "topolvm.cybozu.com";
|
|
179
|
+
readonly apiVersion: "v2";
|
|
180
|
+
};
|
|
181
|
+
readonly MODULE_CONFIG: {
|
|
182
|
+
readonly apiGroup: "cluster.alauda.io";
|
|
183
|
+
readonly apiVersion: "v1alpha1";
|
|
184
|
+
readonly type: "moduleconfigs";
|
|
185
|
+
};
|
|
186
|
+
readonly MODULE_PLUGIN: {
|
|
187
|
+
readonly apiGroup: "cluster.alauda.io";
|
|
188
|
+
readonly apiVersion: "v1alpha1";
|
|
189
|
+
readonly type: "moduleplugins";
|
|
190
|
+
};
|
|
191
|
+
readonly BUCKET: {
|
|
192
|
+
readonly apiGroup: "objectstorage.k8s.io";
|
|
193
|
+
readonly apiVersion: "v1alpha1";
|
|
194
|
+
readonly type: "buckets";
|
|
195
|
+
};
|
|
196
|
+
readonly PROJECT_BINDING: {
|
|
197
|
+
readonly type: "projectbindings";
|
|
198
|
+
readonly apiGroup: "auth.alauda.io";
|
|
199
|
+
};
|
|
200
|
+
readonly RESOURCE_PATCH: {
|
|
201
|
+
readonly apiGroup: "operator.alauda.io";
|
|
202
|
+
readonly apiVersion: "v1alpha1";
|
|
203
|
+
readonly type: "resourcepatches";
|
|
204
|
+
};
|
|
205
|
+
readonly SCHEDULE: {
|
|
206
|
+
readonly apiGroup: "velero.io";
|
|
207
|
+
readonly type: "schedules";
|
|
208
|
+
};
|
|
209
|
+
readonly BACKUP_STORAGE_LOCATION: {
|
|
210
|
+
readonly apiGroup: "velero.io";
|
|
211
|
+
readonly type: "backupstoragelocations";
|
|
212
|
+
};
|
|
213
|
+
readonly BACKUP_STORAGE_LOCATION_REPO: {
|
|
214
|
+
readonly apiGroup: "ait.velero.io";
|
|
215
|
+
readonly type: "backupstoragelocationrepoes";
|
|
216
|
+
};
|
|
217
|
+
readonly BACKUP: {
|
|
218
|
+
readonly apiGroup: "velero.io";
|
|
219
|
+
readonly type: "backups";
|
|
220
|
+
};
|
|
221
|
+
readonly DELETE_BACKUP_REQUEST: {
|
|
222
|
+
readonly apiGroup: "velero.io";
|
|
223
|
+
readonly type: "deletebackuprequests";
|
|
224
|
+
};
|
|
225
|
+
readonly ETCD_BACKUP_RECORD: {
|
|
226
|
+
readonly apiGroup: "etcdbackup.alauda.io";
|
|
227
|
+
readonly apiVersion: "v1alpha1";
|
|
228
|
+
readonly type: "etcdbackuprecords";
|
|
229
|
+
};
|
|
230
|
+
readonly RESTORE: {
|
|
231
|
+
readonly apiGroup: "velero.io";
|
|
232
|
+
readonly apiVersion: "v1";
|
|
233
|
+
readonly type: "restores";
|
|
234
|
+
};
|
|
235
|
+
readonly RAW_DEVICE: {
|
|
236
|
+
readonly apiGroup: "nativestor.alauda.io";
|
|
237
|
+
readonly type: "rawdevices";
|
|
238
|
+
};
|
|
239
|
+
readonly APP_RELEASES: {
|
|
240
|
+
readonly apiGroup: "operator.alauda.io";
|
|
241
|
+
readonly apiVersion: "v1alpha1";
|
|
242
|
+
readonly type: "appreleases";
|
|
243
|
+
};
|
|
244
|
+
readonly NOTIFICATION_TEMPLATE: {
|
|
245
|
+
readonly apiGroup: "ait.alauda.io";
|
|
246
|
+
readonly apiVersion: "v1beta1";
|
|
247
|
+
readonly type: "notificationtemplates";
|
|
248
|
+
};
|
|
249
|
+
readonly NOTIFICATION_GROUP: {
|
|
250
|
+
readonly apiGroup: "ait.alauda.io";
|
|
251
|
+
readonly apiVersion: "v1beta1";
|
|
252
|
+
readonly type: "notificationgroups";
|
|
253
|
+
};
|
|
254
|
+
readonly NOTIFICATION: {
|
|
255
|
+
readonly apiGroup: "ait.alauda.io";
|
|
256
|
+
readonly apiVersion: "v1beta1";
|
|
257
|
+
readonly type: "notifications";
|
|
258
|
+
};
|
|
259
|
+
readonly TUNNEL_CLUSTER: {
|
|
260
|
+
readonly type: "tunnelclusters";
|
|
261
|
+
readonly apiVersion: "v1beta1";
|
|
262
|
+
readonly apiGroup: "infrastructure.cluster.x-k8s.io";
|
|
263
|
+
};
|
|
264
|
+
readonly K8S_CLUSTER: {
|
|
265
|
+
readonly type: "clusters";
|
|
266
|
+
readonly apiGroup: "cluster.x-k8s.io";
|
|
267
|
+
readonly apiVersion: "v1beta1";
|
|
268
|
+
};
|
|
269
|
+
};
|