@daocloud-proto/kangaroo 0.5.0-64 → 0.5.0-641
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/google/protobuf/any.pb.ts +9 -0
- package/kangaroo.io/api/core/v1alpha1/auth.pb.ts +2 -2
- package/kangaroo.io/api/core/v1alpha1/cluster.pb.ts +12 -1
- package/kangaroo.io/api/harbor/v1alpha1/harbor.pb.ts +117 -0
- package/kangaroo.io/api/harbor/v1alpha1/middleware.pb.ts +58 -0
- package/kangaroo.io/api/harbor/v1alpha1/minio.pb.ts +46 -0
- package/kangaroo.io/api/harbor/v1alpha1/postgresql.pb.ts +44 -0
- package/kangaroo.io/api/harbor/v1alpha1/redis.pb.ts +12 -1
- package/kangaroo.io/api/harbor/v1alpha1/rpc.pb.ts +36 -2
- package/kangaroo.io/api/image/v1alpha1/image.pb.ts +47 -1
- package/kangaroo.io/api/image/v1alpha1/retention.pb.ts +152 -0
- package/kangaroo.io/api/image/v1alpha1/rpc.pb.ts +31 -1
- package/kangaroo.io/api/registry/v1alpha1/registry.pb.ts +31 -0
- package/kangaroo.io/api/registry/v1alpha1/replication.pb.ts +21 -8
- package/kangaroo.io/api/registry/v1alpha1/rpc.pb.ts +7 -1
- package/kangaroo.io/api/upload/v1alpha1/rpc.pb.ts +17 -0
- package/kangaroo.io/api/upload/v1alpha1/upload.pb.ts +15 -0
- package/package.json +1 -1
|
@@ -5,10 +5,8 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
export enum PermissionsType {
|
|
8
|
-
ScanImage = "ScanImage",
|
|
9
8
|
DeleteImage = "DeleteImage",
|
|
10
9
|
GetImage = "GetImage",
|
|
11
|
-
CreateImageKey = "CreateImageKey",
|
|
12
10
|
CreateConnectedRegistry = "CreateConnectedRegistry",
|
|
13
11
|
DeleteConnectedRegistry = "DeleteConnectedRegistry",
|
|
14
12
|
UpdateConnectedRegistry = "UpdateConnectedRegistry",
|
|
@@ -26,6 +24,8 @@ export enum PermissionsType {
|
|
|
26
24
|
DeleteManagedHarbor = "DeleteManagedHarbor",
|
|
27
25
|
UpdateManagedHarbor = "UpdateManagedHarbor",
|
|
28
26
|
GetManagedHarbor = "GetManagedHarbor",
|
|
27
|
+
CreateImage = "CreateImage",
|
|
28
|
+
UpdateImage = "UpdateImage",
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
export type GlobalPermissionsResponse = {
|
|
@@ -6,6 +6,12 @@
|
|
|
6
6
|
|
|
7
7
|
import * as KangarooIoApiTypesPage from "../../types/page.pb"
|
|
8
8
|
|
|
9
|
+
export enum clusterStatus {
|
|
10
|
+
clusterStatus_UNSPECIFIED = "clusterStatus_UNSPECIFIED",
|
|
11
|
+
clusterStatus_READY = "clusterStatus_READY",
|
|
12
|
+
clusterStatus_NOT_READY = "clusterStatus_NOT_READY",
|
|
13
|
+
}
|
|
14
|
+
|
|
9
15
|
export enum ListClusterRequestSortBy {
|
|
10
16
|
SORT_BY_UNSPECIFIED = "SORT_BY_UNSPECIFIED",
|
|
11
17
|
field_name = "field_name",
|
|
@@ -20,6 +26,11 @@ export type ListClusterRequest = {
|
|
|
20
26
|
}
|
|
21
27
|
|
|
22
28
|
export type ListClusterResponse = {
|
|
23
|
-
items?:
|
|
29
|
+
items?: clusterSummary[]
|
|
24
30
|
pagination?: KangarooIoApiTypesPage.Page
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export type clusterSummary = {
|
|
34
|
+
name?: string
|
|
35
|
+
status?: clusterStatus
|
|
25
36
|
}
|
|
@@ -8,6 +8,12 @@ import * as KangarooIoApiTypesObjectmeta from "../../types/objectmeta.pb"
|
|
|
8
8
|
import * as KangarooIoApiTypesPage from "../../types/page.pb"
|
|
9
9
|
import * as KangarooIoApiHarborV1alpha1Redis from "./redis.pb"
|
|
10
10
|
|
|
11
|
+
export enum TLSType {
|
|
12
|
+
TLS_TYPE_UNSPECIFIED = "TLS_TYPE_UNSPECIFIED",
|
|
13
|
+
SELF_SIGNED = "SELF_SIGNED",
|
|
14
|
+
CUSTOM = "CUSTOM",
|
|
15
|
+
}
|
|
16
|
+
|
|
11
17
|
export enum VerifyHarborOperatorResponseHarborOperatorStatus {
|
|
12
18
|
STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
|
|
13
19
|
STATUS_HARBOR_OPERATOR_IS_NOT_INSTALLED = "STATUS_HARBOR_OPERATOR_IS_NOT_INSTALLED",
|
|
@@ -15,11 +21,18 @@ export enum VerifyHarborOperatorResponseHarborOperatorStatus {
|
|
|
15
21
|
STATUS_READY = "STATUS_READY",
|
|
16
22
|
}
|
|
17
23
|
|
|
24
|
+
export enum VerifyPreEnvironmentResponsePreEnvironmentStatus {
|
|
25
|
+
STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
|
|
26
|
+
STATUS_PRE_ENVIRONMENT_IS_NOT_READY = "STATUS_PRE_ENVIRONMENT_IS_NOT_READY",
|
|
27
|
+
STATUS_PRE_ENVIRONMENT_READY = "STATUS_PRE_ENVIRONMENT_READY",
|
|
28
|
+
}
|
|
29
|
+
|
|
18
30
|
export enum DatabaseSpecDatabaseType {
|
|
19
31
|
DATABASE_UNSPECIFIED = "DATABASE_UNSPECIFIED",
|
|
20
32
|
BUILT_IN_MODE = "BUILT_IN_MODE",
|
|
21
33
|
MCAMEL_MODE = "MCAMEL_MODE",
|
|
22
34
|
EXTERNAL_MODE = "EXTERNAL_MODE",
|
|
35
|
+
BUILT_IN_MODE_WITH_MCAMEL = "BUILT_IN_MODE_WITH_MCAMEL",
|
|
23
36
|
}
|
|
24
37
|
|
|
25
38
|
export enum CacheSpecCacheType {
|
|
@@ -27,12 +40,15 @@ export enum CacheSpecCacheType {
|
|
|
27
40
|
BUILT_IN_MODE = "BUILT_IN_MODE",
|
|
28
41
|
MCAMEL_MODE = "MCAMEL_MODE",
|
|
29
42
|
EXTERNAL_MODE = "EXTERNAL_MODE",
|
|
43
|
+
BUILT_IN_MODE_WITH_MCAMEL = "BUILT_IN_MODE_WITH_MCAMEL",
|
|
30
44
|
}
|
|
31
45
|
|
|
32
46
|
export enum OCIStorageSpecStorageType {
|
|
33
47
|
STORAGE_UNSPECIFIED = "STORAGE_UNSPECIFIED",
|
|
34
48
|
S3 = "S3",
|
|
35
49
|
STORAGE_CLASS = "STORAGE_CLASS",
|
|
50
|
+
MCAMEL_MINIO = "MCAMEL_MINIO",
|
|
51
|
+
BUILT_IN_MINIO_MODE_WITH_MCAMEL = "BUILT_IN_MINIO_MODE_WITH_MCAMEL",
|
|
36
52
|
}
|
|
37
53
|
|
|
38
54
|
export enum ExposeSpecExposeType {
|
|
@@ -49,6 +65,16 @@ export enum HarborClusterStatusClusterStatus {
|
|
|
49
65
|
UNHEALTHY = "UNHEALTHY",
|
|
50
66
|
}
|
|
51
67
|
|
|
68
|
+
export enum HarborClusterStatusTargetClusterStatus {
|
|
69
|
+
TARGET_CLUSTER_STATUS_UNSPECIFIED = "TARGET_CLUSTER_STATUS_UNSPECIFIED",
|
|
70
|
+
TARGET_CLUSTER_STATUS_RUNNING = "TARGET_CLUSTER_STATUS_RUNNING",
|
|
71
|
+
TARGET_CLUSTER_STATUS_FAILED = "TARGET_CLUSTER_STATUS_FAILED",
|
|
72
|
+
TARGET_CLUSTER_STATUS_UNKNOWN = "TARGET_CLUSTER_STATUS_UNKNOWN",
|
|
73
|
+
TARGET_CLUSTER_STATUS_DELETING = "TARGET_CLUSTER_STATUS_DELETING",
|
|
74
|
+
TARGET_CLUSTER_STATUS_CREATING = "TARGET_CLUSTER_STATUS_CREATING",
|
|
75
|
+
TARGET_CLUSTER_STATUS_UPDATING = "TARGET_CLUSTER_STATUS_UPDATING",
|
|
76
|
+
}
|
|
77
|
+
|
|
52
78
|
export type GetHarborParamsRequest = {
|
|
53
79
|
cluster?: string
|
|
54
80
|
}
|
|
@@ -62,6 +88,7 @@ export type GetHarborParamsResponse = {
|
|
|
62
88
|
export type ResourceNameList = {
|
|
63
89
|
name?: string
|
|
64
90
|
default?: boolean
|
|
91
|
+
hwameistorReplicas?: number
|
|
65
92
|
}
|
|
66
93
|
|
|
67
94
|
export type VerifyHarborOperatorRequest = {
|
|
@@ -72,6 +99,18 @@ export type VerifyHarborOperatorResponse = {
|
|
|
72
99
|
status?: VerifyHarborOperatorResponseHarborOperatorStatus
|
|
73
100
|
}
|
|
74
101
|
|
|
102
|
+
export type VerifyPreEnvironmentRequest = {
|
|
103
|
+
cluster?: string
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export type VerifyPreEnvironmentResponse = {
|
|
107
|
+
certManagerStatus?: VerifyPreEnvironmentResponsePreEnvironmentStatus
|
|
108
|
+
harborOperatorStatus?: VerifyPreEnvironmentResponsePreEnvironmentStatus
|
|
109
|
+
pgOperatorStatus?: VerifyPreEnvironmentResponsePreEnvironmentStatus
|
|
110
|
+
redisOperatorStatus?: VerifyPreEnvironmentResponsePreEnvironmentStatus
|
|
111
|
+
minioOperatorStatus?: VerifyPreEnvironmentResponsePreEnvironmentStatus
|
|
112
|
+
}
|
|
113
|
+
|
|
75
114
|
export type VerifyNamespaceQuotaRequest = {
|
|
76
115
|
cluster?: string
|
|
77
116
|
namespace?: string
|
|
@@ -82,6 +121,13 @@ export type VerifyNamespaceQuotaRequest = {
|
|
|
82
121
|
|
|
83
122
|
export type VerifyNamespaceQuotaResponse = {
|
|
84
123
|
status?: boolean
|
|
124
|
+
cpu?: QuotaResponse
|
|
125
|
+
memory?: QuotaResponse
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export type QuotaResponse = {
|
|
129
|
+
request?: string
|
|
130
|
+
allocatable?: string
|
|
85
131
|
}
|
|
86
132
|
|
|
87
133
|
export type HarborCluster = {
|
|
@@ -101,6 +147,7 @@ export type HarborClusterSpec = {
|
|
|
101
147
|
userSyncToHarbor?: boolean
|
|
102
148
|
adminPassword?: string
|
|
103
149
|
enableTrivy?: boolean
|
|
150
|
+
enableMetrics?: boolean
|
|
104
151
|
}
|
|
105
152
|
|
|
106
153
|
export type Resources = {
|
|
@@ -113,12 +160,23 @@ export type DatabaseSpec = {
|
|
|
113
160
|
inSpec?: DBBuiltInModeSpec
|
|
114
161
|
mcamelSpec?: DBMcamelModeSpec
|
|
115
162
|
externalSpec?: DBExternalModeSpec
|
|
163
|
+
buildInMcamelSpec?: DBBuildInWithMcamelModeSpec
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export type DBBuildInWithMcamelModeSpec = {
|
|
167
|
+
cluster?: string
|
|
168
|
+
namespace?: string
|
|
169
|
+
name?: string
|
|
116
170
|
}
|
|
117
171
|
|
|
118
172
|
export type DBBuiltInModeSpec = {
|
|
119
173
|
}
|
|
120
174
|
|
|
121
175
|
export type DBMcamelModeSpec = {
|
|
176
|
+
cluster?: string
|
|
177
|
+
namespace?: string
|
|
178
|
+
name?: string
|
|
179
|
+
workspace?: string
|
|
122
180
|
}
|
|
123
181
|
|
|
124
182
|
export type DBExternalModeSpec = {
|
|
@@ -132,6 +190,14 @@ export type CacheSpec = {
|
|
|
132
190
|
inSpec?: CacheBuiltInModeSpec
|
|
133
191
|
mcamelSpec?: CacheMcamelModeSpec
|
|
134
192
|
externalSpec?: CacheExternalModeSpec
|
|
193
|
+
buildInMcamelSpec?: CacheBuildInWithMcamelModeSpec
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export type CacheBuildInWithMcamelModeSpec = {
|
|
197
|
+
cluster?: string
|
|
198
|
+
namespace?: string
|
|
199
|
+
name?: string
|
|
200
|
+
type?: KangarooIoApiHarborV1alpha1Redis.RedisInstanceType
|
|
135
201
|
}
|
|
136
202
|
|
|
137
203
|
export type CacheBuiltInModeSpec = {
|
|
@@ -154,7 +220,24 @@ export type CacheExternalModeSpec = {
|
|
|
154
220
|
export type OCIStorageSpec = {
|
|
155
221
|
type?: OCIStorageSpecStorageType
|
|
156
222
|
s3Spec?: S3Spec
|
|
223
|
+
mcamelMinioSpec?: McamelMinioSpec
|
|
157
224
|
scSpec?: StorageClassSpec
|
|
225
|
+
builtInMinioMcamelSpec?: MinioBuiltInWithMcamelModeSpec
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export type MinioBuiltInWithMcamelModeSpec = {
|
|
229
|
+
cluster?: string
|
|
230
|
+
namespace?: string
|
|
231
|
+
name?: string
|
|
232
|
+
bucket?: string
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export type McamelMinioSpec = {
|
|
236
|
+
name?: string
|
|
237
|
+
namespace?: string
|
|
238
|
+
cluster?: string
|
|
239
|
+
workspace?: string
|
|
240
|
+
bucket?: string
|
|
158
241
|
}
|
|
159
242
|
|
|
160
243
|
export type StorageClassSpec = {
|
|
@@ -201,6 +284,7 @@ export type ExposeNodePortSpec = {
|
|
|
201
284
|
|
|
202
285
|
export type HarborClusterStatus = {
|
|
203
286
|
status?: HarborClusterStatusClusterStatus
|
|
287
|
+
targetClusterStatus?: HarborClusterStatusTargetClusterStatus
|
|
204
288
|
}
|
|
205
289
|
|
|
206
290
|
export type CreateHarborClusterRequest = {
|
|
@@ -216,6 +300,7 @@ export type UpdateHarborClusterRequest = {
|
|
|
216
300
|
namespace?: string
|
|
217
301
|
name?: string
|
|
218
302
|
spec?: HarborClusterSpec
|
|
303
|
+
metadata?: KangarooIoApiTypesObjectmeta.ObjectMeta
|
|
219
304
|
}
|
|
220
305
|
|
|
221
306
|
export type GetHarborClusterRequest = {
|
|
@@ -224,10 +309,19 @@ export type GetHarborClusterRequest = {
|
|
|
224
309
|
name?: string
|
|
225
310
|
}
|
|
226
311
|
|
|
312
|
+
export type DeleteHarborClusterharborMiddlewareMetadata = {
|
|
313
|
+
cluster?: string
|
|
314
|
+
namespace?: string
|
|
315
|
+
name?: string
|
|
316
|
+
}
|
|
317
|
+
|
|
227
318
|
export type DeleteHarborCluster = {
|
|
228
319
|
cluster?: string
|
|
229
320
|
namespace?: string
|
|
230
321
|
name?: string
|
|
322
|
+
harborMiddlewareRedis?: DeleteHarborClusterharborMiddlewareMetadata
|
|
323
|
+
harborMiddlewarePostgres?: DeleteHarborClusterharborMiddlewareMetadata
|
|
324
|
+
harborMiddlewareMinio?: DeleteHarborClusterharborMiddlewareMetadata
|
|
231
325
|
}
|
|
232
326
|
|
|
233
327
|
export type ListHarborClusterRequest = {
|
|
@@ -254,6 +348,7 @@ export type VerifyNodePortResponse = {
|
|
|
254
348
|
|
|
255
349
|
export type ListTLSRequest = {
|
|
256
350
|
cluster?: string
|
|
351
|
+
namespace?: string
|
|
257
352
|
}
|
|
258
353
|
|
|
259
354
|
export type ListTLSResponse = {
|
|
@@ -263,4 +358,26 @@ export type ListTLSResponse = {
|
|
|
263
358
|
export type ListTLSResponseItem = {
|
|
264
359
|
namespace?: string
|
|
265
360
|
name?: string
|
|
361
|
+
type?: TLSType
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
export type CheckDependServiceRequest = {
|
|
365
|
+
name?: string
|
|
366
|
+
namespace?: string
|
|
367
|
+
cluster?: string
|
|
368
|
+
database?: DatabaseSpec
|
|
369
|
+
cache?: CacheSpec
|
|
370
|
+
storage?: OCIStorageSpec
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
export type CheckResponse = {
|
|
374
|
+
completed?: boolean
|
|
375
|
+
isPass?: boolean
|
|
376
|
+
message?: string
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
export type CheckDependServiceResponse = {
|
|
380
|
+
db?: CheckResponse
|
|
381
|
+
cache?: CheckResponse
|
|
382
|
+
storage?: CheckResponse
|
|
266
383
|
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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 KangarooIoApiHarborV1alpha1Harbor from "./harbor.pb"
|
|
8
|
+
|
|
9
|
+
export enum CreateHarborMiddlewareStatus {
|
|
10
|
+
CREATE_HARBOR_MIDDLEWARE_STATUS_UNSPECIFIED = "CREATE_HARBOR_MIDDLEWARE_STATUS_UNSPECIFIED",
|
|
11
|
+
CREATE_HARBOR_MIDDLEWARE_STATUS_SUCCESS = "CREATE_HARBOR_MIDDLEWARE_STATUS_SUCCESS",
|
|
12
|
+
CREATE_HARBOR_MIDDLEWARE_STATUS_INTERNAL_SERVER_ERROR = "CREATE_HARBOR_MIDDLEWARE_STATUS_INTERNAL_SERVER_ERROR",
|
|
13
|
+
CREATE_HARBOR_MIDDLEWARE_STATUS_ALREADY_EXISTS = "CREATE_HARBOR_MIDDLEWARE_STATUS_ALREADY_EXISTS",
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type CreateHarborMiddlewareRequest = {
|
|
17
|
+
cluster?: string
|
|
18
|
+
namespace?: string
|
|
19
|
+
redis?: HarborMiddlewareRedis
|
|
20
|
+
postgres?: HarborMiddlewarePostgres
|
|
21
|
+
minio?: HarborMiddlewareMinio
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export type HarborMiddlewareRedis = {
|
|
25
|
+
name?: string
|
|
26
|
+
replicas?: number
|
|
27
|
+
resources?: KangarooIoApiHarborV1alpha1Harbor.Resources
|
|
28
|
+
storageClassName?: string
|
|
29
|
+
storageSize?: string
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export type HarborMiddlewarePostgres = {
|
|
33
|
+
name?: string
|
|
34
|
+
replicas?: number
|
|
35
|
+
resources?: KangarooIoApiHarborV1alpha1Harbor.Resources
|
|
36
|
+
storageClassName?: string
|
|
37
|
+
storageSize?: string
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export type HarborMiddlewareMinio = {
|
|
41
|
+
name?: string
|
|
42
|
+
replicas?: number
|
|
43
|
+
resources?: KangarooIoApiHarborV1alpha1Harbor.Resources
|
|
44
|
+
storageClassName?: string
|
|
45
|
+
storageSize?: string
|
|
46
|
+
volumesPreServer?: number
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export type CreateHarborMiddlewareResponse = {
|
|
50
|
+
redis?: CreateHarborMiddlewareResult
|
|
51
|
+
postgres?: CreateHarborMiddlewareResult
|
|
52
|
+
minio?: CreateHarborMiddlewareResult
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export type CreateHarborMiddlewareResult = {
|
|
56
|
+
status?: CreateHarborMiddlewareStatus
|
|
57
|
+
message?: string
|
|
58
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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 MinioStatus {
|
|
10
|
+
MINIO_STATUS_UNSPECIFIED = "MINIO_STATUS_UNSPECIFIED",
|
|
11
|
+
MINIO_STATUS_FAILED = "MINIO_STATUS_FAILED",
|
|
12
|
+
MINIO_STATUS_RUNNING = "MINIO_STATUS_RUNNING",
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export type MinioSummary = {
|
|
16
|
+
name?: string
|
|
17
|
+
cluster?: string
|
|
18
|
+
namespace?: string
|
|
19
|
+
buckets?: string[]
|
|
20
|
+
address?: string[]
|
|
21
|
+
status?: MinioStatus
|
|
22
|
+
replica?: number
|
|
23
|
+
useBy?: string
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type ListMinioRequest = {
|
|
27
|
+
workspace?: string
|
|
28
|
+
page?: number
|
|
29
|
+
pageSize?: number
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export type ListMinioResponse = {
|
|
33
|
+
items?: MinioSummary[]
|
|
34
|
+
pagination?: KangarooIoApiTypesPage.Page
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export type ListMinioInstanceRequest = {
|
|
38
|
+
fuzzyName?: string
|
|
39
|
+
page?: number
|
|
40
|
+
pageSize?: number
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export type ListMinioInstanceResponse = {
|
|
44
|
+
items?: MinioSummary[]
|
|
45
|
+
pagination?: KangarooIoApiTypesPage.Page
|
|
46
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 PostgresqlStatus {
|
|
10
|
+
PG_STATUS_UNSPECIFIED = "PG_STATUS_UNSPECIFIED",
|
|
11
|
+
PG_STATUS_RUNNING = "PG_STATUS_RUNNING",
|
|
12
|
+
PG_STATUS_FAILED = "PG_STATUS_FAILED",
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export type PostgresqlSummary = {
|
|
16
|
+
name?: string
|
|
17
|
+
cluster?: string
|
|
18
|
+
namespace?: string
|
|
19
|
+
status?: PostgresqlStatus
|
|
20
|
+
numberOfInstances?: number
|
|
21
|
+
useBy?: string
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export type ListPostgresqlRequest = {
|
|
25
|
+
workspace?: string
|
|
26
|
+
page?: number
|
|
27
|
+
pageSize?: number
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export type ListPostgresqlResponse = {
|
|
31
|
+
items?: PostgresqlSummary[]
|
|
32
|
+
pagination?: KangarooIoApiTypesPage.Page
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export type ListPostgresqlInstanceRequest = {
|
|
36
|
+
fuzzyName?: string
|
|
37
|
+
page?: number
|
|
38
|
+
pageSize?: number
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export type ListPostgresqlInstanceResponse = {
|
|
42
|
+
items?: PostgresqlSummary[]
|
|
43
|
+
pagination?: KangarooIoApiTypesPage.Page
|
|
44
|
+
}
|
|
@@ -8,7 +8,6 @@ import * as KangarooIoApiTypesPage from "../../types/page.pb"
|
|
|
8
8
|
|
|
9
9
|
export enum RedisStatus {
|
|
10
10
|
RUNNING = "RUNNING",
|
|
11
|
-
CREATING = "CREATING",
|
|
12
11
|
FAILED = "FAILED",
|
|
13
12
|
}
|
|
14
13
|
|
|
@@ -25,6 +24,7 @@ export type RedisSummary = {
|
|
|
25
24
|
namespace?: string
|
|
26
25
|
status?: RedisStatus
|
|
27
26
|
instanceType?: RedisInstanceType
|
|
27
|
+
useBy?: string
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
export type ListRedisRequest = {
|
|
@@ -36,4 +36,15 @@ export type ListRedisRequest = {
|
|
|
36
36
|
export type ListRedisResponse = {
|
|
37
37
|
items?: RedisSummary[]
|
|
38
38
|
pagination?: KangarooIoApiTypesPage.Page
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export type ListRedisInstanceRequest = {
|
|
42
|
+
fuzzyName?: string
|
|
43
|
+
page?: number
|
|
44
|
+
pageSize?: number
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export type ListRedisInstanceResponse = {
|
|
48
|
+
items?: RedisSummary[]
|
|
49
|
+
pagination?: KangarooIoApiTypesPage.Page
|
|
39
50
|
}
|
|
@@ -6,7 +6,11 @@
|
|
|
6
6
|
|
|
7
7
|
import * as fm from "../../../../fetch.pb"
|
|
8
8
|
import * as GoogleProtobufEmpty from "../../../../google/protobuf/empty.pb"
|
|
9
|
+
import * as KangarooIoApiTypesObjectmeta from "../../types/objectmeta.pb"
|
|
9
10
|
import * as KangarooIoApiHarborV1alpha1Harbor from "./harbor.pb"
|
|
11
|
+
import * as KangarooIoApiHarborV1alpha1Middleware from "./middleware.pb"
|
|
12
|
+
import * as KangarooIoApiHarborV1alpha1Minio from "./minio.pb"
|
|
13
|
+
import * as KangarooIoApiHarborV1alpha1Postgresql from "./postgresql.pb"
|
|
10
14
|
import * as KangarooIoApiHarborV1alpha1Redis from "./redis.pb"
|
|
11
15
|
export class Harbor {
|
|
12
16
|
static GetHarborParams(req: KangarooIoApiHarborV1alpha1Harbor.GetHarborParamsRequest, initReq?: fm.InitReq): Promise<KangarooIoApiHarborV1alpha1Harbor.GetHarborParamsResponse> {
|
|
@@ -15,6 +19,9 @@ export class Harbor {
|
|
|
15
19
|
static VerifyHarborOperator(req: KangarooIoApiHarborV1alpha1Harbor.VerifyHarborOperatorRequest, initReq?: fm.InitReq): Promise<KangarooIoApiHarborV1alpha1Harbor.VerifyHarborOperatorResponse> {
|
|
16
20
|
return fm.fetchReq<KangarooIoApiHarborV1alpha1Harbor.VerifyHarborOperatorRequest, KangarooIoApiHarborV1alpha1Harbor.VerifyHarborOperatorResponse>(`/apis/kangaroo.io/v1alpha1/clusters/${req["cluster"]}/check?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
17
21
|
}
|
|
22
|
+
static VerifyPreEnvironment(req: KangarooIoApiHarborV1alpha1Harbor.VerifyPreEnvironmentRequest, initReq?: fm.InitReq): Promise<KangarooIoApiHarborV1alpha1Harbor.VerifyPreEnvironmentResponse> {
|
|
23
|
+
return fm.fetchReq<KangarooIoApiHarborV1alpha1Harbor.VerifyPreEnvironmentRequest, KangarooIoApiHarborV1alpha1Harbor.VerifyPreEnvironmentResponse>(`/apis/kangaroo.io/v1alpha1/clusters/${req["cluster"]}/check-pre-environment?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
24
|
+
}
|
|
18
25
|
static VerifyNamespaceQuota(req: KangarooIoApiHarborV1alpha1Harbor.VerifyNamespaceQuotaRequest, initReq?: fm.InitReq): Promise<KangarooIoApiHarborV1alpha1Harbor.VerifyNamespaceQuotaResponse> {
|
|
19
26
|
return fm.fetchReq<KangarooIoApiHarborV1alpha1Harbor.VerifyNamespaceQuotaRequest, KangarooIoApiHarborV1alpha1Harbor.VerifyNamespaceQuotaResponse>(`/apis/kangaroo.io/v1alpha1/clusters/${req["cluster"]}/namespace/${req["namespace"]}/check?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
|
|
20
27
|
}
|
|
@@ -34,12 +41,39 @@ export class Harbor {
|
|
|
34
41
|
return fm.fetchReq<KangarooIoApiHarborV1alpha1Harbor.UpdateHarborClusterRequest, KangarooIoApiHarborV1alpha1Harbor.HarborCluster>(`/apis/kangaroo.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/harbors/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
35
42
|
}
|
|
36
43
|
static DeleteHarborCluster(req: KangarooIoApiHarborV1alpha1Harbor.DeleteHarborCluster, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
37
|
-
return fm.fetchReq<KangarooIoApiHarborV1alpha1Harbor.DeleteHarborCluster, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/harbors/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
44
|
+
return fm.fetchReq<KangarooIoApiHarborV1alpha1Harbor.DeleteHarborCluster, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/harbors/${req["name"]}`, {...initReq, method: "DELETE", body: JSON.stringify(req)})
|
|
38
45
|
}
|
|
39
46
|
static ListRedis(req: KangarooIoApiHarborV1alpha1Redis.ListRedisRequest, initReq?: fm.InitReq): Promise<KangarooIoApiHarborV1alpha1Redis.ListRedisResponse> {
|
|
40
47
|
return fm.fetchReq<KangarooIoApiHarborV1alpha1Redis.ListRedisRequest, KangarooIoApiHarborV1alpha1Redis.ListRedisResponse>(`/apis/kangaroo.io/v1alpha1/workspace/${req["workspace"]}/redis?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
|
|
41
48
|
}
|
|
49
|
+
static ListRedisInstance(req: KangarooIoApiHarborV1alpha1Redis.ListRedisInstanceRequest, initReq?: fm.InitReq): Promise<KangarooIoApiHarborV1alpha1Redis.ListRedisInstanceResponse> {
|
|
50
|
+
return fm.fetchReq<KangarooIoApiHarborV1alpha1Redis.ListRedisInstanceRequest, KangarooIoApiHarborV1alpha1Redis.ListRedisInstanceResponse>(`/apis/kangaroo.io/v1alpha1/redis-instance?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
51
|
+
}
|
|
52
|
+
static ListPostgresql(req: KangarooIoApiHarborV1alpha1Postgresql.ListPostgresqlRequest, initReq?: fm.InitReq): Promise<KangarooIoApiHarborV1alpha1Postgresql.ListPostgresqlResponse> {
|
|
53
|
+
return fm.fetchReq<KangarooIoApiHarborV1alpha1Postgresql.ListPostgresqlRequest, KangarooIoApiHarborV1alpha1Postgresql.ListPostgresqlResponse>(`/apis/kangaroo.io/v1alpha1/workspace/${req["workspace"]}/postgresql?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
|
|
54
|
+
}
|
|
55
|
+
static ListPostgresqlInstance(req: KangarooIoApiHarborV1alpha1Postgresql.ListPostgresqlInstanceRequest, initReq?: fm.InitReq): Promise<KangarooIoApiHarborV1alpha1Postgresql.ListPostgresqlInstanceResponse> {
|
|
56
|
+
return fm.fetchReq<KangarooIoApiHarborV1alpha1Postgresql.ListPostgresqlInstanceRequest, KangarooIoApiHarborV1alpha1Postgresql.ListPostgresqlInstanceResponse>(`/apis/kangaroo.io/v1alpha1/postgresql-instance?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
57
|
+
}
|
|
58
|
+
static ListMinio(req: KangarooIoApiHarborV1alpha1Minio.ListMinioRequest, initReq?: fm.InitReq): Promise<KangarooIoApiHarborV1alpha1Minio.ListMinioResponse> {
|
|
59
|
+
return fm.fetchReq<KangarooIoApiHarborV1alpha1Minio.ListMinioRequest, KangarooIoApiHarborV1alpha1Minio.ListMinioResponse>(`/apis/kangaroo.io/v1alpha1/workspace/${req["workspace"]}/minio?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
|
|
60
|
+
}
|
|
61
|
+
static ListMinioInstance(req: KangarooIoApiHarborV1alpha1Minio.ListMinioInstanceRequest, initReq?: fm.InitReq): Promise<KangarooIoApiHarborV1alpha1Minio.ListMinioInstanceResponse> {
|
|
62
|
+
return fm.fetchReq<KangarooIoApiHarborV1alpha1Minio.ListMinioInstanceRequest, KangarooIoApiHarborV1alpha1Minio.ListMinioInstanceResponse>(`/apis/kangaroo.io/v1alpha1/minio-instance?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
63
|
+
}
|
|
42
64
|
static ListTLSSecret(req: KangarooIoApiHarborV1alpha1Harbor.ListTLSRequest, initReq?: fm.InitReq): Promise<KangarooIoApiHarborV1alpha1Harbor.ListTLSResponse> {
|
|
43
|
-
return fm.fetchReq<KangarooIoApiHarborV1alpha1Harbor.ListTLSRequest, KangarooIoApiHarborV1alpha1Harbor.ListTLSResponse>(`/apis/kangaroo.io/v1alpha1/cluster/${req["cluster"]}/tls?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
65
|
+
return fm.fetchReq<KangarooIoApiHarborV1alpha1Harbor.ListTLSRequest, KangarooIoApiHarborV1alpha1Harbor.ListTLSResponse>(`/apis/kangaroo.io/v1alpha1/cluster/${req["cluster"]}/namespace/${req["namespace"]}/tls?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
|
|
66
|
+
}
|
|
67
|
+
static CreateVerifyDependService(req: KangarooIoApiHarborV1alpha1Harbor.CheckDependServiceRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
68
|
+
return fm.fetchReq<KangarooIoApiHarborV1alpha1Harbor.CheckDependServiceRequest, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/cluster/${req["cluster"]}/namespace/${req["namespace"]}/harbors/${req["name"]}/verify`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
69
|
+
}
|
|
70
|
+
static CreateHarborMiddleware(req: KangarooIoApiHarborV1alpha1Middleware.CreateHarborMiddlewareRequest, initReq?: fm.InitReq): Promise<KangarooIoApiHarborV1alpha1Middleware.CreateHarborMiddlewareResponse> {
|
|
71
|
+
return fm.fetchReq<KangarooIoApiHarborV1alpha1Middleware.CreateHarborMiddlewareRequest, KangarooIoApiHarborV1alpha1Middleware.CreateHarborMiddlewareResponse>(`/apis/kangaroo.io/v1alpha1/clusters/${req["cluster"]}/namespace/${req["namespace"]}/middleware`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
72
|
+
}
|
|
73
|
+
static GetVerifyDependService(req: KangarooIoApiTypesObjectmeta.ObjectMeta, initReq?: fm.InitReq): Promise<KangarooIoApiHarborV1alpha1Harbor.CheckDependServiceResponse> {
|
|
74
|
+
return fm.fetchReq<KangarooIoApiTypesObjectmeta.ObjectMeta, KangarooIoApiHarborV1alpha1Harbor.CheckDependServiceResponse>(`/apis/kangaroo.io/v1alpha1/cluster/${req["cluster"]}/namespace/${req["namespace"]}/harbors/${req["name"]}/verify?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
75
|
+
}
|
|
76
|
+
static SyncHarborStatus(req: KangarooIoApiTypesObjectmeta.ObjectMeta, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
77
|
+
return fm.fetchReq<KangarooIoApiTypesObjectmeta.ObjectMeta, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/cluster/${req["cluster"]}/namespace/${req["namespace"]}/harbors/${req["name"]}/sync?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
44
78
|
}
|
|
45
79
|
}
|
|
@@ -4,8 +4,15 @@
|
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
+
import * as KangarooIoApiRegistryV1alpha1Registry from "../../registry/v1alpha1/registry.pb"
|
|
7
8
|
import * as KangarooIoApiTypesPage from "../../types/page.pb"
|
|
8
9
|
|
|
10
|
+
export enum RegistrySecretHealth {
|
|
11
|
+
health_unspecified = "health_unspecified",
|
|
12
|
+
healthy = "healthy",
|
|
13
|
+
unhealthy = "unhealthy",
|
|
14
|
+
}
|
|
15
|
+
|
|
9
16
|
export enum ListRepositoriesRequestSortBy {
|
|
10
17
|
unspecified = "unspecified",
|
|
11
18
|
pull_count = "pull_count",
|
|
@@ -51,6 +58,9 @@ export type RegistrySecret = {
|
|
|
51
58
|
alias?: string
|
|
52
59
|
host?: string
|
|
53
60
|
name?: string
|
|
61
|
+
health?: RegistrySecretHealth
|
|
62
|
+
registryType?: KangarooIoApiRegistryV1alpha1Registry.RegistryType
|
|
63
|
+
scope?: string
|
|
54
64
|
}
|
|
55
65
|
|
|
56
66
|
export type ListRegistryResponse = {
|
|
@@ -63,6 +73,13 @@ export type ListProjectRequest = {
|
|
|
63
73
|
registry?: string
|
|
64
74
|
page?: number
|
|
65
75
|
pageSize?: number
|
|
76
|
+
fuzzyName?: string
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export type GetProjectRequest = {
|
|
80
|
+
workspace?: string
|
|
81
|
+
registry?: string
|
|
82
|
+
project?: string
|
|
66
83
|
}
|
|
67
84
|
|
|
68
85
|
export type ListProjectResponse = {
|
|
@@ -75,6 +92,10 @@ export type ListProjectResponseItem = {
|
|
|
75
92
|
public?: boolean
|
|
76
93
|
total?: string
|
|
77
94
|
createTime?: string
|
|
95
|
+
retentionId?: string
|
|
96
|
+
projectId?: string
|
|
97
|
+
isBindingWorkspace?: boolean
|
|
98
|
+
isProxyProject?: boolean
|
|
78
99
|
}
|
|
79
100
|
|
|
80
101
|
export type Repository = {
|
|
@@ -83,6 +104,7 @@ export type Repository = {
|
|
|
83
104
|
tagCount?: string
|
|
84
105
|
pullCount?: string
|
|
85
106
|
updateTime?: string
|
|
107
|
+
description?: string
|
|
86
108
|
}
|
|
87
109
|
|
|
88
110
|
export type ListRepositoriesRequest = {
|
|
@@ -230,6 +252,7 @@ export type ListRegistryProjectRequest = {
|
|
|
230
252
|
registry?: string
|
|
231
253
|
page?: number
|
|
232
254
|
pageSize?: number
|
|
255
|
+
onlyBind?: boolean
|
|
233
256
|
}
|
|
234
257
|
|
|
235
258
|
export type RegistryProjectResponse = {
|
|
@@ -292,6 +315,7 @@ export type APIListRegistryRequest = {
|
|
|
292
315
|
global?: boolean
|
|
293
316
|
page?: number
|
|
294
317
|
pageSize?: number
|
|
318
|
+
fuzzyName?: string
|
|
295
319
|
}
|
|
296
320
|
|
|
297
321
|
export type APIListRegistryResponse = {
|
|
@@ -305,6 +329,9 @@ export type APIListProjectRequest = {
|
|
|
305
329
|
public?: boolean
|
|
306
330
|
page?: number
|
|
307
331
|
pageSize?: number
|
|
332
|
+
onlyBind?: boolean
|
|
333
|
+
all?: boolean
|
|
334
|
+
fuzzyName?: string
|
|
308
335
|
}
|
|
309
336
|
|
|
310
337
|
export type APIListProjectResponse = {
|
|
@@ -333,6 +360,7 @@ export type APIListArtifactsRequest = {
|
|
|
333
360
|
repository?: string
|
|
334
361
|
page?: number
|
|
335
362
|
pageSize?: number
|
|
363
|
+
fuzzyTagName?: string
|
|
336
364
|
}
|
|
337
365
|
|
|
338
366
|
export type APIListArtifactsResponse = {
|
|
@@ -400,7 +428,6 @@ export type GetScannerOfProjectResponse = {
|
|
|
400
428
|
export type GetPushCommandRequest = {
|
|
401
429
|
workspace?: string
|
|
402
430
|
registry?: string
|
|
403
|
-
project?: string
|
|
404
431
|
expired?: string
|
|
405
432
|
}
|
|
406
433
|
|
|
@@ -408,4 +435,23 @@ export type GetPushCommandResponse = {
|
|
|
408
435
|
cmd?: string
|
|
409
436
|
expired?: string
|
|
410
437
|
expiredAt?: string
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
export type UpdateRepositoryDescriptionRequest = {
|
|
441
|
+
workspace?: string
|
|
442
|
+
registry?: string
|
|
443
|
+
project?: string
|
|
444
|
+
repository?: string
|
|
445
|
+
description?: string
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
export type UpdateRepositoryDescriptionResponse = {
|
|
449
|
+
description?: string
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
export type GetRepositoryRequest = {
|
|
453
|
+
workspace?: string
|
|
454
|
+
registry?: string
|
|
455
|
+
project?: string
|
|
456
|
+
repository?: string
|
|
411
457
|
}
|
|
@@ -0,0 +1,152 @@
|
|
|
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 RetentionRuleTemplate {
|
|
10
|
+
RETENTION_RULE_TEMPLATE_UNSPECIFIED = "RETENTION_RULE_TEMPLATE_UNSPECIFIED",
|
|
11
|
+
N_DAYS_SINCE_LAST_PULL = "N_DAYS_SINCE_LAST_PULL",
|
|
12
|
+
N_DAYS_SINCE_LAST_PUSH = "N_DAYS_SINCE_LAST_PUSH",
|
|
13
|
+
TYPE_ALWAYS = "TYPE_ALWAYS",
|
|
14
|
+
LATEST_PULLED_N = "LATEST_PULLED_N",
|
|
15
|
+
LATEST_PUSHED_K = "LATEST_PUSHED_K",
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export enum RetentionRuleTriggerKind {
|
|
19
|
+
RETENTION_RULE_TRIGGER_KIND_UNSPECIFIED = "RETENTION_RULE_TRIGGER_KIND_UNSPECIFIED",
|
|
20
|
+
MANUAL = "MANUAL",
|
|
21
|
+
SCHEDULED = "SCHEDULED",
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export enum RetentionDecoration {
|
|
25
|
+
RETENTION_DECORATION_UNSPECIFIED = "RETENTION_DECORATION_UNSPECIFIED",
|
|
26
|
+
REPO_MATCHES = "REPO_MATCHES",
|
|
27
|
+
REPO_EXCLUDES = "REPO_EXCLUDES",
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export enum RetentionExecutionStatus {
|
|
31
|
+
RETENTION_EXECUTION_STATUS_UNSPECIFIED = "RETENTION_EXECUTION_STATUS_UNSPECIFIED",
|
|
32
|
+
RETENTION_EXECUTION_STATUS_RUNNING = "RETENTION_EXECUTION_STATUS_RUNNING",
|
|
33
|
+
RETENTION_EXECUTION_STATUS_STOPPED = "RETENTION_EXECUTION_STATUS_STOPPED",
|
|
34
|
+
RETENTION_EXECUTION_STATUS_SUCCEED = "RETENTION_EXECUTION_STATUS_SUCCEED",
|
|
35
|
+
RETENTION_EXECUTION_STATUS_ERROR = "RETENTION_EXECUTION_STATUS_ERROR",
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export enum RetentionExecutionTrigger {
|
|
39
|
+
RETENTION_EXECUTION_TRIGGER_MANUAL = "RETENTION_EXECUTION_TRIGGER_MANUAL",
|
|
40
|
+
RETENTION_EXECUTION_TRIGGER_SCHEDULED = "RETENTION_EXECUTION_TRIGGER_SCHEDULED",
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export type RetentionPolicy = {
|
|
44
|
+
algorithm?: string
|
|
45
|
+
id?: string
|
|
46
|
+
rules?: RetentionRule[]
|
|
47
|
+
scope?: RetentionPolicyScope
|
|
48
|
+
trigger?: RetentionRuleTrigger
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export type RetentionRule = {
|
|
52
|
+
action?: string
|
|
53
|
+
disabled?: boolean
|
|
54
|
+
params?: {[key: string]: string}
|
|
55
|
+
scopeSelectors?: RetentionSelector[]
|
|
56
|
+
template?: RetentionRuleTemplate
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export type RetentionPolicyScope = {
|
|
60
|
+
level?: string
|
|
61
|
+
ref?: string
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export type RetentionRuleTrigger = {
|
|
65
|
+
kind?: RetentionRuleTriggerKind
|
|
66
|
+
settings?: RetentionRuleTriggerSettings
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export type RetentionRuleTriggerSettings = {
|
|
70
|
+
cron?: string
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export type RetentionSelector = {
|
|
74
|
+
decoration?: RetentionDecoration
|
|
75
|
+
extras?: string
|
|
76
|
+
kind?: string
|
|
77
|
+
pattern?: string
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export type GetRetentionRequest = {
|
|
81
|
+
registry?: string
|
|
82
|
+
retentionId?: string
|
|
83
|
+
workspace?: string
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export type UpdateRetentionRequest = {
|
|
87
|
+
registry?: string
|
|
88
|
+
retention?: RetentionPolicy
|
|
89
|
+
workspace?: string
|
|
90
|
+
retentionId?: string
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export type RetentionExecution = {
|
|
94
|
+
dryRun?: boolean
|
|
95
|
+
endTime?: string
|
|
96
|
+
id?: string
|
|
97
|
+
policyId?: string
|
|
98
|
+
startTime?: string
|
|
99
|
+
status?: RetentionExecutionStatus
|
|
100
|
+
trigger?: RetentionExecutionTrigger
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export type ListRetentionExecutionsRequest = {
|
|
104
|
+
registry?: string
|
|
105
|
+
retentionId?: string
|
|
106
|
+
workspace?: string
|
|
107
|
+
page?: number
|
|
108
|
+
pageSize?: number
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export type ListRetentionExecutionsResponse = {
|
|
112
|
+
items?: RetentionExecution[]
|
|
113
|
+
pagination?: KangarooIoApiTypesPage.Page
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export type CreateRetentionExecutionRequest = {
|
|
117
|
+
registry?: string
|
|
118
|
+
retentionId?: string
|
|
119
|
+
workspace?: string
|
|
120
|
+
dryRun?: boolean
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export type StopRetentionExecutionRequest = {
|
|
124
|
+
registry?: string
|
|
125
|
+
retentionId?: string
|
|
126
|
+
workspace?: string
|
|
127
|
+
executionId?: string
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export type CreateRetentionRuleRequest = {
|
|
131
|
+
registry?: string
|
|
132
|
+
retentionId?: string
|
|
133
|
+
workspace?: string
|
|
134
|
+
rule?: RetentionRule
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export type CreateRetentionRuleResponse = {
|
|
138
|
+
rule?: RetentionRule[]
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export type DeleteRetentionRuleRequest = {
|
|
142
|
+
registry?: string
|
|
143
|
+
retentionId?: string
|
|
144
|
+
workspace?: string
|
|
145
|
+
rule?: RetentionRule[]
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export type CreateRetentionRequest = {
|
|
149
|
+
registry?: string
|
|
150
|
+
retention?: RetentionPolicy
|
|
151
|
+
workspace?: string
|
|
152
|
+
}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
import * as fm from "../../../../fetch.pb"
|
|
8
8
|
import * as GoogleProtobufEmpty from "../../../../google/protobuf/empty.pb"
|
|
9
9
|
import * as KangarooIoApiImageV1alpha1Image from "./image.pb"
|
|
10
|
+
import * as KangarooIoApiImageV1alpha1Retention from "./retention.pb"
|
|
10
11
|
export class Image {
|
|
11
12
|
static ListRegistry(req: KangarooIoApiImageV1alpha1Image.ListRegistryRequest, initReq?: fm.InitReq): Promise<KangarooIoApiImageV1alpha1Image.ListRegistryResponse> {
|
|
12
13
|
return fm.fetchReq<KangarooIoApiImageV1alpha1Image.ListRegistryRequest, KangarooIoApiImageV1alpha1Image.ListRegistryResponse>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspace"]}/registries/summary?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
|
|
@@ -14,9 +15,18 @@ export class Image {
|
|
|
14
15
|
static ListProject(req: KangarooIoApiImageV1alpha1Image.ListProjectRequest, initReq?: fm.InitReq): Promise<KangarooIoApiImageV1alpha1Image.ListProjectResponse> {
|
|
15
16
|
return fm.fetchReq<KangarooIoApiImageV1alpha1Image.ListProjectRequest, KangarooIoApiImageV1alpha1Image.ListProjectResponse>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspace"]}/registries/${req["registry"]}/projects?${fm.renderURLSearchParams(req, ["workspace", "registry"])}`, {...initReq, method: "GET"})
|
|
16
17
|
}
|
|
18
|
+
static GetProject(req: KangarooIoApiImageV1alpha1Image.GetProjectRequest, initReq?: fm.InitReq): Promise<KangarooIoApiImageV1alpha1Image.ListProjectResponseItem> {
|
|
19
|
+
return fm.fetchReq<KangarooIoApiImageV1alpha1Image.GetProjectRequest, KangarooIoApiImageV1alpha1Image.ListProjectResponseItem>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspace"]}/registries/${req["registry"]}/projects/${req["project"]}?${fm.renderURLSearchParams(req, ["workspace", "registry", "project"])}`, {...initReq, method: "GET"})
|
|
20
|
+
}
|
|
17
21
|
static ListRepositories(req: KangarooIoApiImageV1alpha1Image.ListRepositoriesRequest, initReq?: fm.InitReq): Promise<KangarooIoApiImageV1alpha1Image.ListRepositoriesResponse> {
|
|
18
22
|
return fm.fetchReq<KangarooIoApiImageV1alpha1Image.ListRepositoriesRequest, KangarooIoApiImageV1alpha1Image.ListRepositoriesResponse>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspace"]}/registries/${req["registry"]}/projects/${req["project"]}/repositories?${fm.renderURLSearchParams(req, ["workspace", "registry", "project"])}`, {...initReq, method: "GET"})
|
|
19
23
|
}
|
|
24
|
+
static UpdateRepositoryDescription(req: KangarooIoApiImageV1alpha1Image.UpdateRepositoryDescriptionRequest, initReq?: fm.InitReq): Promise<KangarooIoApiImageV1alpha1Image.UpdateRepositoryDescriptionResponse> {
|
|
25
|
+
return fm.fetchReq<KangarooIoApiImageV1alpha1Image.UpdateRepositoryDescriptionRequest, KangarooIoApiImageV1alpha1Image.UpdateRepositoryDescriptionResponse>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspace"]}/registries/${req["registry"]}/projects/${req["project"]}/repositories/${req["repository"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
26
|
+
}
|
|
27
|
+
static GetRepository(req: KangarooIoApiImageV1alpha1Image.GetRepositoryRequest, initReq?: fm.InitReq): Promise<KangarooIoApiImageV1alpha1Image.Repository> {
|
|
28
|
+
return fm.fetchReq<KangarooIoApiImageV1alpha1Image.GetRepositoryRequest, KangarooIoApiImageV1alpha1Image.Repository>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspace"]}/registries/${req["registry"]}/projects/${req["project"]}/repositories/${req["repository"]}?${fm.renderURLSearchParams(req, ["workspace", "registry", "project", "repository"])}`, {...initReq, method: "GET"})
|
|
29
|
+
}
|
|
20
30
|
static ListArtifacts(req: KangarooIoApiImageV1alpha1Image.ListArtifactsRequest, initReq?: fm.InitReq): Promise<KangarooIoApiImageV1alpha1Image.ListArtifactsResponse> {
|
|
21
31
|
return fm.fetchReq<KangarooIoApiImageV1alpha1Image.ListArtifactsRequest, KangarooIoApiImageV1alpha1Image.ListArtifactsResponse>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspace"]}/registries/${req["registry"]}/projects/${req["project"]}/repositories/${req["repository"]}/artifacts?${fm.renderURLSearchParams(req, ["workspace", "registry", "project", "repository"])}`, {...initReq, method: "GET"})
|
|
22
32
|
}
|
|
@@ -42,7 +52,7 @@ export class Image {
|
|
|
42
52
|
return fm.fetchReq<KangarooIoApiImageV1alpha1Image.GetScanReportRequest, KangarooIoApiImageV1alpha1Image.GetScanReportResponse>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspace"]}/registries/${req["registry"]}/projects/${req["project"]}/repositories/${req["repository"]}/artifacts/${req["digest"]}/scan/${req["report"]}?${fm.renderURLSearchParams(req, ["workspace", "registry", "project", "repository", "digest", "report"])}`, {...initReq, method: "GET"})
|
|
43
53
|
}
|
|
44
54
|
static GetPushCommand(req: KangarooIoApiImageV1alpha1Image.GetPushCommandRequest, initReq?: fm.InitReq): Promise<KangarooIoApiImageV1alpha1Image.GetPushCommandResponse> {
|
|
45
|
-
return fm.fetchReq<KangarooIoApiImageV1alpha1Image.GetPushCommandRequest, KangarooIoApiImageV1alpha1Image.GetPushCommandResponse>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspace"]}/registries/${req["registry"]}/
|
|
55
|
+
return fm.fetchReq<KangarooIoApiImageV1alpha1Image.GetPushCommandRequest, KangarooIoApiImageV1alpha1Image.GetPushCommandResponse>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspace"]}/registries/${req["registry"]}/push?${fm.renderURLSearchParams(req, ["workspace", "registry"])}`, {...initReq, method: "GET"})
|
|
46
56
|
}
|
|
47
57
|
static GetScannerOfProject(req: KangarooIoApiImageV1alpha1Image.GetScannerOfProjectRequest, initReq?: fm.InitReq): Promise<KangarooIoApiImageV1alpha1Image.GetScannerOfProjectResponse> {
|
|
48
58
|
return fm.fetchReq<KangarooIoApiImageV1alpha1Image.GetScannerOfProjectRequest, KangarooIoApiImageV1alpha1Image.GetScannerOfProjectResponse>(`/apis/kangaroo.io/v1alpha1/registries/${req["registry"]}/project/${req["project"]}/scanner?${fm.renderURLSearchParams(req, ["registry", "project"])}`, {...initReq, method: "GET"})
|
|
@@ -77,4 +87,24 @@ export class Image {
|
|
|
77
87
|
static APIListArtifacts(req: KangarooIoApiImageV1alpha1Image.APIListArtifactsRequest, initReq?: fm.InitReq): Promise<KangarooIoApiImageV1alpha1Image.APIListArtifactsResponse> {
|
|
78
88
|
return fm.fetchReq<KangarooIoApiImageV1alpha1Image.APIListArtifactsRequest, KangarooIoApiImageV1alpha1Image.APIListArtifactsResponse>(`/apis/kangaroo.io/v1alpha1/select/registries/${req["registry"]}/projects/${req["project"]}/repositories/${req["repository"]}/artifacts?${fm.renderURLSearchParams(req, ["registry", "project", "repository"])}`, {...initReq, method: "GET"})
|
|
79
89
|
}
|
|
90
|
+
}
|
|
91
|
+
export class Retention {
|
|
92
|
+
static GetRetention(req: KangarooIoApiImageV1alpha1Retention.GetRetentionRequest, initReq?: fm.InitReq): Promise<KangarooIoApiImageV1alpha1Retention.RetentionPolicy> {
|
|
93
|
+
return fm.fetchReq<KangarooIoApiImageV1alpha1Retention.GetRetentionRequest, KangarooIoApiImageV1alpha1Retention.RetentionPolicy>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspace"]}/registries/${req["registry"]}/retention/${req["retentionId"]}?${fm.renderURLSearchParams(req, ["workspace", "registry", "retentionId"])}`, {...initReq, method: "GET"})
|
|
94
|
+
}
|
|
95
|
+
static CreateRetention(req: KangarooIoApiImageV1alpha1Retention.CreateRetentionRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
96
|
+
return fm.fetchReq<KangarooIoApiImageV1alpha1Retention.CreateRetentionRequest, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspace"]}/registries/${req["registry"]}/retention`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
97
|
+
}
|
|
98
|
+
static UpdateRetention(req: KangarooIoApiImageV1alpha1Retention.UpdateRetentionRequest, initReq?: fm.InitReq): Promise<KangarooIoApiImageV1alpha1Retention.RetentionPolicy> {
|
|
99
|
+
return fm.fetchReq<KangarooIoApiImageV1alpha1Retention.UpdateRetentionRequest, KangarooIoApiImageV1alpha1Retention.RetentionPolicy>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspace"]}/registries/${req["registry"]}/retention/${req["retentionId"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
100
|
+
}
|
|
101
|
+
static ListRetentionExecutions(req: KangarooIoApiImageV1alpha1Retention.ListRetentionExecutionsRequest, initReq?: fm.InitReq): Promise<KangarooIoApiImageV1alpha1Retention.ListRetentionExecutionsResponse> {
|
|
102
|
+
return fm.fetchReq<KangarooIoApiImageV1alpha1Retention.ListRetentionExecutionsRequest, KangarooIoApiImageV1alpha1Retention.ListRetentionExecutionsResponse>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspace"]}/registries/${req["registry"]}/retention/${req["retentionId"]}/executions?${fm.renderURLSearchParams(req, ["workspace", "registry", "retentionId"])}`, {...initReq, method: "GET"})
|
|
103
|
+
}
|
|
104
|
+
static CreateRetentionExecution(req: KangarooIoApiImageV1alpha1Retention.CreateRetentionExecutionRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
105
|
+
return fm.fetchReq<KangarooIoApiImageV1alpha1Retention.CreateRetentionExecutionRequest, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspace"]}/registries/${req["registry"]}/retention/${req["retentionId"]}/executions`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
106
|
+
}
|
|
107
|
+
static StopRetentionExecution(req: KangarooIoApiImageV1alpha1Retention.StopRetentionExecutionRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
108
|
+
return fm.fetchReq<KangarooIoApiImageV1alpha1Retention.StopRetentionExecutionRequest, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspace"]}/registries/${req["registry"]}/retention/${req["retentionId"]}/executions/${req["executionId"]}`, {...initReq, method: "PUT"})
|
|
109
|
+
}
|
|
80
110
|
}
|
|
@@ -19,6 +19,12 @@ export enum IntegratedType {
|
|
|
19
19
|
Manual = "Manual",
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
export enum RegistryTarGetClusterStatus {
|
|
23
|
+
TARGET_CLUSTER_STATUS_UNSPECIFIED = "TARGET_CLUSTER_STATUS_UNSPECIFIED",
|
|
24
|
+
TARGET_CLUSTER_STATUS_NOT_FOUND = "TARGET_CLUSTER_STATUS_NOT_FOUND",
|
|
25
|
+
TARGET_CLUSTER_STATUS_NORMAL = "TARGET_CLUSTER_STATUS_NORMAL",
|
|
26
|
+
}
|
|
27
|
+
|
|
22
28
|
export enum RegistryStatusClusterStatus {
|
|
23
29
|
CLUSTER_STATUS_UNSPECIFIED = "CLUSTER_STATUS_UNSPECIFIED",
|
|
24
30
|
HEALTHY = "HEALTHY",
|
|
@@ -33,6 +39,8 @@ export type Registry = {
|
|
|
33
39
|
integratedType?: IntegratedType
|
|
34
40
|
status?: RegistryStatus
|
|
35
41
|
createAt?: string
|
|
42
|
+
isExist?: boolean
|
|
43
|
+
clusterStatus?: RegistryTarGetClusterStatus
|
|
36
44
|
}
|
|
37
45
|
|
|
38
46
|
export type RegistryStatus = {
|
|
@@ -63,6 +71,7 @@ export type ListRegistryRequest = {
|
|
|
63
71
|
page?: number
|
|
64
72
|
pageSize?: number
|
|
65
73
|
fuzzyName?: string
|
|
74
|
+
intergratedType?: IntegratedType
|
|
66
75
|
}
|
|
67
76
|
|
|
68
77
|
export type ListRegistryResponse = {
|
|
@@ -70,6 +79,18 @@ export type ListRegistryResponse = {
|
|
|
70
79
|
pagination?: KangarooIoApiTypesPage.Page
|
|
71
80
|
}
|
|
72
81
|
|
|
82
|
+
export type ListFilterRegistryRequest = {
|
|
83
|
+
page?: number
|
|
84
|
+
pageSize?: number
|
|
85
|
+
registry?: string
|
|
86
|
+
fuzzyName?: string
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export type ListFilterRegistryResponse = {
|
|
90
|
+
items?: Registry[]
|
|
91
|
+
pagination?: KangarooIoApiTypesPage.Page
|
|
92
|
+
}
|
|
93
|
+
|
|
73
94
|
export type RegistryAdminCredential = {
|
|
74
95
|
username?: string
|
|
75
96
|
password?: string
|
|
@@ -155,4 +176,14 @@ export type GetRegistryTypeRequest = {
|
|
|
155
176
|
export type GetRegistryTypeResponse = {
|
|
156
177
|
registry?: string
|
|
157
178
|
type?: RegistryType
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export type RegistryRobotInfoRequest = {
|
|
182
|
+
registry?: string
|
|
183
|
+
workspace?: string
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
export type RegistryRobotInfoResponse = {
|
|
187
|
+
username?: string
|
|
188
|
+
password?: string
|
|
158
189
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import * as KangarooIoApiTypesPage from "../../types/page.pb"
|
|
8
8
|
|
|
9
|
-
export enum
|
|
9
|
+
export enum NativeRegistryType {
|
|
10
10
|
NATIVE_REGISTRY_UNSPECIFIED = "NATIVE_REGISTRY_UNSPECIFIED",
|
|
11
11
|
NATIVE_REGISTRY_DOCKER_REGISTRY = "NATIVE_REGISTRY_DOCKER_REGISTRY",
|
|
12
12
|
NATIVE_REGISTRY_HARBOR = "NATIVE_REGISTRY_HARBOR",
|
|
@@ -45,6 +45,12 @@ export enum FilterFilterType {
|
|
|
45
45
|
TAG = "TAG",
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
+
export enum FilterDecoration {
|
|
49
|
+
DECORATION_UNSPECIFIED = "DECORATION_UNSPECIFIED",
|
|
50
|
+
DECORATION_MATCHES = "DECORATION_MATCHES",
|
|
51
|
+
DECORATION_EXCLUDES = "DECORATION_EXCLUDES",
|
|
52
|
+
}
|
|
53
|
+
|
|
48
54
|
export enum ExecutionStatus {
|
|
49
55
|
STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
|
|
50
56
|
STATUS_STOPPED = "STATUS_STOPPED",
|
|
@@ -77,13 +83,14 @@ export type ListNativeRegistryRequest = {
|
|
|
77
83
|
|
|
78
84
|
export type NativeRegistry = {
|
|
79
85
|
id?: string
|
|
80
|
-
type?:
|
|
86
|
+
type?: NativeRegistryType
|
|
81
87
|
name?: string
|
|
82
88
|
url?: string
|
|
83
89
|
nativeRegistryCredential?: NativeRegistryCredential
|
|
84
90
|
insecure?: boolean
|
|
85
91
|
description?: string
|
|
86
92
|
status?: NativeRegistryregistry_status
|
|
93
|
+
creationTime?: string
|
|
87
94
|
}
|
|
88
95
|
|
|
89
96
|
export type NativeRegistryCredential = {
|
|
@@ -98,7 +105,7 @@ export type ListNativeRegistryResponse = {
|
|
|
98
105
|
}
|
|
99
106
|
|
|
100
107
|
export type NativeRegistrySpec = {
|
|
101
|
-
type?:
|
|
108
|
+
type?: NativeRegistryType
|
|
102
109
|
name?: string
|
|
103
110
|
url?: string
|
|
104
111
|
nativeRegistryCredential?: NativeRegistryCredential
|
|
@@ -125,7 +132,7 @@ export type DeleteNativeRegistryRequest = {
|
|
|
125
132
|
}
|
|
126
133
|
|
|
127
134
|
export type Policy = {
|
|
128
|
-
|
|
135
|
+
destRegistry?: NativeRegistry
|
|
129
136
|
srcRegistry?: NativeRegistry
|
|
130
137
|
enabled?: boolean
|
|
131
138
|
creationTime?: string
|
|
@@ -135,6 +142,7 @@ export type Policy = {
|
|
|
135
142
|
override?: boolean
|
|
136
143
|
name?: string
|
|
137
144
|
description?: string
|
|
145
|
+
destNamespace?: string
|
|
138
146
|
filters?: Filter[]
|
|
139
147
|
trigger?: Trigger
|
|
140
148
|
}
|
|
@@ -147,6 +155,7 @@ export type Trigger = {
|
|
|
147
155
|
export type Filter = {
|
|
148
156
|
type?: FilterFilterType
|
|
149
157
|
value?: string
|
|
158
|
+
decoration?: FilterDecoration
|
|
150
159
|
}
|
|
151
160
|
|
|
152
161
|
export type ListPoliciesRequest = {
|
|
@@ -196,6 +205,8 @@ export type ListExecutionsRequest = {
|
|
|
196
205
|
page?: number
|
|
197
206
|
pageSize?: number
|
|
198
207
|
policyId?: string
|
|
208
|
+
status?: string
|
|
209
|
+
trigger?: string
|
|
199
210
|
}
|
|
200
211
|
|
|
201
212
|
export type ListExecutionsResponse = {
|
|
@@ -209,11 +220,12 @@ export type CreatePolicyRequest = {
|
|
|
209
220
|
description?: string
|
|
210
221
|
trigger?: Trigger
|
|
211
222
|
filters?: Filter[]
|
|
212
|
-
|
|
213
|
-
|
|
223
|
+
srcRegistryId?: string
|
|
224
|
+
destRegistryId?: string
|
|
214
225
|
enabled?: boolean
|
|
215
226
|
override?: boolean
|
|
216
227
|
destNamespace?: string
|
|
228
|
+
speed?: number
|
|
217
229
|
}
|
|
218
230
|
|
|
219
231
|
export type UpdatePolicyRequest = {
|
|
@@ -224,10 +236,11 @@ export type UpdatePolicyRequest = {
|
|
|
224
236
|
trigger?: Trigger
|
|
225
237
|
filters?: Filter[]
|
|
226
238
|
srcRegistry?: NativeRegistry
|
|
227
|
-
|
|
239
|
+
destRegistry?: NativeRegistry
|
|
228
240
|
enabled?: boolean
|
|
229
241
|
override?: boolean
|
|
230
242
|
destNamespace?: string
|
|
243
|
+
speed?: number
|
|
231
244
|
}
|
|
232
245
|
|
|
233
246
|
export type GetExecutionRequest = {
|
|
@@ -250,7 +263,7 @@ export type ListReplicationTasksResponse = {
|
|
|
250
263
|
}
|
|
251
264
|
|
|
252
265
|
export type ReplicationTask = {
|
|
253
|
-
|
|
266
|
+
destResource?: string
|
|
254
267
|
endTime?: string
|
|
255
268
|
executionId?: string
|
|
256
269
|
id?: string
|
|
@@ -48,6 +48,12 @@ export class Registries {
|
|
|
48
48
|
static GetStorageStatistic(req: KangarooIoApiRegistryV1alpha1Registry.GetStorageStatisticRequest, initReq?: fm.InitReq): Promise<KangarooIoApiRegistryV1alpha1Registry.GetStorageStatisticResponse> {
|
|
49
49
|
return fm.fetchReq<KangarooIoApiRegistryV1alpha1Registry.GetStorageStatisticRequest, KangarooIoApiRegistryV1alpha1Registry.GetStorageStatisticResponse>(`/apis/kangaroo.io/v1alpha1/registries/${req["registry"]}/storage_statistic?${fm.renderURLSearchParams(req, ["registry"])}`, {...initReq, method: "GET"})
|
|
50
50
|
}
|
|
51
|
+
static ListFilterRegistry(req: KangarooIoApiRegistryV1alpha1Registry.ListFilterRegistryRequest, initReq?: fm.InitReq): Promise<KangarooIoApiRegistryV1alpha1Registry.ListFilterRegistryResponse> {
|
|
52
|
+
return fm.fetchReq<KangarooIoApiRegistryV1alpha1Registry.ListFilterRegistryRequest, KangarooIoApiRegistryV1alpha1Registry.ListFilterRegistryResponse>(`/apis/kangaroo.io/v1alpha1/filter_registries/${req["registry"]}/registries?${fm.renderURLSearchParams(req, ["registry"])}`, {...initReq, method: "GET"})
|
|
53
|
+
}
|
|
54
|
+
static GetRegistryRobotInfo(req: KangarooIoApiRegistryV1alpha1Registry.RegistryRobotInfoRequest, initReq?: fm.InitReq): Promise<KangarooIoApiRegistryV1alpha1Registry.RegistryRobotInfoResponse> {
|
|
55
|
+
return fm.fetchReq<KangarooIoApiRegistryV1alpha1Registry.RegistryRobotInfoRequest, KangarooIoApiRegistryV1alpha1Registry.RegistryRobotInfoResponse>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspace"]}/registries/${req["registry"]}/robot_info?${fm.renderURLSearchParams(req, ["workspace", "registry"])}`, {...initReq, method: "GET"})
|
|
56
|
+
}
|
|
51
57
|
}
|
|
52
58
|
export class Replications {
|
|
53
59
|
static ListNativeRegistry(req: KangarooIoApiRegistryV1alpha1Replication.ListNativeRegistryRequest, initReq?: fm.InitReq): Promise<KangarooIoApiRegistryV1alpha1Replication.ListNativeRegistryResponse> {
|
|
@@ -69,7 +75,7 @@ export class Replications {
|
|
|
69
75
|
return fm.fetchReq<KangarooIoApiRegistryV1alpha1Replication.DeletePolicyRequest, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/registries/${req["registry"]}/policies/${req["policyId"]}`, {...initReq, method: "DELETE"})
|
|
70
76
|
}
|
|
71
77
|
static CreateExecution(req: KangarooIoApiRegistryV1alpha1Replication.CreateExecutionRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
72
|
-
return fm.fetchReq<KangarooIoApiRegistryV1alpha1Replication.CreateExecutionRequest, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/registries/${req["registry"]}/executions`, {...initReq, method: "POST"})
|
|
78
|
+
return fm.fetchReq<KangarooIoApiRegistryV1alpha1Replication.CreateExecutionRequest, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/registries/${req["registry"]}/executions`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
73
79
|
}
|
|
74
80
|
static StopExecution(req: KangarooIoApiRegistryV1alpha1Replication.StopExecutionRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
75
81
|
return fm.fetchReq<KangarooIoApiRegistryV1alpha1Replication.StopExecutionRequest, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/registries/${req["registry"]}/executions/${req["executionId"]}`, {...initReq, method: "PUT"})
|
|
@@ -0,0 +1,17 @@
|
|
|
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 fm from "../../../../fetch.pb"
|
|
8
|
+
import * as GoogleProtobufEmpty from "../../../../google/protobuf/empty.pb"
|
|
9
|
+
import * as KangarooIoApiUploadV1alpha1Upload from "./upload.pb"
|
|
10
|
+
export class Uploader {
|
|
11
|
+
static UploadOCI(req: KangarooIoApiUploadV1alpha1Upload.UploadOCIRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
12
|
+
return fm.fetchReq<KangarooIoApiUploadV1alpha1Upload.UploadOCIRequest, GoogleProtobufEmpty.Empty>(`/apis/upload.kangaroo.io/v1alpha1/registries/${req["registry"]}/upload`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
13
|
+
}
|
|
14
|
+
static DownloadOCI(req: KangarooIoApiUploadV1alpha1Upload.DownloadOCIRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
15
|
+
return fm.fetchReq<KangarooIoApiUploadV1alpha1Upload.DownloadOCIRequest, GoogleProtobufEmpty.Empty>(`/apis/upload.kangaroo.io/v1alpha1/registries/${req["registry"]}/download?${fm.renderURLSearchParams(req, ["registry"])}`, {...initReq, method: "GET"})
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
export type UploadOCIRequest = {
|
|
7
|
+
registry?: string
|
|
8
|
+
imageUrl?: string
|
|
9
|
+
file?: Uint8Array
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export type DownloadOCIRequest = {
|
|
13
|
+
registry?: string
|
|
14
|
+
imageUrl?: string
|
|
15
|
+
}
|