@daocloud-proto/kangaroo 0.2.1-31 → 0.2.1-35
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.
|
@@ -32,6 +32,7 @@ export type ListProjectRequest = {
|
|
|
32
32
|
registry?: string
|
|
33
33
|
page?: number
|
|
34
34
|
pageSize?: number
|
|
35
|
+
public?: string
|
|
35
36
|
}
|
|
36
37
|
|
|
37
38
|
export type ListProjectResponse = {
|
|
@@ -92,7 +93,7 @@ export type VulnerabilitySummary = {
|
|
|
92
93
|
|
|
93
94
|
export type Artifacts = {
|
|
94
95
|
digest?: string
|
|
95
|
-
tags?:
|
|
96
|
+
tags?: Tag[]
|
|
96
97
|
scanOverview?: ScanOverview
|
|
97
98
|
imageSize?: string
|
|
98
99
|
pushTime?: string
|
|
@@ -135,7 +136,7 @@ export type ExtraAttrs = {
|
|
|
135
136
|
imageSize?: string
|
|
136
137
|
createdTime?: string
|
|
137
138
|
pushTime?: string
|
|
138
|
-
tags?:
|
|
139
|
+
tags?: Tag[]
|
|
139
140
|
repoName?: string
|
|
140
141
|
}
|
|
141
142
|
|
|
@@ -213,4 +214,9 @@ export type StatisticResponse = {
|
|
|
213
214
|
totalProjectCount?: string
|
|
214
215
|
totalRepoCount?: string
|
|
215
216
|
totalStorageConsumption?: string
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
export type Tag = {
|
|
220
|
+
name?: string
|
|
221
|
+
pushTime?: string
|
|
216
222
|
}
|
|
@@ -7,16 +7,22 @@
|
|
|
7
7
|
import * as KangarooIoApiTypesPage from "../../types/page.pb"
|
|
8
8
|
|
|
9
9
|
export enum RegistryType {
|
|
10
|
-
|
|
10
|
+
RegistryType_UNSPECIFIED = "RegistryType_UNSPECIFIED",
|
|
11
11
|
DOCKER_REGISTRY = "DOCKER_REGISTRY",
|
|
12
12
|
HARBOR = "HARBOR",
|
|
13
13
|
JFROG = "JFROG",
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
export enum IntegratedType {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
IntegratedType_UNSPECIFIED = "IntegratedType_UNSPECIFIED",
|
|
18
|
+
Automatic = "Automatic",
|
|
19
|
+
Manual = "Manual",
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export enum RegistryStatusClusterStatus {
|
|
23
|
+
CLUSTER_STATUS_UNSPECIFIED = "CLUSTER_STATUS_UNSPECIFIED",
|
|
24
|
+
HEALTHY = "HEALTHY",
|
|
25
|
+
UNHEALTHY = "UNHEALTHY",
|
|
20
26
|
}
|
|
21
27
|
|
|
22
28
|
export type Registry = {
|
|
@@ -25,11 +31,15 @@ export type Registry = {
|
|
|
25
31
|
url?: string
|
|
26
32
|
credential?: RegistryAdminCredential
|
|
27
33
|
integratedType?: IntegratedType
|
|
28
|
-
|
|
34
|
+
status?: RegistryStatus
|
|
29
35
|
name?: string
|
|
30
36
|
createAt?: string
|
|
31
37
|
}
|
|
32
38
|
|
|
39
|
+
export type RegistryStatus = {
|
|
40
|
+
status?: RegistryStatusClusterStatus
|
|
41
|
+
}
|
|
42
|
+
|
|
33
43
|
export type CreateRegistryRequest = {
|
|
34
44
|
alias?: string
|
|
35
45
|
type?: RegistryType
|
|
@@ -8,34 +8,34 @@ import * as fm from "../../../../fetch.pb"
|
|
|
8
8
|
import * as GoogleProtobufEmpty from "../../../../google/protobuf/empty.pb"
|
|
9
9
|
import * as KangarooIoApiRegistryV1alpha1Registry from "./registry.pb"
|
|
10
10
|
export class Registries {
|
|
11
|
-
static
|
|
11
|
+
static CreateRegistry(req: KangarooIoApiRegistryV1alpha1Registry.CreateRegistryRequest, initReq?: fm.InitReq): Promise<KangarooIoApiRegistryV1alpha1Registry.Registry> {
|
|
12
12
|
return fm.fetchReq<KangarooIoApiRegistryV1alpha1Registry.CreateRegistryRequest, KangarooIoApiRegistryV1alpha1Registry.Registry>(`/apis/kangaroo.io/v1alpha1/registries`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
13
13
|
}
|
|
14
|
-
static
|
|
14
|
+
static DeleteRegistry(req: KangarooIoApiRegistryV1alpha1Registry.DeleteRegistryRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
15
15
|
return fm.fetchReq<KangarooIoApiRegistryV1alpha1Registry.DeleteRegistryRequest, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/registries/${req["registry"]}`, {...initReq, method: "DELETE"})
|
|
16
16
|
}
|
|
17
|
-
static
|
|
17
|
+
static GetRegistry(req: KangarooIoApiRegistryV1alpha1Registry.GetRegistryRequest, initReq?: fm.InitReq): Promise<KangarooIoApiRegistryV1alpha1Registry.Registry> {
|
|
18
18
|
return fm.fetchReq<KangarooIoApiRegistryV1alpha1Registry.GetRegistryRequest, KangarooIoApiRegistryV1alpha1Registry.Registry>(`/apis/kangaroo.io/v1alpha1/registries/${req["registry"]}?${fm.renderURLSearchParams(req, ["registry"])}`, {...initReq, method: "GET"})
|
|
19
19
|
}
|
|
20
|
-
static
|
|
20
|
+
static UpdateRegistry(req: KangarooIoApiRegistryV1alpha1Registry.UpdateRegistryRequest, initReq?: fm.InitReq): Promise<KangarooIoApiRegistryV1alpha1Registry.Registry> {
|
|
21
21
|
return fm.fetchReq<KangarooIoApiRegistryV1alpha1Registry.UpdateRegistryRequest, KangarooIoApiRegistryV1alpha1Registry.Registry>(`/apis/kangaroo.io/v1alpha1/registries/${req["registry"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
22
22
|
}
|
|
23
|
-
static
|
|
23
|
+
static ListRegistry(req: KangarooIoApiRegistryV1alpha1Registry.ListRegistryRequest, initReq?: fm.InitReq): Promise<KangarooIoApiRegistryV1alpha1Registry.ListRegistryResponse> {
|
|
24
24
|
return fm.fetchReq<KangarooIoApiRegistryV1alpha1Registry.ListRegistryRequest, KangarooIoApiRegistryV1alpha1Registry.ListRegistryResponse>(`/apis/kangaroo.io/v1alpha1/registries?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
25
25
|
}
|
|
26
|
-
static
|
|
26
|
+
static CreateWorkspaceRegistry(req: KangarooIoApiRegistryV1alpha1Registry.CreateWorkspaceRegistryRequest, initReq?: fm.InitReq): Promise<KangarooIoApiRegistryV1alpha1Registry.Registry> {
|
|
27
27
|
return fm.fetchReq<KangarooIoApiRegistryV1alpha1Registry.CreateWorkspaceRegistryRequest, KangarooIoApiRegistryV1alpha1Registry.Registry>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspace"]}/registries`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
28
28
|
}
|
|
29
|
-
static
|
|
29
|
+
static DeleteWorkspaceRegistry(req: KangarooIoApiRegistryV1alpha1Registry.DeleteWorkspaceRegistryRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
30
30
|
return fm.fetchReq<KangarooIoApiRegistryV1alpha1Registry.DeleteWorkspaceRegistryRequest, GoogleProtobufEmpty.Empty>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspace"]}/registries/${req["registry"]}`, {...initReq, method: "DELETE"})
|
|
31
31
|
}
|
|
32
|
-
static
|
|
32
|
+
static GetWorkspaceRegistry(req: KangarooIoApiRegistryV1alpha1Registry.GetWorkspaceRegistryRequest, initReq?: fm.InitReq): Promise<KangarooIoApiRegistryV1alpha1Registry.Registry> {
|
|
33
33
|
return fm.fetchReq<KangarooIoApiRegistryV1alpha1Registry.GetWorkspaceRegistryRequest, KangarooIoApiRegistryV1alpha1Registry.Registry>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspace"]}/registries/${req["registry"]}?${fm.renderURLSearchParams(req, ["workspace", "registry"])}`, {...initReq, method: "GET"})
|
|
34
34
|
}
|
|
35
|
-
static
|
|
35
|
+
static UpdateWorkspaceRegistry(req: KangarooIoApiRegistryV1alpha1Registry.UpdateWorkspaceRegistryRequest, initReq?: fm.InitReq): Promise<KangarooIoApiRegistryV1alpha1Registry.Registry> {
|
|
36
36
|
return fm.fetchReq<KangarooIoApiRegistryV1alpha1Registry.UpdateWorkspaceRegistryRequest, KangarooIoApiRegistryV1alpha1Registry.Registry>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspace"]}/registries/${req["registry"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
37
37
|
}
|
|
38
|
-
static
|
|
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
41
|
}
|