@daocloud-proto/zestu 0.5.0-dev-8b3379b7 → 0.5.0-dev-73af9018
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
CHANGED
|
@@ -237,4 +237,11 @@ export type UpdateContainerInstanceRequest = {
|
|
|
237
237
|
|
|
238
238
|
export type UpdateContainerInstanceResponse = {
|
|
239
239
|
containerInstance?: ContainerInstance
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
export type SaveContainerInstanceRequest = {
|
|
243
|
+
instanceId?: string
|
|
244
|
+
regionId?: string
|
|
245
|
+
repository?: string
|
|
246
|
+
tag?: string
|
|
240
247
|
}
|
|
@@ -0,0 +1,113 @@
|
|
|
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 ZestuIoApiTypesPage from "../../types/page.pb"
|
|
8
|
+
|
|
9
|
+
export enum RegionRegistryStatus {
|
|
10
|
+
unspecified = "unspecified",
|
|
11
|
+
uninitialized = "uninitialized",
|
|
12
|
+
initialized = "initialized",
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export type GetRegistryDetailRequest = {
|
|
16
|
+
regionId?: string
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type GetRegistryDetailResponse = {
|
|
20
|
+
details?: UserRegistryDetail
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export type UserRegistryDetail = {
|
|
24
|
+
address?: string
|
|
25
|
+
status?: RegionRegistryStatus
|
|
26
|
+
quota?: string
|
|
27
|
+
used?: string
|
|
28
|
+
freeSize?: string
|
|
29
|
+
project?: string
|
|
30
|
+
username?: string
|
|
31
|
+
password?: string
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export type InitRegistryRequest = {
|
|
35
|
+
regionId?: string
|
|
36
|
+
username?: string
|
|
37
|
+
password?: string
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export type InitRegistryResponse = {
|
|
41
|
+
details?: UserRegistryDetail
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export type ListRepositoriesRequest = {
|
|
45
|
+
regionId?: string
|
|
46
|
+
fuzzyName?: string
|
|
47
|
+
page?: number
|
|
48
|
+
pageSize?: number
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export type ListRepositoriesResponse = {
|
|
52
|
+
items?: Repository[]
|
|
53
|
+
pagination?: ZestuIoApiTypesPage.Pagination
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export type Repository = {
|
|
57
|
+
name?: string
|
|
58
|
+
tagCount?: string
|
|
59
|
+
pullCount?: string
|
|
60
|
+
updateTimestamp?: string
|
|
61
|
+
description?: string
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export type Artifacts = {
|
|
65
|
+
digest?: string
|
|
66
|
+
tags?: Tag[]
|
|
67
|
+
references?: ArtifactReference[]
|
|
68
|
+
imageSize?: string
|
|
69
|
+
pushTime?: string
|
|
70
|
+
pullTime?: string
|
|
71
|
+
imagePullUrl?: string
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export type ArtifactReference = {
|
|
75
|
+
childDigest?: string
|
|
76
|
+
platform?: ArtifactPlatform
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export type ArtifactPlatform = {
|
|
80
|
+
osVersion?: string
|
|
81
|
+
architecture?: string
|
|
82
|
+
os?: string
|
|
83
|
+
variant?: string
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export type Tag = {
|
|
87
|
+
name?: string
|
|
88
|
+
pushTime?: string
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export type ListArtifactsResponse = {
|
|
92
|
+
items?: Artifacts[]
|
|
93
|
+
pagination?: ZestuIoApiTypesPage.Pagination
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export type ListArtifactsRequest = {
|
|
97
|
+
regionId?: string
|
|
98
|
+
repository?: string
|
|
99
|
+
fuzzyName?: string
|
|
100
|
+
page?: number
|
|
101
|
+
pageSize?: number
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export type DeleteRepositoryRequest = {
|
|
105
|
+
regionId?: string
|
|
106
|
+
repository?: string
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export type DeleteArtifactRequest = {
|
|
110
|
+
regionId?: string
|
|
111
|
+
repository?: string
|
|
112
|
+
artifact?: string
|
|
113
|
+
}
|
|
@@ -12,6 +12,7 @@ import * as ZestuIoApiImageV1alpha1Image from "../image/v1alpha1/image.pb"
|
|
|
12
12
|
import * as ZestuIoApiMeteringV1alpha1Metering from "../metering/v1alpha1/metering.pb"
|
|
13
13
|
import * as ZestuIoApiMetricsV1alpha1Metrics from "../metrics/v1alpha1/metrics.pb"
|
|
14
14
|
import * as ZestuIoApiRegionV1alpha1Region from "../region/v1alpha1/region.pb"
|
|
15
|
+
import * as ZestuIoApiRegistryV1alpha1Registry from "../registry/v1alpha1/registry.pb"
|
|
15
16
|
import * as ZestuIoApiResourcesV1alpha1Resources from "../resources/v1alpha1/resources.pb"
|
|
16
17
|
import * as ZestuIoApiSmsV1alpha1Sms from "../sms/v1alpha1/sms.pb"
|
|
17
18
|
import * as ZestuIoApiUserV1alpha1User from "../user/v1alpha1/user.pb"
|
|
@@ -46,6 +47,9 @@ export class ContainerInstance {
|
|
|
46
47
|
static DeleteContainerInstanceNetwork(req: ZestuIoApiContainerinstanceV1alpha1Containerinstance.DeleteContainerInstanceNetworkRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
47
48
|
return fm.fetchReq<ZestuIoApiContainerinstanceV1alpha1Containerinstance.DeleteContainerInstanceNetworkRequest, GoogleProtobufEmpty.Empty>(`/apis/zestu.io/v1/region/${req["regionId"]}/containerinstances/${req["instanceId"]}/ports/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
48
49
|
}
|
|
50
|
+
static SaveContainerInstanceImage(req: ZestuIoApiContainerinstanceV1alpha1Containerinstance.SaveContainerInstanceRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
51
|
+
return fm.fetchReq<ZestuIoApiContainerinstanceV1alpha1Containerinstance.SaveContainerInstanceRequest, GoogleProtobufEmpty.Empty>(`/apis/zestu.io/v1/region/${req["regionId"]}/containerinstances/${req["instanceId"]}/saveimage`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
52
|
+
}
|
|
49
53
|
}
|
|
50
54
|
export class Region {
|
|
51
55
|
static ListRegions(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<ZestuIoApiRegionV1alpha1Region.ListRegionsResponse> {
|
|
@@ -142,4 +146,24 @@ export class User {
|
|
|
142
146
|
static GetUserInfo(req: ZestuIoApiUserV1alpha1User.GetUserInfoRequest, initReq?: fm.InitReq): Promise<ZestuIoApiUserV1alpha1User.GetUserInfoResponse> {
|
|
143
147
|
return fm.fetchReq<ZestuIoApiUserV1alpha1User.GetUserInfoRequest, ZestuIoApiUserV1alpha1User.GetUserInfoResponse>(`/apis/zestu.io/v1/userinfo?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
144
148
|
}
|
|
149
|
+
}
|
|
150
|
+
export class Registry {
|
|
151
|
+
static GetRegistryDetail(req: ZestuIoApiRegistryV1alpha1Registry.GetRegistryDetailRequest, initReq?: fm.InitReq): Promise<ZestuIoApiRegistryV1alpha1Registry.GetRegistryDetailResponse> {
|
|
152
|
+
return fm.fetchReq<ZestuIoApiRegistryV1alpha1Registry.GetRegistryDetailRequest, ZestuIoApiRegistryV1alpha1Registry.GetRegistryDetailResponse>(`/apis/zestu.io/v1/region/${req["regionId"]}/registries/details?${fm.renderURLSearchParams(req, ["regionId"])}`, {...initReq, method: "GET"})
|
|
153
|
+
}
|
|
154
|
+
static InitRegistry(req: ZestuIoApiRegistryV1alpha1Registry.InitRegistryRequest, initReq?: fm.InitReq): Promise<ZestuIoApiRegistryV1alpha1Registry.InitRegistryResponse> {
|
|
155
|
+
return fm.fetchReq<ZestuIoApiRegistryV1alpha1Registry.InitRegistryRequest, ZestuIoApiRegistryV1alpha1Registry.InitRegistryResponse>(`/apis/zestu.io/v1/region/${req["regionId"]}/registries/init`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
156
|
+
}
|
|
157
|
+
static ListRepositories(req: ZestuIoApiRegistryV1alpha1Registry.ListRepositoriesRequest, initReq?: fm.InitReq): Promise<ZestuIoApiRegistryV1alpha1Registry.ListRepositoriesResponse> {
|
|
158
|
+
return fm.fetchReq<ZestuIoApiRegistryV1alpha1Registry.ListRepositoriesRequest, ZestuIoApiRegistryV1alpha1Registry.ListRepositoriesResponse>(`/apis/zestu.io/v1/region/${req["regionId"]}/registries/repositories?${fm.renderURLSearchParams(req, ["regionId"])}`, {...initReq, method: "GET"})
|
|
159
|
+
}
|
|
160
|
+
static ListArtifacts(req: ZestuIoApiRegistryV1alpha1Registry.ListArtifactsRequest, initReq?: fm.InitReq): Promise<ZestuIoApiRegistryV1alpha1Registry.ListArtifactsResponse> {
|
|
161
|
+
return fm.fetchReq<ZestuIoApiRegistryV1alpha1Registry.ListArtifactsRequest, ZestuIoApiRegistryV1alpha1Registry.ListArtifactsResponse>(`/apis/zestu.io/v1/region/${req["regionId"]}/registries/repositories/${req["repository"]}/artifacts?${fm.renderURLSearchParams(req, ["regionId", "repository"])}`, {...initReq, method: "GET"})
|
|
162
|
+
}
|
|
163
|
+
static DeleteRepository(req: ZestuIoApiRegistryV1alpha1Registry.DeleteRepositoryRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
164
|
+
return fm.fetchReq<ZestuIoApiRegistryV1alpha1Registry.DeleteRepositoryRequest, GoogleProtobufEmpty.Empty>(`/apis/zestu.io/v1/region/${req["regionId"]}/registries/repositories/${req["repository"]}`, {...initReq, method: "DELETE", body: JSON.stringify(req)})
|
|
165
|
+
}
|
|
166
|
+
static DeleteArtifact(req: ZestuIoApiRegistryV1alpha1Registry.DeleteArtifactRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
167
|
+
return fm.fetchReq<ZestuIoApiRegistryV1alpha1Registry.DeleteArtifactRequest, GoogleProtobufEmpty.Empty>(`/apis/zestu.io/v1/region/${req["regionId"]}/registries/repositories/${req["repository"]}/artifacts/${req["artifact"]}`, {...initReq, method: "DELETE", body: JSON.stringify(req)})
|
|
168
|
+
}
|
|
145
169
|
}
|