@daocloud-proto/kangaroo 0.4.3-2 → 0.4.3-6
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.
|
@@ -13,7 +13,6 @@ export enum VerifyHarborOperatorResponseHarborOperatorStatus {
|
|
|
13
13
|
STATUS_HARBOR_OPERATOR_IS_NOT_INSTALLED = "STATUS_HARBOR_OPERATOR_IS_NOT_INSTALLED",
|
|
14
14
|
STATUS_CLUSTER_IS_NOT_EXIST = "STATUS_CLUSTER_IS_NOT_EXIST",
|
|
15
15
|
STATUS_READY = "STATUS_READY",
|
|
16
|
-
STATUS_NAMESPACE_QUOTA_EXCEEDED = "STATUS_NAMESPACE_QUOTA_EXCEEDED",
|
|
17
16
|
}
|
|
18
17
|
|
|
19
18
|
export enum DatabaseSpecDatabaseType {
|
|
@@ -67,13 +66,24 @@ export type ResourceNameList = {
|
|
|
67
66
|
|
|
68
67
|
export type VerifyHarborOperatorRequest = {
|
|
69
68
|
cluster?: string
|
|
70
|
-
namespace?: string
|
|
71
69
|
}
|
|
72
70
|
|
|
73
71
|
export type VerifyHarborOperatorResponse = {
|
|
74
72
|
status?: VerifyHarborOperatorResponseHarborOperatorStatus
|
|
75
73
|
}
|
|
76
74
|
|
|
75
|
+
export type VerifyNamespaceQuotaRequest = {
|
|
76
|
+
cluster?: string
|
|
77
|
+
namespace?: string
|
|
78
|
+
requestCpu?: string
|
|
79
|
+
requestMemory?: string
|
|
80
|
+
replicas?: string
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export type VerifyNamespaceQuotaResponse = {
|
|
84
|
+
status?: boolean
|
|
85
|
+
}
|
|
86
|
+
|
|
77
87
|
export type HarborCluster = {
|
|
78
88
|
metadata?: KangarooIoApiTypesObjectmeta.ObjectMeta
|
|
79
89
|
spec?: HarborClusterSpec
|
|
@@ -13,7 +13,10 @@ export class Harbor {
|
|
|
13
13
|
return fm.fetchReq<KangarooIoApiHarborV1alpha1Harbor.GetHarborParamsRequest, KangarooIoApiHarborV1alpha1Harbor.GetHarborParamsResponse>(`/apis/kangaroo.io/v1alpha1/clusters/${req["cluster"]}/harbors/default-params?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
14
14
|
}
|
|
15
15
|
static VerifyHarborOperator(req: KangarooIoApiHarborV1alpha1Harbor.VerifyHarborOperatorRequest, initReq?: fm.InitReq): Promise<KangarooIoApiHarborV1alpha1Harbor.VerifyHarborOperatorResponse> {
|
|
16
|
-
return fm.fetchReq<KangarooIoApiHarborV1alpha1Harbor.VerifyHarborOperatorRequest, KangarooIoApiHarborV1alpha1Harbor.VerifyHarborOperatorResponse>(`/apis/kangaroo.io/v1alpha1/clusters/${req["cluster"]}/
|
|
16
|
+
return fm.fetchReq<KangarooIoApiHarborV1alpha1Harbor.VerifyHarborOperatorRequest, KangarooIoApiHarborV1alpha1Harbor.VerifyHarborOperatorResponse>(`/apis/kangaroo.io/v1alpha1/clusters/${req["cluster"]}/check?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
17
|
+
}
|
|
18
|
+
static VerifyNamespaceQuota(req: KangarooIoApiHarborV1alpha1Harbor.VerifyNamespaceQuotaRequest, initReq?: fm.InitReq): Promise<KangarooIoApiHarborV1alpha1Harbor.VerifyNamespaceQuotaResponse> {
|
|
19
|
+
return fm.fetchReq<KangarooIoApiHarborV1alpha1Harbor.VerifyNamespaceQuotaRequest, KangarooIoApiHarborV1alpha1Harbor.VerifyNamespaceQuotaResponse>(`/apis/kangaroo.io/v1alpha1/clusters/${req["cluster"]}/namespace/${req["namespace"]}/check?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
|
|
17
20
|
}
|
|
18
21
|
static GetHarborCluster(req: KangarooIoApiHarborV1alpha1Harbor.GetHarborClusterRequest, initReq?: fm.InitReq): Promise<KangarooIoApiHarborV1alpha1Harbor.HarborCluster> {
|
|
19
22
|
return fm.fetchReq<KangarooIoApiHarborV1alpha1Harbor.GetHarborClusterRequest, KangarooIoApiHarborV1alpha1Harbor.HarborCluster>(`/apis/kangaroo.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/harbors/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|