@daocloud-proto/kangaroo 0.2.2-8 → 0.3.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/kangaroo.io/api/harbor/v1alpha1/harbor.pb.ts +1 -17
- package/kangaroo.io/api/harbor/v1alpha1/rpc.pb.ts +0 -3
- package/kangaroo.io/api/image/v1alpha1/image.pb.ts +13 -1
- package/kangaroo.io/api/registry/v1alpha1/registry.pb.ts +40 -4
- package/kangaroo.io/api/registry/v1alpha1/rpc.pb.ts +6 -0
- package/package.json +1 -1
|
@@ -202,26 +202,10 @@ export type ListHarborClusterRequest = {
|
|
|
202
202
|
pageSize?: number
|
|
203
203
|
sortBy?: KangarooIoApiTypesPage.SortBy
|
|
204
204
|
orderBy?: KangarooIoApiTypesPage.OrderBy
|
|
205
|
+
fuzzyName?: string
|
|
205
206
|
}
|
|
206
207
|
|
|
207
208
|
export type ListHarborClusterResponse = {
|
|
208
209
|
items?: HarborCluster[]
|
|
209
210
|
pagination?: KangarooIoApiTypesPage.Page
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
export type GetStorageStatisticRequest = {
|
|
213
|
-
cluster?: string
|
|
214
|
-
namespace?: string
|
|
215
|
-
name?: string
|
|
216
|
-
start?: string
|
|
217
|
-
end?: string
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
export type GetStorageStatisticResponse = {
|
|
221
|
-
data?: StorageStatisticItem[]
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
export type StorageStatisticItem = {
|
|
225
|
-
timestamp?: string
|
|
226
|
-
value?: string
|
|
227
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
|
}
|
|
@@ -6,6 +6,12 @@
|
|
|
6
6
|
|
|
7
7
|
import * as KangarooIoApiTypesPage from "../../types/page.pb"
|
|
8
8
|
|
|
9
|
+
export enum ListRepositoriesRequestSortBy {
|
|
10
|
+
unspecified = "unspecified",
|
|
11
|
+
pull_count = "pull_count",
|
|
12
|
+
update_time = "update_time",
|
|
13
|
+
}
|
|
14
|
+
|
|
9
15
|
export enum ListArtifactsRequestSortBy {
|
|
10
16
|
SORT_BY_UNSPECIFIED = "SORT_BY_UNSPECIFIED",
|
|
11
17
|
}
|
|
@@ -53,6 +59,9 @@ export type ListRepositoriesRequest = {
|
|
|
53
59
|
project?: string
|
|
54
60
|
page?: number
|
|
55
61
|
pageSize?: number
|
|
62
|
+
fuzzyName?: string
|
|
63
|
+
sortBy?: ListRepositoriesRequestSortBy
|
|
64
|
+
sortDir?: KangarooIoApiTypesPage.OrderBy
|
|
56
65
|
}
|
|
57
66
|
|
|
58
67
|
export type ListRepositoriesResponse = {
|
|
@@ -97,6 +106,7 @@ export type Artifacts = {
|
|
|
97
106
|
imageSize?: string
|
|
98
107
|
pushTime?: string
|
|
99
108
|
pullTime?: string
|
|
109
|
+
imagePullUrl?: string
|
|
100
110
|
}
|
|
101
111
|
|
|
102
112
|
export type ListArtifactsRequest = {
|
|
@@ -108,6 +118,7 @@ export type ListArtifactsRequest = {
|
|
|
108
118
|
orderBy?: KangarooIoApiTypesPage.OrderBy
|
|
109
119
|
page?: number
|
|
110
120
|
pageSize?: number
|
|
121
|
+
fuzzyTagName?: string
|
|
111
122
|
}
|
|
112
123
|
|
|
113
124
|
export type ListArtifactsResponse = {
|
|
@@ -162,7 +173,7 @@ export type DeleteArtifactsRequest = {
|
|
|
162
173
|
}
|
|
163
174
|
|
|
164
175
|
export type ListRegistryProjectRequest = {
|
|
165
|
-
|
|
176
|
+
fuzzyName?: string
|
|
166
177
|
registry?: string
|
|
167
178
|
page?: number
|
|
168
179
|
pageSize?: number
|
|
@@ -248,6 +259,7 @@ export type APIListRepositoriesRequest = {
|
|
|
248
259
|
project?: string
|
|
249
260
|
page?: number
|
|
250
261
|
pageSize?: number
|
|
262
|
+
fuzzyName?: string
|
|
251
263
|
}
|
|
252
264
|
|
|
253
265
|
export type APIListRepositoriesResponse = {
|
|
@@ -26,13 +26,12 @@ export enum RegistryStatusClusterStatus {
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
export type Registry = {
|
|
29
|
-
|
|
29
|
+
name?: string
|
|
30
30
|
type?: RegistryType
|
|
31
31
|
url?: string
|
|
32
32
|
credential?: RegistryAdminCredential
|
|
33
33
|
integratedType?: IntegratedType
|
|
34
34
|
status?: RegistryStatus
|
|
35
|
-
name?: string
|
|
36
35
|
createAt?: string
|
|
37
36
|
}
|
|
38
37
|
|
|
@@ -41,7 +40,7 @@ export type RegistryStatus = {
|
|
|
41
40
|
}
|
|
42
41
|
|
|
43
42
|
export type CreateRegistryRequest = {
|
|
44
|
-
|
|
43
|
+
name?: string
|
|
45
44
|
type?: RegistryType
|
|
46
45
|
url?: string
|
|
47
46
|
credential?: RegistryAdminCredential
|
|
@@ -77,7 +76,7 @@ export type RegistryAdminCredential = {
|
|
|
77
76
|
|
|
78
77
|
export type CreateWorkspaceRegistryRequest = {
|
|
79
78
|
workspace?: string
|
|
80
|
-
|
|
79
|
+
name?: string
|
|
81
80
|
type?: RegistryType
|
|
82
81
|
url?: string
|
|
83
82
|
credential?: RegistryAdminCredential
|
|
@@ -103,9 +102,46 @@ export type ListWorkspaceRegistryRequest = {
|
|
|
103
102
|
workspace?: string
|
|
104
103
|
page?: number
|
|
105
104
|
pageSize?: number
|
|
105
|
+
fuzzyName?: string
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
export type ListWorkspaceRegistryResponse = {
|
|
109
109
|
items?: Registry[]
|
|
110
110
|
pagination?: KangarooIoApiTypesPage.Page
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export type GetRegistryDetailRequest = {
|
|
114
|
+
registry?: string
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export type RegistryDetail = {
|
|
118
|
+
registryName?: string
|
|
119
|
+
host?: string
|
|
120
|
+
deployCluster?: string
|
|
121
|
+
deployNamespace?: string
|
|
122
|
+
copies?: string
|
|
123
|
+
description?: string
|
|
124
|
+
createAt?: string
|
|
125
|
+
author?: string
|
|
126
|
+
integratedType?: IntegratedType
|
|
127
|
+
projectNum?: number
|
|
128
|
+
repositoryNum?: number
|
|
129
|
+
chartNum?: number
|
|
130
|
+
usageStorage?: string
|
|
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
|
|
111
147
|
}
|
|
@@ -38,4 +38,10 @@ export class Registries {
|
|
|
38
38
|
static ListWorkspaceRegistry(req: KangarooIoApiRegistryV1alpha1Registry.ListWorkspaceRegistryRequest, initReq?: fm.InitReq): Promise<KangarooIoApiRegistryV1alpha1Registry.ListWorkspaceRegistryResponse> {
|
|
39
39
|
return fm.fetchReq<KangarooIoApiRegistryV1alpha1Registry.ListWorkspaceRegistryRequest, KangarooIoApiRegistryV1alpha1Registry.ListWorkspaceRegistryResponse>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspace"]}/registries?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
|
|
40
40
|
}
|
|
41
|
+
static GetRegistryDetail(req: KangarooIoApiRegistryV1alpha1Registry.GetRegistryDetailRequest, initReq?: fm.InitReq): Promise<KangarooIoApiRegistryV1alpha1Registry.RegistryDetail> {
|
|
42
|
+
return fm.fetchReq<KangarooIoApiRegistryV1alpha1Registry.GetRegistryDetailRequest, KangarooIoApiRegistryV1alpha1Registry.RegistryDetail>(`/apis/kangaroo.io/v1alpha1/registries/${req["registry"]}/detail?${fm.renderURLSearchParams(req, ["registry"])}`, {...initReq, method: "GET"})
|
|
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
|
+
}
|
|
41
47
|
}
|