Documentation ¶
Index ¶
- func MkResponse(ctx *gin.Context, code int, msg string, data interface{})
- type Artifact
- type ArtifactListRequest
- type ArtifactListResponse
- type CreateIntegrationInfoReq
- type DeleteIntegrationReq
- type Instance
- type InstanceCountReq
- type InstanceReq
- type InstanceServiceByIpReq
- type Integration
- type ListIntegrationReq
- type Pager
- type Service
- func (h *Service) BreathRecord(ctx *gin.Context)
- func (h *Service) ClusterList(ctx *gin.Context)
- func (h *Service) Create(ctx *gin.Context)
- func (h *Service) Delete(ctx *gin.Context)
- func (h *Service) Deploy(ctx *gin.Context)
- func (h *Service) Detail(ctx *gin.Context)
- func (h *Service) Expand(ctx *gin.Context)
- func (h *Service) GetWorkflowTasks(ctx *gin.Context)
- func (h *Service) GetWorkflows(ctx *gin.Context)
- func (h *Service) List(ctx *gin.Context)
- func (h *Service) Scheduling(ctx *gin.Context)
- func (h *Service) Shrink(ctx *gin.Context)
- func (h *Service) Update(ctx *gin.Context)
- type ServiceCreateHttpRequest
- type ServiceCreateHttpResponse
- type ServiceDeployHttpRequest
- type ServiceDeployHttpResponse
- type ServiceExpandHttpRequest
- type ServiceExpandHttpResponse
- type ServiceInfo
- type ServiceShrinkHttpRequest
- type ServiceShrinkHttpResponse
- type Task
- type TaskInfoRequest
- type TaskInfoResponse
- type TmplDeploy
- type TmplExpand
- type TmplExpandRequest
- type TmplExpandResponse
- type TmplInfoResponse
- type TmplUpdateRequest
- type TmplUpdateResponse
- type Workflow
- type WorkflowListRequest
- type WorkflowListResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ArtifactListRequest ¶ added in v0.3.0
type ArtifactListRequest struct { ServiceName string `form:"service_name" binding:"required"` WorkflowName string `form:"workflow_name" binding:"required"` FileType string `form:"file_type" binding:"required"` PageNum int `form:"page_num" binding:"required"` PageSize int `form:"page_size" binding:"required"` }
type ArtifactListResponse ¶ added in v0.3.0
type CreateIntegrationInfoReq ¶ added in v0.3.0
type DeleteIntegrationReq ¶ added in v0.3.0
type DeleteIntegrationReq struct {
Ids []int64 `json:"ids"`
}
type Instance ¶ added in v0.2.0
type Instance struct{}
func (*Instance) InstanceServiceByIp ¶ added in v0.3.0
type InstanceCountReq ¶ added in v0.2.0
type InstanceReq ¶ added in v0.1.1
type InstanceServiceByIpReq ¶ added in v0.3.0
type InstanceServiceByIpReq struct {
IpInner string `json:"ip_inner" form:"ip_inner" binding:"required,ip"`
}
type Integration ¶ added in v0.3.0
type Integration struct{}
func (*Integration) Create ¶ added in v0.3.0
func (i *Integration) Create(ctx *gin.Context)
func (*Integration) Delete ¶ added in v0.3.0
func (i *Integration) Delete(ctx *gin.Context)
func (*Integration) List ¶ added in v0.3.0
func (i *Integration) List(ctx *gin.Context)
type ListIntegrationReq ¶ added in v0.3.0
type Service ¶
type Service struct{}
func (*Service) BreathRecord ¶
BreathRecord 查询单个服务扩容历史
func (*Service) ClusterList ¶ added in v0.2.0
ClusterList 查询服务关联集群列表
func (*Service) GetWorkflowTasks ¶ added in v0.3.0
func (*Service) GetWorkflows ¶ added in v0.3.0
func (*Service) Scheduling ¶ added in v0.2.0
type ServiceCreateHttpRequest ¶
type ServiceCreateHttpRequest struct {
ServiceInfo *types.ServiceInfo `json:"service_info"`
}
type ServiceCreateHttpResponse ¶
type ServiceCreateHttpResponse struct {
ServiceClusterId int64 `json:"service_cluster_id"`
}
type ServiceDeployHttpRequest ¶ added in v0.3.0
type ServiceDeployHttpRequest struct { ServiceClusterId int64 `form:"service_cluster_id" json:"service_cluster_id"` DownloadFileUrl string `form:"download_file_url" json:"download_file_url"` Count int64 `form:"count" json:"count"` ExecType string `form:"exec_type" json:"exec_type"` Rollback bool `form:"rollback" json:"rollback"` }
type ServiceDeployHttpResponse ¶ added in v0.3.0
type ServiceDeployHttpResponse struct {
TaskId int64 `json:"task_id"`
}
type ServiceExpandHttpRequest ¶
type ServiceExpandHttpRequest struct { ServiceClusterId int64 `form:"service_cluster_id" json:"service_cluster_id"` ServiceName string `form:"service_name" json:"service_name" ` ServiceCluster string `form:"service_cluster" json:"service_cluster"` Count int64 `form:"count" json:"count"` ExecType string `form:"exec_type" json:"exec_type"` }
type ServiceExpandHttpResponse ¶
type ServiceExpandHttpResponse struct {
TaskId int64 `json:"task_id"`
}
type ServiceInfo ¶
type ServiceShrinkHttpRequest ¶
type ServiceShrinkHttpRequest struct { ServiceClusterId int64 `form:"service_cluster_id" json:"service_cluster_id"` ServiceName string `json:"service_name" form:"service_name"` ServiceCluster string `json:"service_cluster" form:"service_cluster"` Count int64 `form:"count" json:"count"` ExecType string `form:"exec_type" json:"exec_type"` }
type ServiceShrinkHttpResponse ¶
type ServiceShrinkHttpResponse struct {
TaskId int64 `json:"task_id"`
}
type Task ¶ added in v0.1.1
type Task struct{}
func (*Task) GetDeployDetail ¶ added in v0.3.0
GetDeployDetail 查询部署任务详情
func (*Task) InstanceList ¶ added in v0.1.1
type TaskInfoRequest ¶ added in v0.1.1
type TaskInfoRequest struct {
TaskId int64 `json:"task_id"`
}
type TaskInfoResponse ¶ added in v0.1.1
type TmplDeploy ¶ added in v0.3.0
type TmplDeploy struct { }
func (*TmplDeploy) List ¶ added in v0.3.0
func (h *TmplDeploy) List(ctx *gin.Context)
type TmplExpand ¶
type TmplExpand struct { }
func (*TmplExpand) Info ¶
func (h *TmplExpand) Info(ctx *gin.Context)
func (*TmplExpand) List ¶
func (h *TmplExpand) List(ctx *gin.Context)
func (*TmplExpand) Update ¶
func (h *TmplExpand) Update(ctx *gin.Context)
type TmplExpandRequest ¶
type TmplExpandRequest struct { EndStep string `json:"end_step"` TmplInfo *types.TmpInfo `json:"tmpl_info"` BaseEnv *types.BaseEnv `json:"base_env"` ServiceEnv *types.ServiceEnv `json:"service_env"` Mount *types.ParamsMount `json:"mount"` DeployInfo *types.DeployInfo `json:"deploy_info"` }
type TmplExpandResponse ¶
type TmplInfoResponse ¶
type TmplInfoResponse struct { TmplInfo *types.TmpInfo `json:"tmpl_info"` BaseEnv *types.BaseEnv `json:"base_env"` ServiceEnv *types.ServiceEnv `json:"service_env"` Mount *types.ParamsMount `json:"mount"` DeployInfo *types.DeployInfo `json:"deploy_info"` }
type TmplUpdateRequest ¶
type TmplUpdateRequest struct { TmplExpandId int64 `json:"tmpl_expand_id"` EndStep string `json:"end_step"` TmplInfo *types.TmpInfo `json:"tmpl_info"` BaseEnv *types.BaseEnv `json:"base_env"` ServiceEnv *types.ServiceEnv `json:"service_env"` Mount *types.ParamsMount `json:"mount"` DeployInfo *types.DeployInfo `json:"deploy_info"` }
type TmplUpdateResponse ¶
type TmplUpdateResponse struct {
TmplId string `json:"tmpl_id"`
}
type WorkflowListRequest ¶ added in v0.3.0
type WorkflowListRequest struct {
ServiceName string `form:"service_name" binding:"required"`
}
type WorkflowListResponse ¶ added in v0.3.0
type WorkflowListResponse struct {
WorkflowList []Workflow `json:"workflow_list"`
}
Click to show internal directories.
Click to hide internal directories.