@daocloud-proto/skoala 0.2.0-27 → 0.2.0-32
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.
|
@@ -28,8 +28,8 @@ export class Registry {
|
|
|
28
28
|
static Create(req: SkoalaApiIntegratedV1alpha1Registry.CreateRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.CreateRegistryRes> {
|
|
29
29
|
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.CreateRegistryReq, SkoalaApiIntegratedV1alpha1Registry.CreateRegistryRes>(`/apis/hive.skoala.io/v1alpha1/registries`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
30
30
|
}
|
|
31
|
-
static Delete(req: SkoalaApiIntegratedV1alpha1Registry.DeleteRegistryReq, initReq?: fm.InitReq): Promise<
|
|
32
|
-
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.DeleteRegistryReq,
|
|
31
|
+
static Delete(req: SkoalaApiIntegratedV1alpha1Registry.DeleteRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.DeleteRegistryRes> {
|
|
32
|
+
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.DeleteRegistryReq, SkoalaApiIntegratedV1alpha1Registry.DeleteRegistryRes>(`/apis/hive.skoala.io/v1alpha1/registries/${req["registryId"]}`, {...initReq, method: "DELETE"})
|
|
33
33
|
}
|
|
34
34
|
static Ping(req: SkoalaApiIntegratedV1alpha1Registry.PingRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.PingRegistryRes> {
|
|
35
35
|
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.PingRegistryReq, SkoalaApiIntegratedV1alpha1Registry.PingRegistryRes>(`/apis/hive.skoala.io/v1alpha1/registries/ping`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
@@ -3,16 +3,34 @@
|
|
|
3
3
|
/*
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
|
+
|
|
7
|
+
export enum RegistryRegistryType {
|
|
8
|
+
TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
|
|
9
|
+
NACOS = "NACOS",
|
|
10
|
+
EUREKA = "EUREKA",
|
|
11
|
+
KUBERNETES = "KUBERNETES",
|
|
12
|
+
ZOOKEEPER = "ZOOKEEPER",
|
|
13
|
+
MESH = "MESH",
|
|
14
|
+
}
|
|
15
|
+
|
|
6
16
|
export type Registry = {
|
|
7
17
|
registryId?: string
|
|
8
18
|
name?: string
|
|
9
|
-
type?:
|
|
19
|
+
type?: RegistryRegistryType
|
|
10
20
|
addresses?: string[]
|
|
11
21
|
namespaces?: Namespace[]
|
|
12
22
|
serviceCount?: number
|
|
23
|
+
updatedAt?: string
|
|
24
|
+
createdAt?: string
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type RegistryOnlyID = {
|
|
28
|
+
registryId?: string
|
|
13
29
|
}
|
|
14
30
|
|
|
15
31
|
export type ListRegistryReq = {
|
|
32
|
+
type?: string
|
|
33
|
+
name?: string
|
|
16
34
|
page?: number
|
|
17
35
|
size?: number
|
|
18
36
|
}
|
|
@@ -36,8 +54,8 @@ export type UpdateRegistryReq = {
|
|
|
36
54
|
registryId?: string
|
|
37
55
|
name?: string
|
|
38
56
|
type?: string
|
|
39
|
-
addresses?: string
|
|
40
|
-
namespaces?:
|
|
57
|
+
addresses?: string[]
|
|
58
|
+
namespaces?: Namespace[]
|
|
41
59
|
}
|
|
42
60
|
|
|
43
61
|
export type UpdateRegistryRes = {
|
|
@@ -47,22 +65,25 @@ export type UpdateRegistryRes = {
|
|
|
47
65
|
export type CreateRegistryReq = {
|
|
48
66
|
name?: string
|
|
49
67
|
type?: string
|
|
50
|
-
addresses?: string
|
|
51
|
-
namespaces?:
|
|
68
|
+
addresses?: string[]
|
|
69
|
+
namespaces?: Namespace[]
|
|
52
70
|
}
|
|
53
71
|
|
|
54
72
|
export type CreateRegistryRes = {
|
|
55
|
-
registry?:
|
|
73
|
+
registry?: RegistryOnlyID
|
|
56
74
|
}
|
|
57
75
|
|
|
58
76
|
export type DeleteRegistryReq = {
|
|
59
77
|
registryId?: string
|
|
60
78
|
}
|
|
61
79
|
|
|
80
|
+
export type DeleteRegistryRes = {
|
|
81
|
+
registry?: RegistryOnlyID
|
|
82
|
+
}
|
|
83
|
+
|
|
62
84
|
export type PingRegistryReq = {
|
|
63
85
|
type?: string
|
|
64
|
-
addresses?: string
|
|
65
|
-
namespaces?: string
|
|
86
|
+
addresses?: string[]
|
|
66
87
|
}
|
|
67
88
|
|
|
68
89
|
export type PingRegistryRes = {
|
|
@@ -73,5 +94,4 @@ export type PingRegistryRes = {
|
|
|
73
94
|
export type Namespace = {
|
|
74
95
|
id?: string
|
|
75
96
|
name?: string
|
|
76
|
-
group?: string
|
|
77
97
|
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import * as SkoalaApiIntegratedV1alpha1Registry from "./registry.pb"
|
|
8
8
|
export type Service = {
|
|
9
9
|
name?: string
|
|
10
|
-
namespace?:
|
|
10
|
+
namespace?: NamespaceWithGroup
|
|
11
11
|
instanceCount?: number
|
|
12
12
|
registry?: SkoalaApiIntegratedV1alpha1Registry.Registry
|
|
13
13
|
detail?: {[key: string]: string}
|
|
@@ -40,4 +40,10 @@ export type GetServiceReq = {
|
|
|
40
40
|
|
|
41
41
|
export type GetServiceRes = {
|
|
42
42
|
service?: Service
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export type NamespaceWithGroup = {
|
|
46
|
+
id?: string
|
|
47
|
+
name?: string
|
|
48
|
+
group?: string
|
|
43
49
|
}
|