@daocloud-proto/kangaroo 0.2.2-34 → 0.2.2-38
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.
|
@@ -208,21 +208,4 @@ export type ListHarborClusterRequest = {
|
|
|
208
208
|
export type ListHarborClusterResponse = {
|
|
209
209
|
items?: HarborCluster[]
|
|
210
210
|
pagination?: KangarooIoApiTypesPage.Page
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
export type GetStorageStatisticRequest = {
|
|
214
|
-
cluster?: string
|
|
215
|
-
namespace?: string
|
|
216
|
-
name?: string
|
|
217
|
-
start?: string
|
|
218
|
-
end?: string
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
export type GetStorageStatisticResponse = {
|
|
222
|
-
data?: StorageStatisticItem[]
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
export type StorageStatisticItem = {
|
|
226
|
-
timestamp?: string
|
|
227
|
-
value?: string
|
|
228
211
|
}
|
|
@@ -29,7 +29,4 @@ export class Harbor {
|
|
|
29
29
|
static DeleteHarborCluster(req: KangarooIoApiHarborV1alpha1Harbor.DeleteHarborCluster, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
30
30
|
return fm.fetchReq<KangarooIoApiHarborV1alpha1Harbor.DeleteHarborCluster, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/harbors/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
31
31
|
}
|
|
32
|
-
static GetStorageStatistic(req: KangarooIoApiHarborV1alpha1Harbor.GetStorageStatisticRequest, initReq?: fm.InitReq): Promise<KangarooIoApiHarborV1alpha1Harbor.GetStorageStatisticResponse> {
|
|
33
|
-
return fm.fetchReq<KangarooIoApiHarborV1alpha1Harbor.GetStorageStatisticRequest, KangarooIoApiHarborV1alpha1Harbor.GetStorageStatisticResponse>(`/apis/kangaroo.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/harbors/${req["name"]}/storage_statistic?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
34
|
-
}
|
|
35
32
|
}
|
|
@@ -129,4 +129,19 @@ export type RegistryDetail = {
|
|
|
129
129
|
chartNum?: number
|
|
130
130
|
usageStorage?: string
|
|
131
131
|
type?: RegistryType
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export type GetStorageStatisticRequest = {
|
|
135
|
+
registry?: string
|
|
136
|
+
start?: string
|
|
137
|
+
end?: string
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export type GetStorageStatisticResponse = {
|
|
141
|
+
data?: StorageStatisticItem[]
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export type StorageStatisticItem = {
|
|
145
|
+
timestamp?: string
|
|
146
|
+
value?: string
|
|
132
147
|
}
|
|
@@ -41,4 +41,7 @@ export class Registries {
|
|
|
41
41
|
static GetRegistryDetail(req: KangarooIoApiRegistryV1alpha1Registry.GetRegistryDetailRequest, initReq?: fm.InitReq): Promise<KangarooIoApiRegistryV1alpha1Registry.RegistryDetail> {
|
|
42
42
|
return fm.fetchReq<KangarooIoApiRegistryV1alpha1Registry.GetRegistryDetailRequest, KangarooIoApiRegistryV1alpha1Registry.RegistryDetail>(`/apis/kangaroo.io/v1alpha1/registries/${req["registry"]}/detail?${fm.renderURLSearchParams(req, ["registry"])}`, {...initReq, method: "GET"})
|
|
43
43
|
}
|
|
44
|
+
static GetStorageStatistic(req: KangarooIoApiRegistryV1alpha1Registry.GetStorageStatisticRequest, initReq?: fm.InitReq): Promise<KangarooIoApiRegistryV1alpha1Registry.GetStorageStatisticResponse> {
|
|
45
|
+
return fm.fetchReq<KangarooIoApiRegistryV1alpha1Registry.GetStorageStatisticRequest, KangarooIoApiRegistryV1alpha1Registry.GetStorageStatisticResponse>(`/apis/kangaroo.io/v1alpha1/registries/${req["registry"]}/storage_statistic?${fm.renderURLSearchParams(req, ["registry"])}`, {...initReq, method: "GET"})
|
|
46
|
+
}
|
|
44
47
|
}
|