Documentation ¶
Index ¶
- func GetPage(c *gin.Context) (page, pagesize uint)
- func RespData(c *gin.Context, httpCode, code int, data interface{})
- func RespFail(c *gin.Context, httpCode, code int, detail string)
- func RespJSON(c *gin.Context, httpCode int, resp interface{})
- func RespOk(c *gin.Context, httpCode, code int)
- type Application
- func (a *Application) AddApplication(c *gin.Context)
- func (a *Application) DeleteApplication(c *gin.Context)
- func (a *Application) GetApplication(c *gin.Context)
- func (a *Application) GetApplications(c *gin.Context)
- func (a *Application) RecentApplications(c *gin.Context)
- func (a *Application) UpdateApplication(c *gin.Context)
- type Deploy
- func (deploy *Deploy) AddDeploy(c *gin.Context)
- func (deploy *Deploy) DeleteDeploy(c *gin.Context)
- func (deploy *Deploy) GetBetweenCount(c *gin.Context)
- func (deploy *Deploy) GetDeploy(c *gin.Context)
- func (deploy *Deploy) GetDeploys(c *gin.Context)
- func (deploy *Deploy) GetDockerTag(c *gin.Context)
- func (deploy *Deploy) GetOkErrorCount(c *gin.Context)
- func (deploy *Deploy) StatusDeploy(c *gin.Context)
- func (deploy *Deploy) SubmitDeploy(c *gin.Context)
- func (deploy *Deploy) UpdateDeploy(c *gin.Context)
- type Environment
- func (environment *Environment) AddEnvironment(c *gin.Context)
- func (environment *Environment) DeleteEnvironment(c *gin.Context)
- func (environment *Environment) GetEnvironment(c *gin.Context)
- func (environment *Environment) GetEnvironments(c *gin.Context)
- func (environment *Environment) UpdateEnvironment(c *gin.Context)
- type K8s
- type Pod
- type Project
- type ResponseData
- type ResponseFail
- type ResponseSuccess
- type User
- type Yaml
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Application ¶
type Application struct { Log logger.ILogger `inject:""` Service appSvc.IApplicationService `inject:""` }
Application 注入IApplicationService
func (*Application) AddApplication ¶
func (a *Application) AddApplication(c *gin.Context)
AddApplication 新增Application
func (*Application) DeleteApplication ¶
func (a *Application) DeleteApplication(c *gin.Context)
DeleteApplication 删除Application
func (*Application) GetApplication ¶
func (a *Application) GetApplication(c *gin.Context)
GetApplication 获取单个Application
func (*Application) GetApplications ¶
func (a *Application) GetApplications(c *gin.Context)
GetApplications 获取Applications信息
func (*Application) RecentApplications ¶
func (a *Application) RecentApplications(c *gin.Context)
RecentApplications 获取最近有部署的Applications信息
func (*Application) UpdateApplication ¶
func (a *Application) UpdateApplication(c *gin.Context)
UpdateApplication 修改Application
type Deploy ¶
type Deploy struct { Log logger.ILogger `inject:""` Service deploySvc.IDeployService `inject:""` }
func (*Deploy) DeleteDeploy ¶
func (*Deploy) GetBetweenCount ¶
返回dashboard的柱状图
func (*Deploy) GetDeploys ¶
func (*Deploy) GetDockerTag ¶
func (*Deploy) GetOkErrorCount ¶
返回dashborad的饼状图
func (*Deploy) StatusDeploy ¶
func (*Deploy) SubmitDeploy ¶
func (*Deploy) UpdateDeploy ¶
type Environment ¶
type Environment struct { Log logger.ILogger `inject:""` Service envSvc.IEnvironmentService `inject:""` }
Environment 注入IEnvironmentService
func (*Environment) AddEnvironment ¶
func (environment *Environment) AddEnvironment(c *gin.Context)
AddProject 新增Project
func (*Environment) DeleteEnvironment ¶
func (environment *Environment) DeleteEnvironment(c *gin.Context)
DeleteProject 删除项目
func (*Environment) GetEnvironment ¶
func (environment *Environment) GetEnvironment(c *gin.Context)
GetProject 获取单个Project
func (*Environment) GetEnvironments ¶
func (environment *Environment) GetEnvironments(c *gin.Context)
GetEnvironments 获取项目信息
func (*Environment) UpdateEnvironment ¶
func (environment *Environment) UpdateEnvironment(c *gin.Context)
UpdateProject 修改Project
type K8s ¶
type K8s struct { Log logger.ILogger `inject:""` Service k8sSvc.IK8sService `inject:""` }
type Pod ¶
type Pod struct { Log logger.ILogger `inject:""` Service podSvc.IPodService `inject:""` }
type Project ¶
type Project struct { Log logger.ILogger `inject:""` Service proSvc.IProjectService `inject:""` }
Project 注入IProjectService
func (*Project) UpdateProject ¶
UpdateProject 修改Project
type ResponseData ¶
type ResponseData struct { Code int `json:"code"` Msg string `json:"msg"` Data interface{} `json:"data"` }
ResponseData 数据返回结构体
type ResponseFail ¶
type ResponseFail struct { Code int `json:"code"` Msg string `json:"msg"` Detail string `json:"detail"` }
ResponseFail 返回成功结构体
type ResponseSuccess ¶
ResponseSuccess 返回成功结构体
type User ¶
type User struct { Log logger.ILogger `inject:""` Service service.IUserService `inject:""` }
User 注入IUserService
type Yaml ¶
type Yaml struct { Log logger.ILogger `inject:""` Service yamlSvc.IYamlService `inject:""` }
func (*Yaml) DeleteYaml ¶
func (*Yaml) UpdateYaml ¶
Click to show internal directories.
Click to hide internal directories.