@daocloud-proto/kangaroo 0.2.2-4 → 0.2.2-42
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 -24
- package/kangaroo.io/api/image/v1alpha1/image.pb.ts +14 -8
- package/kangaroo.io/api/image/v1alpha1/rpc.pb.ts +2 -2
- 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
- package/kangaroo.io/api/harbor/v1alpha1/project.pb.ts +0 -85
- package/kangaroo.io/api/harbor/v1alpha1/repository.pb.ts +0 -48
|
@@ -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
|
}
|
|
@@ -7,8 +7,6 @@
|
|
|
7
7
|
import * as fm from "../../../../fetch.pb"
|
|
8
8
|
import * as GoogleProtobufEmpty from "../../../../google/protobuf/empty.pb"
|
|
9
9
|
import * as KangarooIoApiHarborV1alpha1Harbor from "./harbor.pb"
|
|
10
|
-
import * as KangarooIoApiHarborV1alpha1Project from "./project.pb"
|
|
11
|
-
import * as KangarooIoApiHarborV1alpha1Repository from "./repository.pb"
|
|
12
10
|
export class Harbor {
|
|
13
11
|
static GetHarborParams(req: KangarooIoApiHarborV1alpha1Harbor.GetHarborParamsRequest, initReq?: fm.InitReq): Promise<KangarooIoApiHarborV1alpha1Harbor.GetHarborParamsResponse> {
|
|
14
12
|
return fm.fetchReq<KangarooIoApiHarborV1alpha1Harbor.GetHarborParamsRequest, KangarooIoApiHarborV1alpha1Harbor.GetHarborParamsResponse>(`/apis/kangaroo.io/v1alpha1/clusters/${req["cluster"]}/harbors/default-params?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
@@ -31,26 +29,4 @@ export class Harbor {
|
|
|
31
29
|
static DeleteHarborCluster(req: KangarooIoApiHarborV1alpha1Harbor.DeleteHarborCluster, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
32
30
|
return fm.fetchReq<KangarooIoApiHarborV1alpha1Harbor.DeleteHarborCluster, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/harbors/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
33
31
|
}
|
|
34
|
-
static GetStorageStatistic(req: KangarooIoApiHarborV1alpha1Harbor.GetStorageStatisticRequest, initReq?: fm.InitReq): Promise<KangarooIoApiHarborV1alpha1Harbor.GetStorageStatisticResponse> {
|
|
35
|
-
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"})
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
export class HarborProject {
|
|
39
|
-
static ListProject(req: KangarooIoApiHarborV1alpha1Project.ListProjectRequest, initReq?: fm.InitReq): Promise<KangarooIoApiHarborV1alpha1Project.ListProjectResponse> {
|
|
40
|
-
return fm.fetchReq<KangarooIoApiHarborV1alpha1Project.ListProjectRequest, KangarooIoApiHarborV1alpha1Project.ListProjectResponse>(`/apis/kangaroo.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/harbors/${req["harbor"]}/projects?${fm.renderURLSearchParams(req, ["cluster", "namespace", "harbor"])}`, {...initReq, method: "GET"})
|
|
41
|
-
}
|
|
42
|
-
static DeleteProject(req: KangarooIoApiHarborV1alpha1Project.DeleteProjectRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
43
|
-
return fm.fetchReq<KangarooIoApiHarborV1alpha1Project.DeleteProjectRequest, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/harbors/${req["harbor"]}/projects/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
44
|
-
}
|
|
45
|
-
static CreateProject(req: KangarooIoApiHarborV1alpha1Project.CreateProjectRequest, initReq?: fm.InitReq): Promise<KangarooIoApiHarborV1alpha1Project.Project> {
|
|
46
|
-
return fm.fetchReq<KangarooIoApiHarborV1alpha1Project.CreateProjectRequest, KangarooIoApiHarborV1alpha1Project.Project>(`/apis/kangaroo.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/harbors/${req["harbor"]}/project`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
export class HarborRepository {
|
|
50
|
-
static ListRepositories(req: KangarooIoApiHarborV1alpha1Repository.ListRepositoriesRequest, initReq?: fm.InitReq): Promise<KangarooIoApiHarborV1alpha1Repository.ListRepositoriesResponse> {
|
|
51
|
-
return fm.fetchReq<KangarooIoApiHarborV1alpha1Repository.ListRepositoriesRequest, KangarooIoApiHarborV1alpha1Repository.ListRepositoriesResponse>(`/apis/kangaroo.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/harbors/${req["harbor"]}/projects/${req["project"]}/repositories?${fm.renderURLSearchParams(req, ["cluster", "namespace", "harbor", "project"])}`, {...initReq, method: "GET"})
|
|
52
|
-
}
|
|
53
|
-
static DeleteRepository(req: KangarooIoApiHarborV1alpha1Repository.DeleteRepositoryRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
54
|
-
return fm.fetchReq<KangarooIoApiHarborV1alpha1Repository.DeleteRepositoryRequest, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/harbors/${req["harbor"]}/projects/${req["project"]}/repositories/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
55
|
-
}
|
|
56
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 = {
|
|
@@ -108,6 +117,7 @@ export type ListArtifactsRequest = {
|
|
|
108
117
|
orderBy?: KangarooIoApiTypesPage.OrderBy
|
|
109
118
|
page?: number
|
|
110
119
|
pageSize?: number
|
|
120
|
+
fuzzyTagName?: string
|
|
111
121
|
}
|
|
112
122
|
|
|
113
123
|
export type ListArtifactsResponse = {
|
|
@@ -162,21 +172,16 @@ export type DeleteArtifactsRequest = {
|
|
|
162
172
|
}
|
|
163
173
|
|
|
164
174
|
export type ListRegistryProjectRequest = {
|
|
165
|
-
|
|
175
|
+
fuzzyName?: string
|
|
166
176
|
registry?: string
|
|
167
177
|
page?: number
|
|
168
178
|
pageSize?: number
|
|
169
179
|
}
|
|
170
180
|
|
|
171
|
-
export type ProjectBindingWorkspace = {
|
|
172
|
-
projectId?: string
|
|
173
|
-
projectAlias?: string
|
|
174
|
-
}
|
|
175
|
-
|
|
176
181
|
export type RegistryProjectResponse = {
|
|
177
182
|
project?: string
|
|
178
183
|
public?: boolean
|
|
179
|
-
bindingWorkspace?:
|
|
184
|
+
bindingWorkspace?: string[]
|
|
180
185
|
repositoriesCount?: string
|
|
181
186
|
createTime?: string
|
|
182
187
|
}
|
|
@@ -189,7 +194,7 @@ export type ListRegistryProjectResponse = {
|
|
|
189
194
|
export type ProjectBindingRequest = {
|
|
190
195
|
registry?: string
|
|
191
196
|
project?: string
|
|
192
|
-
bindingWorkspace?:
|
|
197
|
+
bindingWorkspace?: string[]
|
|
193
198
|
}
|
|
194
199
|
|
|
195
200
|
export type DeleteRegistryProject = {
|
|
@@ -253,6 +258,7 @@ export type APIListRepositoriesRequest = {
|
|
|
253
258
|
project?: string
|
|
254
259
|
page?: number
|
|
255
260
|
pageSize?: number
|
|
261
|
+
fuzzyName?: string
|
|
256
262
|
}
|
|
257
263
|
|
|
258
264
|
export type APIListRepositoriesResponse = {
|
|
@@ -33,13 +33,13 @@ export class Image {
|
|
|
33
33
|
return fm.fetchReq<KangarooIoApiImageV1alpha1Image.ListRegistryProjectRequest, KangarooIoApiImageV1alpha1Image.ListRegistryProjectResponse>(`/apis/kangaroo.io/v1alpha1/registries/${req["registry"]}/projects?${fm.renderURLSearchParams(req, ["registry"])}`, {...initReq, method: "GET"})
|
|
34
34
|
}
|
|
35
35
|
static UpdateRegistryProjectBinding(req: KangarooIoApiImageV1alpha1Image.ProjectBindingRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
36
|
-
return fm.fetchReq<KangarooIoApiImageV1alpha1Image.ProjectBindingRequest, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/registries/${req["registry"]}/projects/${req["project"]}/binding`, {...initReq, method: "PUT"})
|
|
36
|
+
return fm.fetchReq<KangarooIoApiImageV1alpha1Image.ProjectBindingRequest, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/registries/${req["registry"]}/projects/${req["project"]}/binding`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
37
37
|
}
|
|
38
38
|
static DeleteRegistryProject(req: KangarooIoApiImageV1alpha1Image.DeleteRegistryProject, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
39
39
|
return fm.fetchReq<KangarooIoApiImageV1alpha1Image.DeleteRegistryProject, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/registries/${req["registry"]}/projects/${req["project"]}`, {...initReq, method: "DELETE"})
|
|
40
40
|
}
|
|
41
41
|
static CreateRegistryProject(req: KangarooIoApiImageV1alpha1Image.CreateRegistryProject, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
42
|
-
return fm.fetchReq<KangarooIoApiImageV1alpha1Image.CreateRegistryProject, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/registries/${req["registry"]}/projects`, {...initReq, method: "POST"})
|
|
42
|
+
return fm.fetchReq<KangarooIoApiImageV1alpha1Image.CreateRegistryProject, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/registries/${req["registry"]}/projects`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
43
43
|
}
|
|
44
44
|
static GetRegistryStatistic(req: KangarooIoApiImageV1alpha1Image.StatisticRequest, initReq?: fm.InitReq): Promise<KangarooIoApiImageV1alpha1Image.StatisticResponse> {
|
|
45
45
|
return fm.fetchReq<KangarooIoApiImageV1alpha1Image.StatisticRequest, KangarooIoApiImageV1alpha1Image.StatisticResponse>(`/apis/kangaroo.io/v1alpha1/registries/${req["registry"]}/statistic?${fm.renderURLSearchParams(req, ["registry"])}`, {...initReq, method: "GET"})
|
|
@@ -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
|
}
|
package/package.json
CHANGED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
/*
|
|
4
|
-
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import * as KangarooIoApiTypesPage from "../../types/page.pb"
|
|
8
|
-
|
|
9
|
-
export enum ListProjectRequestSortBy {
|
|
10
|
-
SORT_BY_UNSPECIFIED = "SORT_BY_UNSPECIFIED",
|
|
11
|
-
field_name = "field_name",
|
|
12
|
-
creation_time = "creation_time",
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export type Project = {
|
|
16
|
-
chartCount?: string
|
|
17
|
-
creationTime?: string
|
|
18
|
-
currentUserRoleID?: string
|
|
19
|
-
currentUserRoleIds?: number[]
|
|
20
|
-
cVEAllowList?: CVEAllowList
|
|
21
|
-
deleted?: boolean
|
|
22
|
-
metadata?: ProjectMetadata
|
|
23
|
-
name?: string
|
|
24
|
-
ownerID?: number
|
|
25
|
-
ownerName?: string
|
|
26
|
-
projectID?: number
|
|
27
|
-
registryID?: string
|
|
28
|
-
repoCount?: string
|
|
29
|
-
togglable?: boolean
|
|
30
|
-
updateTime?: string
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export type CVEAllowList = {
|
|
34
|
-
creationTime?: string
|
|
35
|
-
expiresAt?: string
|
|
36
|
-
id?: string
|
|
37
|
-
items?: CVEAllowListItem[]
|
|
38
|
-
projectID?: string
|
|
39
|
-
updateTime?: string
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export type CVEAllowListItem = {
|
|
43
|
-
cVEID?: string
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export type ProjectMetadata = {
|
|
47
|
-
autoScan?: string
|
|
48
|
-
enableContentTrust?: string
|
|
49
|
-
enableContentTrustCosign?: string
|
|
50
|
-
preventVul?: string
|
|
51
|
-
public?: string
|
|
52
|
-
retentionID?: string
|
|
53
|
-
reuseSysCVEAllowList?: string
|
|
54
|
-
severity?: string
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export type ListProjectRequest = {
|
|
58
|
-
cluster?: string
|
|
59
|
-
namespace?: string
|
|
60
|
-
harbor?: string
|
|
61
|
-
page?: number
|
|
62
|
-
pageSize?: number
|
|
63
|
-
sortBy?: ListProjectRequestSortBy
|
|
64
|
-
orderBy?: KangarooIoApiTypesPage.OrderBy
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export type ListProjectResponse = {
|
|
68
|
-
items?: Project[]
|
|
69
|
-
pagination?: KangarooIoApiTypesPage.Page
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export type DeleteProjectRequest = {
|
|
73
|
-
cluster?: string
|
|
74
|
-
namespace?: string
|
|
75
|
-
harbor?: string
|
|
76
|
-
name?: string
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export type CreateProjectRequest = {
|
|
80
|
-
cluster?: string
|
|
81
|
-
namespace?: string
|
|
82
|
-
harbor?: string
|
|
83
|
-
name?: string
|
|
84
|
-
public?: boolean
|
|
85
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
/*
|
|
4
|
-
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import * as KangarooIoApiTypesPage from "../../types/page.pb"
|
|
8
|
-
|
|
9
|
-
export enum ListRepositoriesRequestSortBy {
|
|
10
|
-
SORT_BY_UNSPECIFIED = "SORT_BY_UNSPECIFIED",
|
|
11
|
-
name = "name",
|
|
12
|
-
creation_time = "creation_time",
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export type Repository = {
|
|
16
|
-
artifactCount?: string
|
|
17
|
-
creationTime?: string
|
|
18
|
-
description?: string
|
|
19
|
-
id?: string
|
|
20
|
-
name?: string
|
|
21
|
-
projectId?: string
|
|
22
|
-
pullCount?: string
|
|
23
|
-
updateTime?: string
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export type ListRepositoriesRequest = {
|
|
27
|
-
cluster?: string
|
|
28
|
-
namespace?: string
|
|
29
|
-
harbor?: string
|
|
30
|
-
project?: string
|
|
31
|
-
page?: number
|
|
32
|
-
pageSize?: number
|
|
33
|
-
sortBy?: ListRepositoriesRequestSortBy
|
|
34
|
-
orderBy?: KangarooIoApiTypesPage.OrderBy
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export type ListRepositoriesResponse = {
|
|
38
|
-
items?: Repository[]
|
|
39
|
-
pagination?: KangarooIoApiTypesPage.Page
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export type DeleteRepositoryRequest = {
|
|
43
|
-
cluster?: string
|
|
44
|
-
namespace?: string
|
|
45
|
-
harbor?: string
|
|
46
|
-
project?: string
|
|
47
|
-
name?: string
|
|
48
|
-
}
|