Documentation
¶
Index ¶
- Constants
- type CloudApp
- type CloudAppConfigure
- type CloudAppConfigureName
- type CloudAppName
- type CloudAppService
- type CloudAppServiceInfo
- type CloudAppServiceName
- type CloudAppTemplate
- type CloudAppTemplateName
- type CloudConfigData
- type CloudContainer
- type CloudContainerName
- type CloudTemplateDeployHistory
- type ConfigDataName
Constants ¶
View Source
const DeleteCloudApp = "delete from cloud_app"
View Source
const DeleteCloudAppConfigure = "delete from cloud_app_configure"
View Source
const DeleteCloudAppService = "delete from cloud_app_service"
View Source
const DeleteCloudAppTemplate = "delete from cloud_app_template"
View Source
const DeleteCloudConfigData = "delete from cloud_config_data"
View Source
const DeleteCloudContainer = "delete from cloud_container"
View Source
const GetAppName = "select app_id, app_name,create_user,cluster_name,entname from cloud_app"
View Source
const InsertCloudApp = "insert into cloud_app"
View Source
const InsertCloudAppConfigure = "insert into cloud_app_configure"
View Source
const InsertCloudAppService = "insert into cloud_app_service"
View Source
const InsertCloudAppTemplate = "insert into cloud_app_template"
View Source
const InsertCloudConfigData = "insert into cloud_config_data"
View Source
const InsertCloudContainer = "insert into cloud_container"
View Source
const InsertCloudTemplateDeployHistory = "insert into cloud_template_deploy_history"
View Source
const SelectAppServiceName = "select app_name,service_name,cluster_name,entname from cloud_app_service"
View Source
const SelectCloudApp = "" /* 228-byte string literal not displayed */
View Source
const SelectCloudAppConfigSearch = ` and (configure_name like "%?%" or description like "%?%")`
View Source
const SelectCloudAppConfigure = "" /* 150-byte string literal not displayed */
View Source
const SelectCloudAppService = "" /* 514-byte string literal not displayed */
View Source
const SelectCloudAppTemplate = "" /* 170-byte string literal not displayed */
View Source
const SelectCloudConfigData = "" /* 138-byte string literal not displayed */
View Source
const SelectCloudContainer = "" /* 294-byte string literal not displayed */
View Source
const SelectCloudTemplateDeployHistory = "" /* 154-byte string literal not displayed */
View Source
const SelectConfigDataWhere = ` where 1=1 and (configure_name like "%?%" or description like "%?%")`
View Source
const SelectCurrentVersion = "select service_version,image_tag,service_id from cloud_app_service"
View Source
const SelectServiceInfo = `` /* 268-byte string literal not displayed */
View Source
const SelectServiceName = "select distinct service_name from cloud_app_service"
View Source
const SelectServiceNameSpace = `select distinct concat(app_name,"--",resource_name) as service_name, entname,cluster_name from cloud_app_service`
View Source
const SelectServiceYaml = "select yaml from cloud_app_service where service_name in (%s)"
View Source
const SelectUserApp = `select app_id from cloud_app where create_user in (?) `
View Source
const SelectUserContainer = `select container_id from cloud_container where create_user in (?)`
View Source
const SelectUserServices = `select service_id from cloud_app_service where create_user in (?) `
View Source
const SelectUsersCpu = `select sum(cpu * replicas) as cpu from cloud_app_service where create_user in (?) `
View Source
const SelectUsersMemory = `select sum(memory * replicas) as memory from cloud_app_service where create_user in (?) `
View Source
const ServiceSearchKey = "ClusterName,Entname,ServiceName,AppName"
View Source
const UpdateCloudApp = "update cloud_app"
View Source
const UpdateCloudAppConfigure = "update cloud_app_configure"
View Source
const UpdateCloudAppConfigureExclude = "CreateTime,CreateUser,ConfigureName"
View Source
const UpdateCloudAppService = "update cloud_app_service"
View Source
const UpdateCloudAppServiceWhere = "CreateTime,CreateUser"
View Source
const UpdateCloudAppTemplate = "update cloud_app_template"
View Source
const UpdateCloudConfigData = "update cloud_config_data"
View Source
const UpdateConfigDataExclude = "CreateTime,CreateUser,DataName"
View Source
const UpdateServiceDomain = "" /* 127-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudApp ¶
type CloudApp struct { // AppId int64 //应用名称 AppName string //运行状态 Status string //最近修改时间 LastModifyTime string //应用标签 AppLabels string //其他非固定数据存储 JsonData string //应用类型 AppType string //资源空间 ResourceName string //创建时间 CreateTime string //创建用户 CreateUser string //最近修改用户 LastModifyUser string //最近更新时间 LastUpdateTime string // 编排文件 Yaml string // 集群名称 ClusterName string // 是否创建service IsService string // uuid Uuid string // 服务的yaml文件 ServiceYaml string //存放服务的端口,json格式 {name:xxxx,port:8080} NodePort string // 环境名称 Entname string }
type CloudAppConfigure ¶
type CloudAppConfigureName ¶
type CloudAppName ¶
type CloudAppName struct { //应用名称 AppName string // 创建用户 CreateUser string // 集群名称 ClusterName string // 环境名称 Entname string // AppId string }
2018-01-22 14:41 获取应用名称
type CloudAppService ¶
type CloudAppService struct { //部署模式, deployment daemonset statefulset DeployType string //容器副本数量 Replicas int64 //service名称 ServiceName string //最近修改时间 LastModifyTime string //内存数 Memory int64 //服务器标签数据 ServiceLablesData string //集群名称 ClusterName string //网络模式 flannel host NetworkMode string //手动配置文件的内容 Config string //容器最小数量 ReplicasMin int64 //健康检查数据 HealthData string // ServiceId int64 //运行状态 Status string //镜像版本号 ImageTag string //容器最多数量 ReplicasMax int64 //创建用户 CreateUser string //服务标签,用map标识 ServiceLabels string //负载均衡数据 LbData string //service类型,有状态和无状态 ServiceType string //其他非固定数据存储 JsonData string //容器端口,多个逗号分隔 ContainerPort string //参考环境配置的信息 EnvFile string //存储配置数据 StorageData string //资源空间 ResourceName string //cpu核数 Cpu float32 //负载均衡名称 LbName string // AppLabels string //编排文件 Yaml string //挂载配置文件数据 ConfigureData string //创建时间 CreateTime string //最近修改用户 LastModifyUser string //最近更新时间 LastUpdateTime string // 环境变量值 Envs string // 应用名称 AppName string // 滚动升级时候,会优先启动的pod数量 MaxSurge int MaxUnavailable int // 指定没有任何容器crash的Pod并被认为是可用状态的最小秒数 MinReady int // 镜像仓库地址 ImageRegistry string // 环境名称 Entname string // 服务版本做蓝绿,灰度部署标签, // 有1和2,如果1存在那么就部署一个2, // 如果2存在就部署一个1, // 当确认发布完成 ,删除一个未使用的部署 ServiceVersion string // 域名 Domain string // pod关闭时间 TerminationSeconds int // 日志路径 LogPath string }
2018-01-11 11:40:10.8610181 +0800 CST
type CloudAppServiceInfo ¶
响应命名空间数据
type CloudAppServiceName ¶
type CloudAppTemplate ¶
type CloudAppTemplate struct { //模板名称 TemplateName string //创建时间 CreateTime string //创建用户 CreateUser string //最近修改时间 LastModifyTime string //最近修改用户 LastModifyUser string //资源名称 ResourceName string //描述信息 Description string //yaml编排文件 Yaml string // TemplateId int64 // 集群 Cluster string // 环境 Ent string // 服务名称 ServiceName string // 应用名称 AppName string // 域名 Domain string }
type CloudAppTemplateName ¶
type CloudConfigData ¶
type CloudContainer ¶
type CloudContainer struct { // ContainerId int64 //容器名称 ContainerName string //宿主机地址 ServerAddress string //容器ip ContainerIp string //应用名称 AppName string //创建时间 CreateTime string //服务名称 ServiceName string //集群名称 ClusterName string //镜像名称 Image string //运行状态 Status string // 资源名称 ResourceName string // cpu Cpu int64 // 内存 Memory int64 // Env Env string // 运行的程序 Process string // 存储数据 StorageData string // 容器等待原因信息 WaitingMessages string // 容器等待原因 WaitingReason string // 容器停止原因信息 TerminatedMessages string // 容器停止原因 TerminatedReason string // 创建用户 CreateUser string // 环境名称 Entname string // 事件信息 Events string // 重启次数 Restart int32 // 服务信息 Service string // 数据更新时间 LastUpdateTime int64 }
2018-01-15 15:20:35.5687711 +0800 CST
type CloudContainerName ¶
type CloudContainerName struct { //容器名称 ContainerName string //应用名称 AppName string //服务名称 ServiceName string //集群名称 ClusterName string }
存储容器名称数据,在更新数据时做判断使用,不用频繁查库
type CloudTemplateDeployHistory ¶
type CloudTemplateDeployHistory struct { //创建用户 CreateUser string //环境名称 Entname string //创建时间 CreateTime string //service名称 ServiceName string //应用名称 AppName string //环境名称 ResourceName string //集群名称 ClusterName string // TemplateName string // HistoryId int64 // 域名 Domain string }
2018-08-16 16:04:25.8692888 +0800 CST
type ConfigDataName ¶
Click to show internal directories.
Click to hide internal directories.