@daocloud-proto/kangaroo 0.2.1-2 → 0.2.1-20
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/image/v1alpha1/image.pb.ts +159 -0
- package/kangaroo.io/api/image/v1alpha1/rpc.pb.ts +32 -0
- package/kangaroo.io/api/registryIntegrated/v1alpha1/associatedregistry.pb.ts +50 -0
- package/kangaroo.io/api/registryIntegrated/v1alpha1/registryIntegrated.pb.ts +13 -5
- package/kangaroo.io/api/registryIntegrated/v1alpha1/rpc.pb.ts +18 -0
- package/package.json +1 -1
|
@@ -0,0 +1,159 @@
|
|
|
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 ListArtifactsRequestSortBy {
|
|
10
|
+
SORT_BY_UNSPECIFIED = "SORT_BY_UNSPECIFIED",
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type ListRegistryRequest = {
|
|
14
|
+
workspaceId?: string
|
|
15
|
+
page?: number
|
|
16
|
+
pageSize?: number
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type RegistrySecret = {
|
|
20
|
+
name?: string
|
|
21
|
+
host?: string
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export type ListRegistryResponse = {
|
|
25
|
+
item?: RegistrySecret[]
|
|
26
|
+
pagination?: KangarooIoApiTypesPage.Page
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type ListProjectRequest = {
|
|
30
|
+
workspaceId?: string
|
|
31
|
+
registryName?: string
|
|
32
|
+
page?: number
|
|
33
|
+
pageSize?: number
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export type ListProjectResponse = {
|
|
37
|
+
item?: string[]
|
|
38
|
+
pagination?: KangarooIoApiTypesPage.Page
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export type Repository = {
|
|
42
|
+
name?: string
|
|
43
|
+
public?: boolean
|
|
44
|
+
tagCount?: string
|
|
45
|
+
pullCount?: string
|
|
46
|
+
updateTime?: string
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export type ListRepositoriesRequest = {
|
|
50
|
+
workspaceId?: string
|
|
51
|
+
registryName?: string
|
|
52
|
+
projectName?: string
|
|
53
|
+
page?: number
|
|
54
|
+
pageSize?: number
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type ListRepositoriesResponse = {
|
|
58
|
+
items?: Repository[]
|
|
59
|
+
pagination?: KangarooIoApiTypesPage.Page
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export type ScanOverview = {
|
|
63
|
+
scanStatus?: string
|
|
64
|
+
severity?: string
|
|
65
|
+
duration?: string
|
|
66
|
+
endTime?: string
|
|
67
|
+
startTime?: string
|
|
68
|
+
reportId?: string
|
|
69
|
+
scanner?: Scanner
|
|
70
|
+
summary?: ScanSummary
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export type Scanner = {
|
|
74
|
+
name?: string
|
|
75
|
+
vendor?: string
|
|
76
|
+
version?: string
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export type ScanSummary = {
|
|
80
|
+
fixable?: string
|
|
81
|
+
summary?: VulnerabilitySummary
|
|
82
|
+
total?: string
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export type VulnerabilitySummary = {
|
|
86
|
+
critical?: string
|
|
87
|
+
high?: string
|
|
88
|
+
low?: string
|
|
89
|
+
medium?: string
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export type Artifacts = {
|
|
93
|
+
digest?: string
|
|
94
|
+
tags?: string[]
|
|
95
|
+
scanOverview?: ScanOverview
|
|
96
|
+
imageSize?: string
|
|
97
|
+
pushTime?: string
|
|
98
|
+
pullTime?: string
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export type ListArtifactsRequest = {
|
|
102
|
+
workspaceId?: string
|
|
103
|
+
registryName?: string
|
|
104
|
+
projectName?: string
|
|
105
|
+
repositoriesName?: string
|
|
106
|
+
sortBy?: ListArtifactsRequestSortBy
|
|
107
|
+
orderBy?: KangarooIoApiTypesPage.OrderBy
|
|
108
|
+
page?: number
|
|
109
|
+
pageSize?: number
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export type ListArtifactsResponse = {
|
|
113
|
+
items?: Artifacts[]
|
|
114
|
+
pagination?: KangarooIoApiTypesPage.Page
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export type TagInfoRequest = {
|
|
118
|
+
workspaceId?: string
|
|
119
|
+
registryName?: string
|
|
120
|
+
projectName?: string
|
|
121
|
+
repositoriesName?: string
|
|
122
|
+
digest?: string
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export type TagInfoResponse = {
|
|
126
|
+
extraAttrs?: ExtraAttrs
|
|
127
|
+
buildHistory?: BuildHistory[]
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export type ExtraAttrs = {
|
|
131
|
+
architecture?: string
|
|
132
|
+
author?: string
|
|
133
|
+
digest?: string
|
|
134
|
+
imageSize?: string
|
|
135
|
+
createdTime?: string
|
|
136
|
+
pushTime?: string
|
|
137
|
+
tags?: string[]
|
|
138
|
+
repoName?: string
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export type BuildHistory = {
|
|
142
|
+
created?: string
|
|
143
|
+
createdBy?: string
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export type DeleteRepositoriesRequest = {
|
|
147
|
+
workspaceId?: string
|
|
148
|
+
registryName?: string
|
|
149
|
+
projectName?: string
|
|
150
|
+
name?: string
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export type DeleteArtifactsRequest = {
|
|
154
|
+
workspaceId?: string
|
|
155
|
+
registryName?: string
|
|
156
|
+
projectName?: string
|
|
157
|
+
repositoriesName?: string
|
|
158
|
+
digest?: string
|
|
159
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 KangarooIoApiImageV1alpha1Image from "./image.pb"
|
|
10
|
+
export class Image {
|
|
11
|
+
static ListRegistry(req: KangarooIoApiImageV1alpha1Image.ListRegistryRequest, initReq?: fm.InitReq): Promise<KangarooIoApiImageV1alpha1Image.ListRegistryResponse> {
|
|
12
|
+
return fm.fetchReq<KangarooIoApiImageV1alpha1Image.ListRegistryRequest, KangarooIoApiImageV1alpha1Image.ListRegistryResponse>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspaceId"]}/registry?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
13
|
+
}
|
|
14
|
+
static ListProject(req: KangarooIoApiImageV1alpha1Image.ListProjectRequest, initReq?: fm.InitReq): Promise<KangarooIoApiImageV1alpha1Image.ListProjectResponse> {
|
|
15
|
+
return fm.fetchReq<KangarooIoApiImageV1alpha1Image.ListProjectRequest, KangarooIoApiImageV1alpha1Image.ListProjectResponse>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspaceId"]}/registry/${req["registryName"]}/projects?${fm.renderURLSearchParams(req, ["workspaceId", "registryName"])}`, {...initReq, method: "GET"})
|
|
16
|
+
}
|
|
17
|
+
static ListRepositories(req: KangarooIoApiImageV1alpha1Image.ListRepositoriesRequest, initReq?: fm.InitReq): Promise<KangarooIoApiImageV1alpha1Image.ListRepositoriesResponse> {
|
|
18
|
+
return fm.fetchReq<KangarooIoApiImageV1alpha1Image.ListRepositoriesRequest, KangarooIoApiImageV1alpha1Image.ListRepositoriesResponse>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspaceId"]}/registry/${req["registryName"]}/projects/${req["projectName"]}/repositories?${fm.renderURLSearchParams(req, ["workspaceId", "registryName", "projectName"])}`, {...initReq, method: "GET"})
|
|
19
|
+
}
|
|
20
|
+
static ListArtifacts(req: KangarooIoApiImageV1alpha1Image.ListArtifactsRequest, initReq?: fm.InitReq): Promise<KangarooIoApiImageV1alpha1Image.ListArtifactsResponse> {
|
|
21
|
+
return fm.fetchReq<KangarooIoApiImageV1alpha1Image.ListArtifactsRequest, KangarooIoApiImageV1alpha1Image.ListArtifactsResponse>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspaceId"]}/registry/${req["registryName"]}/projects/${req["projectName"]}/repositories/${req["repositoriesName"]}/artifacts?${fm.renderURLSearchParams(req, ["workspaceId", "registryName", "projectName", "repositoriesName"])}`, {...initReq, method: "GET"})
|
|
22
|
+
}
|
|
23
|
+
static GetArtifactsInfo(req: KangarooIoApiImageV1alpha1Image.TagInfoRequest, initReq?: fm.InitReq): Promise<KangarooIoApiImageV1alpha1Image.TagInfoResponse> {
|
|
24
|
+
return fm.fetchReq<KangarooIoApiImageV1alpha1Image.TagInfoRequest, KangarooIoApiImageV1alpha1Image.TagInfoResponse>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspaceId"]}/registry/${req["registryName"]}/projects/${req["projectName"]}/repositories/${req["repositoriesName"]}/artifacts/${req["digest"]}?${fm.renderURLSearchParams(req, ["workspaceId", "registryName", "projectName", "repositoriesName", "digest"])}`, {...initReq, method: "GET"})
|
|
25
|
+
}
|
|
26
|
+
static DeleteRepositories(req: KangarooIoApiImageV1alpha1Image.DeleteRepositoriesRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
27
|
+
return fm.fetchReq<KangarooIoApiImageV1alpha1Image.DeleteRepositoriesRequest, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspaceId"]}/registry/${req["registryName"]}/projects/${req["projectName"]}/repositories/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
28
|
+
}
|
|
29
|
+
static DeleteArtifacts(req: KangarooIoApiImageV1alpha1Image.DeleteArtifactsRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
30
|
+
return fm.fetchReq<KangarooIoApiImageV1alpha1Image.DeleteArtifactsRequest, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspaceId"]}/registry/${req["registryName"]}/projects/${req["projectName"]}/repositories/${req["repositoriesName"]}/artifacts/${req["digest"]}`, {...initReq, method: "DELETE"})
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
import * as KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated from "./registryIntegrated.pb"
|
|
9
|
+
export type AssociatedRegistry = {
|
|
10
|
+
name?: string
|
|
11
|
+
registryType?: KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated.RegistryType
|
|
12
|
+
registryUrl?: string
|
|
13
|
+
registryAdminCredential?: KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated.RegistryAdminCredential
|
|
14
|
+
createAt?: string
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export type CreateAssociatedRegistryRequest = {
|
|
18
|
+
workspaceId?: string
|
|
19
|
+
name?: string
|
|
20
|
+
registryType?: KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated.RegistryType
|
|
21
|
+
registryUrl?: string
|
|
22
|
+
registryAdminCredential?: KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated.RegistryAdminCredential
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export type UpdateAssociatedRegistryRequest = {
|
|
26
|
+
workspaceId?: string
|
|
27
|
+
name?: string
|
|
28
|
+
registryAdminCredential?: KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated.RegistryAdminCredential
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export type DeleteAssociatedRegistryRequest = {
|
|
32
|
+
workspaceId?: string
|
|
33
|
+
name?: string
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export type GetAssociatedRegistryRequest = {
|
|
37
|
+
workspaceId?: string
|
|
38
|
+
name?: string
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export type ListAssociatedRegistryRequest = {
|
|
42
|
+
workspaceId?: string
|
|
43
|
+
page?: number
|
|
44
|
+
pageSize?: number
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export type ListAssociatedRegistryResponse = {
|
|
48
|
+
items?: AssociatedRegistry[]
|
|
49
|
+
pagination?: KangarooIoApiTypesPage.Page
|
|
50
|
+
}
|
|
@@ -13,16 +13,19 @@ export enum RegistryType {
|
|
|
13
13
|
REGISTRY_TYPE_JFROG = "REGISTRY_TYPE_JFROG",
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
export enum IntegratedType {
|
|
17
|
+
REGISTRY_INTEGRATED_UNSPECIFIED = "REGISTRY_INTEGRATED_UNSPECIFIED",
|
|
18
|
+
REGISTRY_INTEGRATED_TYPE_INTEGRATED = "REGISTRY_INTEGRATED_TYPE_INTEGRATED",
|
|
19
|
+
REGISTRY_INTEGRATED_TYPE_TRUSTEESHIP = "REGISTRY_INTEGRATED_TYPE_TRUSTEESHIP",
|
|
20
|
+
}
|
|
21
|
+
|
|
16
22
|
export type RegistryIntegrated = {
|
|
17
23
|
name?: string
|
|
18
24
|
registryType?: RegistryType
|
|
19
25
|
registryUrl?: string
|
|
20
26
|
registryAdminCredential?: RegistryAdminCredential
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
export type RegistryAdminCredential = {
|
|
24
|
-
username?: string
|
|
25
|
-
password?: string
|
|
27
|
+
integratedType?: IntegratedType
|
|
28
|
+
healthy?: boolean
|
|
26
29
|
}
|
|
27
30
|
|
|
28
31
|
export type CreateRegistryIntegratedRequest = {
|
|
@@ -53,4 +56,9 @@ export type ListRegistryIntegratedRequest = {
|
|
|
53
56
|
export type ListRegistryIntegratedResponse = {
|
|
54
57
|
items?: RegistryIntegrated[]
|
|
55
58
|
pagination?: KangarooIoApiTypesPage.Page
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export type RegistryAdminCredential = {
|
|
62
|
+
username?: string
|
|
63
|
+
password?: string
|
|
56
64
|
}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import * as fm from "../../../../fetch.pb"
|
|
8
8
|
import * as GoogleProtobufEmpty from "../../../../google/protobuf/empty.pb"
|
|
9
|
+
import * as KangarooIoApiRegistryIntegratedV1alpha1Associatedregistry from "./associatedregistry.pb"
|
|
9
10
|
import * as KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated from "./registryIntegrated.pb"
|
|
10
11
|
export class RegistryIntegrateds {
|
|
11
12
|
static CreateRegistryIntegrated(req: KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated.CreateRegistryIntegratedRequest, initReq?: fm.InitReq): Promise<KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated.RegistryIntegrated> {
|
|
@@ -23,4 +24,21 @@ export class RegistryIntegrateds {
|
|
|
23
24
|
static ListRegistryIntegrated(req: KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated.ListRegistryIntegratedRequest, initReq?: fm.InitReq): Promise<KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated.ListRegistryIntegratedResponse> {
|
|
24
25
|
return fm.fetchReq<KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated.ListRegistryIntegratedRequest, KangarooIoApiRegistryIntegratedV1alpha1RegistryIntegrated.ListRegistryIntegratedResponse>(`/apis/kangaroo.io/v1alpha1/registry_integrated?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
25
26
|
}
|
|
27
|
+
}
|
|
28
|
+
export class AssociatedRegistries {
|
|
29
|
+
static CreateAssociatedRegistry(req: KangarooIoApiRegistryIntegratedV1alpha1Associatedregistry.CreateAssociatedRegistryRequest, initReq?: fm.InitReq): Promise<KangarooIoApiRegistryIntegratedV1alpha1Associatedregistry.AssociatedRegistry> {
|
|
30
|
+
return fm.fetchReq<KangarooIoApiRegistryIntegratedV1alpha1Associatedregistry.CreateAssociatedRegistryRequest, KangarooIoApiRegistryIntegratedV1alpha1Associatedregistry.AssociatedRegistry>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspaceId"]}/associated_registry`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
31
|
+
}
|
|
32
|
+
static DeleteAssociatedRegistry(req: KangarooIoApiRegistryIntegratedV1alpha1Associatedregistry.DeleteAssociatedRegistryRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
33
|
+
return fm.fetchReq<KangarooIoApiRegistryIntegratedV1alpha1Associatedregistry.DeleteAssociatedRegistryRequest, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspaceId"]}/associated_registry/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
34
|
+
}
|
|
35
|
+
static GetAssociatedRegistry(req: KangarooIoApiRegistryIntegratedV1alpha1Associatedregistry.GetAssociatedRegistryRequest, initReq?: fm.InitReq): Promise<KangarooIoApiRegistryIntegratedV1alpha1Associatedregistry.AssociatedRegistry> {
|
|
36
|
+
return fm.fetchReq<KangarooIoApiRegistryIntegratedV1alpha1Associatedregistry.GetAssociatedRegistryRequest, KangarooIoApiRegistryIntegratedV1alpha1Associatedregistry.AssociatedRegistry>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspaceId"]}/associated_registry/${req["name"]}?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
|
|
37
|
+
}
|
|
38
|
+
static UpdateAssociatedRegistry(req: KangarooIoApiRegistryIntegratedV1alpha1Associatedregistry.UpdateAssociatedRegistryRequest, initReq?: fm.InitReq): Promise<KangarooIoApiRegistryIntegratedV1alpha1Associatedregistry.AssociatedRegistry> {
|
|
39
|
+
return fm.fetchReq<KangarooIoApiRegistryIntegratedV1alpha1Associatedregistry.UpdateAssociatedRegistryRequest, KangarooIoApiRegistryIntegratedV1alpha1Associatedregistry.AssociatedRegistry>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspaceId"]}/associated_registry/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
40
|
+
}
|
|
41
|
+
static ListAssociatedRegistry(req: KangarooIoApiRegistryIntegratedV1alpha1Associatedregistry.ListAssociatedRegistryRequest, initReq?: fm.InitReq): Promise<KangarooIoApiRegistryIntegratedV1alpha1Associatedregistry.ListAssociatedRegistryResponse> {
|
|
42
|
+
return fm.fetchReq<KangarooIoApiRegistryIntegratedV1alpha1Associatedregistry.ListAssociatedRegistryRequest, KangarooIoApiRegistryIntegratedV1alpha1Associatedregistry.ListAssociatedRegistryResponse>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspaceId"]}/associated_registry?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
43
|
+
}
|
|
26
44
|
}
|