@daocloud-proto/skoala 0.5.1-145 → 0.5.1-147
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.
|
@@ -55,6 +55,36 @@ export type ListNamespaceReq = {
|
|
|
55
55
|
pageSize?: number
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
+
export type ListMeshNamespaceReq = {
|
|
59
|
+
workspaceId?: string
|
|
60
|
+
meshId?: string
|
|
61
|
+
page?: number
|
|
62
|
+
pageSize?: number
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export type ListMeshNamespaceRes = {
|
|
66
|
+
items?: string[]
|
|
67
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export type ListMeshServiceReq = {
|
|
71
|
+
workspaceId?: string
|
|
72
|
+
meshId?: string
|
|
73
|
+
namespaceName?: string[]
|
|
74
|
+
page?: number
|
|
75
|
+
pageSize?: number
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export type ListMeshServiceRes = {
|
|
79
|
+
items?: MeshServiceInfo[]
|
|
80
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export type MeshServiceInfo = {
|
|
84
|
+
serviceName?: string
|
|
85
|
+
namespaceName?: string
|
|
86
|
+
}
|
|
87
|
+
|
|
58
88
|
export type ListServiceReq = {
|
|
59
89
|
workspaceId?: string
|
|
60
90
|
clusterName?: string
|
|
@@ -42,6 +42,12 @@ export class Skoala {
|
|
|
42
42
|
static ListClusterNamespaceService(req: SkoalaApiGeneralV1alpha1Skoala.ListServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListServiceRes> {
|
|
43
43
|
return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListServiceReq, SkoalaApiGeneralV1alpha1Skoala.ListServiceRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/services?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName"])}`, {...initReq, method: "GET"})
|
|
44
44
|
}
|
|
45
|
+
static ListMeshNamespaces(req: SkoalaApiGeneralV1alpha1Skoala.ListMeshNamespaceReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListMeshNamespaceRes> {
|
|
46
|
+
return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListMeshNamespaceReq, SkoalaApiGeneralV1alpha1Skoala.ListMeshNamespaceRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshs/${req["meshId"]}/namespaces?${fm.renderURLSearchParams(req, ["workspaceId", "meshId"])}`, {...initReq, method: "GET"})
|
|
47
|
+
}
|
|
48
|
+
static ListMeshNamespaceServices(req: SkoalaApiGeneralV1alpha1Skoala.ListMeshServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListMeshServiceRes> {
|
|
49
|
+
return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListMeshServiceReq, SkoalaApiGeneralV1alpha1Skoala.ListMeshServiceRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshs/${req["meshId"]}/services?${fm.renderURLSearchParams(req, ["workspaceId", "meshId"])}`, {...initReq, method: "GET"})
|
|
50
|
+
}
|
|
45
51
|
static ListWorkspace(req: SkoalaApiGeneralV1alpha1Skoala.ListWorkspaceReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListWorkspaceRes> {
|
|
46
52
|
return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListWorkspaceReq, SkoalaApiGeneralV1alpha1Skoala.ListWorkspaceRes>(`/apis/skoala.io/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
47
53
|
}
|