@@ -41,7 +41,7 @@ type Application struct {
|
|||||||
Name string `json:"name" description:"application name"`
|
Name string `json:"name" description:"application name"`
|
||||||
RepoName string `json:"repoName" description:"repo name"`
|
RepoName string `json:"repoName" description:"repo name"`
|
||||||
Runtime string `json:"namespace" description:"namespace"`
|
Runtime string `json:"namespace" description:"namespace"`
|
||||||
RuntimeId string `json:"runtime_id" description:"runtime id"`
|
RuntimeId string `json:"runtime_id" description:"originates from OpenPitrix and represents k8s namespace, it's the value of the annotation in each namespace, e.g. openpitrix_runtime: runtime-xEg1LGZQYN93"`
|
||||||
Version string `json:"version" description:"application version"`
|
Version string `json:"version" description:"application version"`
|
||||||
VersionId string `json:"version_id" description:"application version id"`
|
VersionId string `json:"version_id" description:"application version id"`
|
||||||
Status string `json:"status" description:"application status"`
|
Status string `json:"status" description:"application status"`
|
||||||
|
|||||||
@@ -102,14 +102,14 @@ type repoList struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type CreateClusterRequest struct {
|
type CreateClusterRequest struct {
|
||||||
AppId string `json:"app_id"`
|
AppId string `json:"app_id" description:"ID of app to run in cluster, e.g. app-AA3A3y3zEgEM"`
|
||||||
VersionId string `json:"version_id"`
|
VersionId string `json:"version_id" description:"app version, e.g. appv-154gXYx5RKRp"`
|
||||||
RuntimeId string `json:"runtime_id"`
|
RuntimeId string `json:"runtime_id" description:"ID of runtime, e.g. runtime-wWwXL0LzWqEr"`
|
||||||
Conf string `json:"conf"`
|
Conf string `json:"conf" description:"conf a json string, include cpu, memory info of cluster"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type DeleteClusterRequest struct {
|
type DeleteClusterRequest struct {
|
||||||
ClusterId []string `json:"cluster_id"`
|
ClusterId []string `json:"cluster_id" description:"cluster ID"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func GetAppInfo(appId string) (string, string, string, error) {
|
func GetAppInfo(appId string) (string, string, string, error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user