@daocloud-proto/virtnest 0.2.0-dev6 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/v1alpha1/image.pb.ts +122 -0
- package/v1alpha1/registry.pb.ts +18 -0
package/package.json
CHANGED
|
@@ -0,0 +1,122 @@
|
|
|
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
|
+
|
|
9
|
+
export enum RegistryType {
|
|
10
|
+
RegistryType_UNSPECIFIED = "RegistryType_UNSPECIFIED",
|
|
11
|
+
DOCKER_REGISTRY = "DOCKER_REGISTRY",
|
|
12
|
+
HARBOR = "HARBOR",
|
|
13
|
+
JFROG = "JFROG",
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type Pagination = {
|
|
17
|
+
page?: number
|
|
18
|
+
pageSize?: number
|
|
19
|
+
total?: number
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export type ListRegistriesRequest = {
|
|
23
|
+
cluster?: string
|
|
24
|
+
namespace?: string
|
|
25
|
+
global?: boolean
|
|
26
|
+
page?: number
|
|
27
|
+
pageSize?: number
|
|
28
|
+
public?: boolean
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export type ListRegistriesResponse = {
|
|
32
|
+
items?: Registry[]
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export type Registry = {
|
|
36
|
+
alias?: string
|
|
37
|
+
host?: string
|
|
38
|
+
name?: string
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export type ListProjectsRequest = {
|
|
42
|
+
cluster?: string
|
|
43
|
+
namespace?: string
|
|
44
|
+
registry?: string
|
|
45
|
+
public?: boolean
|
|
46
|
+
page?: number
|
|
47
|
+
pageSize?: number
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export type ListProjectsResponse = {
|
|
51
|
+
items?: string[]
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export type ListRepositoriesRequest = {
|
|
55
|
+
cluster?: string
|
|
56
|
+
namespace?: string
|
|
57
|
+
registry?: string
|
|
58
|
+
project?: string
|
|
59
|
+
fuzzyName?: string
|
|
60
|
+
page?: number
|
|
61
|
+
pageSize?: number
|
|
62
|
+
public?: boolean
|
|
63
|
+
showArtifacts?: boolean
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export type ListRepositoriesResponse = {
|
|
67
|
+
items?: Repository[]
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export type Repository = {
|
|
71
|
+
name?: string
|
|
72
|
+
artifacts?: Artifact[]
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export type ListArtifactsRequest = {
|
|
76
|
+
cluster?: string
|
|
77
|
+
namespace?: string
|
|
78
|
+
registry?: string
|
|
79
|
+
project?: string
|
|
80
|
+
repository?: string
|
|
81
|
+
page?: number
|
|
82
|
+
pageSize?: number
|
|
83
|
+
public?: boolean
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export type ListArtifactsResponse = {
|
|
87
|
+
items?: Artifact[]
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export type Artifact = {
|
|
91
|
+
digest?: string
|
|
92
|
+
tags?: Tag[]
|
|
93
|
+
imageSize?: string
|
|
94
|
+
pushTime?: string
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export type Tag = {
|
|
98
|
+
name?: string
|
|
99
|
+
pushTime?: string
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export type DetectKangarooRequest = {
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export type DetectKangarooResponse = {
|
|
106
|
+
enabled?: boolean
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export class Image {
|
|
110
|
+
static ListRegistries(req: ListRegistriesRequest, initReq?: fm.InitReq): Promise<ListRegistriesResponse> {
|
|
111
|
+
return fm.fetchReq<ListRegistriesRequest, ListRegistriesResponse>(`/apis/virtnest.io/v1alpha1/registries?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
112
|
+
}
|
|
113
|
+
static ListProjects(req: ListProjectsRequest, initReq?: fm.InitReq): Promise<ListProjectsResponse> {
|
|
114
|
+
return fm.fetchReq<ListProjectsRequest, ListProjectsResponse>(`/apis/virtnest.io/v1alpha1/projects?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
115
|
+
}
|
|
116
|
+
static ListRepositories(req: ListRepositoriesRequest, initReq?: fm.InitReq): Promise<ListRepositoriesResponse> {
|
|
117
|
+
return fm.fetchReq<ListRepositoriesRequest, ListRepositoriesResponse>(`/apis/virtnest.io/v1alpha1/repositories?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
118
|
+
}
|
|
119
|
+
static ListArtifacts(req: ListArtifactsRequest, initReq?: fm.InitReq): Promise<ListArtifactsResponse> {
|
|
120
|
+
return fm.fetchReq<ListArtifactsRequest, ListArtifactsResponse>(`/apis/virtnest.io/v1alpha1/artifacts?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
121
|
+
}
|
|
122
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
export type GetRegistriesRequest = {
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export type GetRegistriesResponse = {
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export class Registry {
|
|
15
|
+
static GetRegistries(req: GetRegistriesRequest, initReq?: fm.InitReq): Promise<GetRegistriesResponse> {
|
|
16
|
+
return fm.fetchReq<GetRegistriesRequest, GetRegistriesResponse>(`/apis/virtnest.io/v1alpha1/registries?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
17
|
+
}
|
|
18
|
+
}
|