handler

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MkResponse

func MkResponse(ctx *gin.Context, code int, msg string, data interface{})

Types

type Pager

type Pager struct {
	PageNumber int64 `json:"page_number"`
	PageSize   int64 `json:"page_size"`
	Total      int64 `json:"total"`
}

type Service

type Service struct{}

func (*Service) BreathRecord

func (h *Service) BreathRecord(ctx *gin.Context)

BreathRecord 查询单个服务扩容历史

func (*Service) Create

func (h *Service) Create(ctx *gin.Context)

Create 创建服务

func (*Service) Detail

func (h *Service) Detail(ctx *gin.Context)

Detail 查询服务详情

func (*Service) Expand

func (h *Service) Expand(ctx *gin.Context)

Expand 服务扩容入口

func (*Service) List

func (h *Service) List(ctx *gin.Context)

List 查询服务列表

func (*Service) Shrink

func (h *Service) Shrink(ctx *gin.Context)

Shrink 服务缩容入口

func (*Service) Update

func (h *Service) Update(ctx *gin.Context)

Update 更新数据表记录

type ServiceCreateHttpRequest

type ServiceCreateHttpRequest struct {
	ServiceInfo *types.ServiceInfo `json:"service_info"`
}

type ServiceCreateHttpResponse

type ServiceCreateHttpResponse struct {
	ServiceClusterId int64 `json:"service_cluster_id"`
}

type ServiceExpandHttpRequest

type ServiceExpandHttpRequest struct {
	ServiceClusterId int64  `form:"service_cluster_id" json:"service_cluster_id"`
	Count            int64  `form:"count" json:"count"`
	ExecType         string `form:"exec_type" json:"exec_type"`
}

type ServiceExpandHttpResponse

type ServiceExpandHttpResponse struct {
}

type ServiceInfo

type ServiceInfo struct {
	ServiceName  string `json:"service_name"`
	Description  string `json:"description"`
	Language     string `json:"language"`
	TmplExpandId string `json:"tmpl_expand_id"`
}

type ServiceShrinkHttpRequest

type ServiceShrinkHttpRequest struct {
	ServiceClusterId int64  `form:"service_cluster_id" json:"service_cluster_id"`
	Count            int64  `form:"count" json:"count"`
	ExecType         string `form:"exec_type" json:"exec_type"`
}

type ServiceShrinkHttpResponse

type ServiceShrinkHttpResponse struct {
}

type TmplExpand

type TmplExpand struct {
}

func (*TmplExpand) Create

func (h *TmplExpand) Create(ctx *gin.Context)

Create 模板

func (*TmplExpand) Delete

func (h *TmplExpand) Delete(ctx *gin.Context)

Delete 删除模版信息

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"`
}

type TmplExpandResponse

type TmplExpandResponse struct {
	TmplId string `json:"tmpl_id"`
}

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"`
}

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"`
}

type TmplUpdateResponse

type TmplUpdateResponse struct {
	TmplId string `json:"tmpl_id"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL