Documentation ¶
Index ¶
- Variables
- func CacheAppData()
- func CreateGreenService(ciData ci.CloudCiService, username string) (string, bool, app.CloudAppService)
- func CreateSecretFile(param k8s.ServiceParam) k8s.ServiceParam
- func CronServiceCache()
- func DeleteK8sService(service app.CloudAppService, force string) interface{}
- func ExecDeploy(d app.CloudAppService, isRedeploy bool) (app.CloudAppService, error)
- func ExecUpdate(service app.CloudAppService, updateType string, username string) error
- func GetAppHtml(cluster string, username string) string
- func GetAppSelect(searchMap sql.SearchMap) string
- func GetAppServiceDataMap() util.Lock
- func GetConfgData(configureName string, cluster string) map[string]interface{}
- func GetCurrentVersion(ciData ci.CloudCiService, services []app.CloudAppService) util.Lock
- func GetEntDescription(entname string) string
- func GetSelectHtml(username string, cluster string) string
- func GetServiceData(name string, cluster string, appname string) app.CloudAppService
- func GetServiceHtml(searchMap sql.SearchMap) string
- func GetServiceRunData(data []app.CloudAppService, user string) []k8s.CloudApp
- func GetServices(ciData ci.CloudCiService, q string) []app.CloudAppService
- func GetUserLbService(user string, clusterName string, id string) []app.CloudAppService
- func GoServerThread(data []app.CloudAppService)
- func MakeContainerData(namespace string)
- func MakeFilebeatConfig(Entname string, clusterName string)
- func SetAppDataJson(this *AppController, data interface{})
- func UpdateServiceDomain()
- type AppController
- func (this *AppController) AppAdd()
- func (this *AppController) AppData()
- func (this *AppController) AppDelete()
- func (this *AppController) AppDetail()
- func (this *AppController) AppList()
- func (this *AppController) AppScale()
- func (this *AppController) ConfigureList()
- func (this *AppController) ContainerCommit()
- func (this *AppController) ContainerData()
- func (this *AppController) ContainerDelete()
- func (this *AppController) ContainerDetail()
- func (this *AppController) ContainerImage()
- func (this *AppController) ContainerList()
- func (this *AppController) EnvfileList()
- func (this *AppController) GetAppName()
- func (this *AppController) GetDockerLogs()
- func (this *AppController) GetTemplateName()
- func (this *AppController) HistoryData()
- func (this *AppController) HistoryList()
- func (this *AppController) RedeployApp()
- func (this *AppController) ServiceList()
- func (this *AppController) StartDeploy()
- func (this *AppController) TemplateAdd()
- func (this *AppController) TemplateData()
- func (this *AppController) TemplateDelete()
- func (this *AppController) TemplateDeployAdd()
- func (this *AppController) TemplateList()
- func (this *AppController) TemplateSave()
- func (this *AppController) TemplateUpdate()
- func (this *AppController) TemplateUpdateAdd()
- func (this *AppController) YamlCheck()
- type ConfigureController
- func (this *ConfigureController) ConfigureAdd()
- func (this *ConfigureController) ConfigureData()
- func (this *ConfigureController) ConfigureDelete()
- func (this *ConfigureController) ConfigureList()
- func (this *ConfigureController) ConfigureSave()
- func (this *ConfigureController) DetailPage()
- func (this *ConfigureController) GetConfigureName()
- type DataController
- type ServiceController
- func (this *ServiceController) ConfigAdd()
- func (this *ServiceController) ConfigureAdd()
- func (this *ServiceController) EnvAdd()
- func (this *ServiceController) GetServiceName()
- func (this *ServiceController) HealthAdd()
- func (this *ServiceController) HealthChange()
- func (this *ServiceController) ImageAdd()
- func (this *ServiceController) LogPathChange()
- func (this *ServiceController) PortChange()
- func (this *ServiceController) ScaleAdd()
- func (this *ServiceController) ServiceAdd()
- func (this *ServiceController) ServiceData()
- func (this *ServiceController) ServiceDelete()
- func (this *ServiceController) ServiceInfo()
- func (this *ServiceController) ServiceList()
- func (this *ServiceController) ServiceSave()
- func (this *ServiceController) ServiceScale()
- func (this *ServiceController) ServiceUpdate()
- func (this *ServiceController) StorageAdd()
Constants ¶
This section is empty.
Variables ¶
var (
LockContainerUpdate util.Lock
)
Functions ¶
func CreateGreenService ¶
func CreateGreenService(ciData ci.CloudCiService, username string) (string, bool, app.CloudAppService)
蓝绿部署,启动一个绿的
func CreateSecretFile ¶
func CreateSecretFile(param k8s.ServiceParam) k8s.ServiceParam
2018-02-09 21:32 创建secret文件
func DeleteK8sService ¶
func DeleteK8sService(service app.CloudAppService, force string) interface{}
2018-02-14 18:06 删除服务
func ExecDeploy ¶
func ExecDeploy(d app.CloudAppService, isRedeploy bool) (app.CloudAppService, error)
创建服务公用
func ExecUpdate ¶
func ExecUpdate(service app.CloudAppService, updateType string, username string) error
2018-02-04 16:08 更新服务
func GetAppServiceDataMap ¶
2018-02-09 15:55 获取所有应用和服务的名称,在流水线判断应用服务是否存在
func GetConfgData ¶
从数据库查询组名称 2018-01-17 16:24
func GetCurrentVersion ¶
func GetCurrentVersion(ciData ci.CloudCiService, services []app.CloudAppService) util.Lock
2018-02-14 07;30 获取当前版本
func GetSelectHtml ¶
2018-02-03 21:30 获取服务名称数据
func GetServiceData ¶
func GetServiceData(name string, cluster string, appname string) app.CloudAppService
查询某个服务的数据
func GetServiceHtml ¶
2018-02-13 15:53 getServiceData service选择查询
func GetServiceRunData ¶
func GetServiceRunData(data []app.CloudAppService, user string) []k8s.CloudApp
2018-02-04 从redis里获取应用服务运行状态数据
func GetServices ¶
func GetServices(ciData ci.CloudCiService, q string) []app.CloudAppService
2018-02-14 07:20 获取蓝绿部署的服务信息
func GetUserLbService ¶
func GetUserLbService(user string, clusterName string, id string) []app.CloudAppService
2018-02-01 15:15 获取某个用户的所有服务
func GoServerThread ¶
func GoServerThread(data []app.CloudAppService)
2018-01-31 16:04 后台执行服务状态,更新到缓存里
func MakeFilebeatConfig ¶
2018/10/11 11:27:06 批量更新和重启容器
func SetAppDataJson ¶
func SetAppDataJson(this *AppController, data interface{})
Types ¶
type AppController ¶
type AppController struct {
beego.Controller
}
func (*AppController) AppAdd ¶
func (this *AppController) AppAdd()
添加应用页面 @router /application/app/add [get]
func (*AppController) AppDelete ¶
func (this *AppController) AppDelete()
删除应用 @router /api/app/:id:int [delete]
func (*AppController) AppDetail ¶
func (this *AppController) AppDetail()
应用详情页面 @router /application/app/detail/:id:int [get]
func (*AppController) AppList ¶
func (this *AppController) AppList()
容器应用入口页面 @router /application/app/index [get]
func (*AppController) AppScale ¶
func (this *AppController) AppScale()
2018-01-16 20:33 应用扩缩容接口 @router /api/app/scale/:id:int
func (*AppController) ConfigureList ¶
func (this *AppController) ConfigureList()
模板管理入口页面 @router /application/app/service/configure [get]
func (*AppController) ContainerCommit ¶
func (this *AppController) ContainerCommit()
2018-08-21 14:33 容器提交镜像 @router /api/container/commit/:id:int [delete]
func (*AppController) ContainerData ¶
func (this *AppController) ContainerData()
获取容器运行情况 2018-01-15 15:11 @router /api/container [get]
func (*AppController) ContainerDelete ¶
func (this *AppController) ContainerDelete()
2018-01-16 12:20 删除容器 @router /api/container/:id:int [delete]
func (*AppController) ContainerDetail ¶
func (this *AppController) ContainerDetail()
容器详情页面 2018-01-16 08:34 @router /application/container/detail/:hi:string [get]
func (*AppController) ContainerImage ¶
func (this *AppController) ContainerImage()
容器镜像提交页面 2018-08-21 13:34 @router /application/container/image [get]
func (*AppController) ContainerList ¶
func (this *AppController) ContainerList()
容器列表入口 2018-01-15 14:57 @router /application/container/list
func (*AppController) EnvfileList ¶
func (this *AppController) EnvfileList()
模板管理入口页面 @router /application/app/service/envfile [get]
func (*AppController) GetAppName ¶
func (this *AppController) GetAppName()
2018-02-03 19:03 应用 名称数据 @param ClusterName @router /api/app/name [get]
func (*AppController) GetDockerLogs ¶
func (this *AppController) GetDockerLogs()
2018-09-04 18:19 获取容器日志 @router /api/container/logs/:hi(.*) [get]
func (*AppController) GetTemplateName ¶
func (this *AppController) GetTemplateName()
模板名称数据 @router /api/template/name [get]
func (*AppController) HistoryData ¶
func (this *AppController) HistoryData()
模板数据 @router /api/template/deploy/history [get]
func (*AppController) HistoryList ¶
func (this *AppController) HistoryList()
编排历史页面 @router /application/template/deploy/history [get]
func (*AppController) RedeployApp ¶
func (this *AppController) RedeployApp()
2018-02-26 09:24 重新部署应用 @router /api/app/redeploy [post]
func (*AppController) ServiceList ¶
func (this *AppController) ServiceList()
服务管理入口页面 @router /application/app/service/service [get]
func (*AppController) StartDeploy ¶
func (this *AppController) StartDeploy()
2018-08-16 10:35 执行环境拉起操作 @router /api/template/deploy/:id:int [post]
func (*AppController) TemplateAdd ¶
func (this *AppController) TemplateAdd()
模板管理添加页面 @router /application/template/add [get]
func (*AppController) TemplateData ¶
func (this *AppController) TemplateData()
模板数据 @router /api/template [get]
func (*AppController) TemplateDelete ¶
func (this *AppController) TemplateDelete()
json 删除模板 @router /api/template/:id:int [delete]
func (*AppController) TemplateDeployAdd ¶
func (this *AppController) TemplateDeployAdd()
2018-08-16 11:06 模板管理应用拉起添加页面 @router /application/template/deploy/add [get]
func (*AppController) TemplateList ¶
func (this *AppController) TemplateList()
模板管理入口页面 @router /application/template/list [get]
func (*AppController) TemplateSave ¶
func (this *AppController) TemplateSave()
string 模板保存 @router /api/template [post]
func (*AppController) TemplateUpdate ¶
func (this *AppController) TemplateUpdate()
2018-08-16 09:39 模板更新yaml数据 @router /api/template/update [post]
func (*AppController) TemplateUpdateAdd ¶
func (this *AppController) TemplateUpdateAdd()
2018-08-16 09:45 模板yaml更新添加页面 @router /application/template/update/add [get]
func (*AppController) YamlCheck ¶
func (this *AppController) YamlCheck()
string 检查yaml是否可以转换成json格式 @router /api/template/yaml/check [post]
type ConfigureController ¶
type ConfigureController struct {
beego.Controller
}
func (*ConfigureController) ConfigureAdd ¶
func (this *ConfigureController) ConfigureAdd()
配置文件管理添加页面 @router /application/configure/add [get]
func (*ConfigureController) ConfigureData ¶
func (this *ConfigureController) ConfigureData()
配置文件数据 @router /api/configure [get]
func (*ConfigureController) ConfigureDelete ¶
func (this *ConfigureController) ConfigureDelete()
json 删除配置文件 @router /api/configure/:id:int [delete]
func (*ConfigureController) ConfigureList ¶
func (this *ConfigureController) ConfigureList()
配置文件管理入口页面 @router /application/configure/list [get]
func (*ConfigureController) ConfigureSave ¶
func (this *ConfigureController) ConfigureSave()
string 配置文件保存 @router /api/configure [post]
func (*ConfigureController) DetailPage ¶
func (this *ConfigureController) DetailPage()
配置文件详情入口 @router /application/configure/detail/:hi(.*) [get]
func (*ConfigureController) GetConfigureName ¶
func (this *ConfigureController) GetConfigureName()
配置文件名称数据 @router /api/configure/name [get]
type DataController ¶
type DataController struct {
beego.Controller
}
func (*DataController) ConfigData ¶
func (this *DataController) ConfigData()
配置文件数据数据 @router /api/configure/data [get]
func (*DataController) ConfigDataAdd ¶
func (this *DataController) ConfigDataAdd()
配置文件数据管理添加页面 @router /application/configure/data/add [get]
func (*DataController) ConfigDataDelete ¶
func (this *DataController) ConfigDataDelete()
json 删除配置文件数据 @router /api/configure/data/:id:int [delete]
func (*DataController) ConfigDataSave ¶
func (this *DataController) ConfigDataSave()
string 配置文件数据保存 @router /api/configure/data [post]
func (*DataController) GetConfigDataName ¶
func (this *DataController) GetConfigDataName()
配置文件数据名称数据 @router /api/configure/data/name [get]
type ServiceController ¶
type ServiceController struct {
beego.Controller
}
func (*ServiceController) ConfigAdd ¶
func (this *ServiceController) ConfigAdd()
2018-01-13 18:43 Service 服务管理修改配置 @param @router /application/service/config/add/:id:int [get]
func (*ServiceController) ConfigureAdd ¶
func (this *ServiceController) ConfigureAdd()
Service 创建服务添加配置文件页面 @router /application/service/configure/add [get]
func (*ServiceController) EnvAdd ¶
func (this *ServiceController) EnvAdd()
2018-01-14 11:13 应用Service 修改环境变量 @router /application/service/env/add/:id:int [get]
func (*ServiceController) GetServiceName ¶
func (this *ServiceController) GetServiceName()
Service 名称数据 @param AppName @param ServiceName @param ClusterName @router /api/service/name [get]
func (*ServiceController) HealthAdd ¶
func (this *ServiceController) HealthAdd()
Service 创建服务添加健康检查页面 @router /application/service/health/add [get]
func (*ServiceController) HealthChange ¶
func (this *ServiceController) HealthChange()
Service 创建服务添加健康检查页面 @router /application/service/health/add/:id:int [get]
func (*ServiceController) ImageAdd ¶
func (this *ServiceController) ImageAdd()
2018-01-14 09:31 应用Service 修改滚动升级页面 @router /application/service/image/add/:id:int [get]
func (*ServiceController) LogPathChange ¶
func (this *ServiceController) LogPathChange()
Service 修改日志路径页面 @router /application/service/log/add/:id:int [get]
func (*ServiceController) PortChange ¶
func (this *ServiceController) PortChange()
2018-01-14 13:31 应用Service 修改端口数据 @router /application/service/port/add/:id:int [get]
func (*ServiceController) ScaleAdd ¶
func (this *ServiceController) ScaleAdd()
2018-01-13 17:01 Service 服务管理扩容页面 @param @router /application/service/scale/add/:id:int [get]
func (*ServiceController) ServiceAdd ¶
func (this *ServiceController) ServiceAdd()
Service 管理添加页面 @router /application/service/add [get]
func (*ServiceController) ServiceData ¶
func (this *ServiceController) ServiceData()
Service 数据 @router /api/service [get]
func (*ServiceController) ServiceDelete ¶
func (this *ServiceController) ServiceDelete()
json 删除Service @router /api/service/:id:int [delete]
func (*ServiceController) ServiceInfo ¶
func (this *ServiceController) ServiceInfo()
Service 数据获取 @router /api/service/:hi [get]
func (*ServiceController) ServiceList ¶
func (this *ServiceController) ServiceList()
Service 管理入口页面 @router /application/service/list [get]
func (*ServiceController) ServiceSave ¶
func (this *ServiceController) ServiceSave()
string Service 保存 @router /api/service [post]
func (*ServiceController) ServiceScale ¶
func (this *ServiceController) ServiceScale()
扩容或缩容服务容器 @router /api/service/scale/:id:int [*]
func (*ServiceController) ServiceUpdate ¶
func (this *ServiceController) ServiceUpdate()
@parame type 更新类型 image config port env health 2018-01-13 19:37 @router /api/service/update/:id:int [post]
func (*ServiceController) StorageAdd ¶
func (this *ServiceController) StorageAdd()
Service 创建服务添加存储页面 @router /application/service/storage/add [get]