ci

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2019 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckUserPerms

func CheckUserPerms(username string, domain string) bool

2018-02-18 21:13 检查用户权限 发布项目权限检查使用

func ClearJob

func ClearJob()

2018-08-22 09;25 清除无效的job

func DeleteJobCache

func DeleteJobCache(name string)

2018-08-09 13:34 删除缓存数据

func GetDockerFileSelect

func GetDockerFileSelect() string

生成 镜像服务 html 2018-01-26 10:41

func GetDockerfileData

func GetDockerfileData(name string) []ci.CloudCiDockerfile

获取docker数据 2018-01-26 11:17

func GetHistoryData

func GetHistoryData(jobName string) ci.CloudBuildJobHistory

2018-02-04 15;57 获取历史数据,在流水线时候使用到

func GetJobLogs

func GetJobLogs(jobData ci.CloudBuildJob) string

2018-02-04 08:19 获取job日志 流水线也用这个日志

func GetJobName

func GetJobName(username string, clusterName string, itemName string) []ci.CloudBuildJob

2018-02-03 21:55 获取构建任务信息

func GetSelectHtml

func GetSelectHtml(username string, clusterName string) string

2018-02-03 21:37 获取选项

func JobExecStart

func JobExecStart(jobData ci.CloudBuildJob, username string, jobName string, registryAuth string) string

2018-02-03 22:13 执行构建任务

Types

type BatchController

type BatchController struct {
	beego.Controller
}

2018-01-24 21:32 持续集成

func (*BatchController) BatchAdd

func (this *BatchController) BatchAdd()

batch管理添加页面 @router /ci/batch/add [get]

func (*BatchController) BatchData

func (this *BatchController) BatchData()

batch数据 @router /api/ci/batch [get]

func (*BatchController) BatchDelete

func (this *BatchController) BatchDelete()

json 删除batch 2018-01-24 21:46 @router /api/ci/batch/:id:int [delete]

func (*BatchController) BatchList

func (this *BatchController) BatchList()

batch管理入口页面 @router /ci/batch/list [get]

func (*BatchController) BatchSave

func (this *BatchController) BatchSave()

string batch保存 @router /api/ci/batch [post]

type CiController

type CiController struct {
	beego.Controller
}

2018-01-24 16:36 持续集成

type CiPermController

type CiPermController struct {
	beego.Controller
}

func (*CiPermController) CiPerm

func (this *CiPermController) CiPerm()

权限数据 @router /api/ci/service/perm [get]

func (*CiPermController) CiPermAdd

func (this *CiPermController) CiPermAdd()

发布权限添加页面 @router /ci/service/perm/add [get]

func (*CiPermController) CiPermDelete

func (this *CiPermController) CiPermDelete()

@router /api/ci/service/perm/delete [*]

func (*CiPermController) CiPermList

func (this *CiPermController) CiPermList()

权限管理入口页面 @router /ci/service/perm/list [get]

func (*CiPermController) CiPermSave

func (this *CiPermController) CiPermSave()

保存数据 @router /api/ci/service/perm [post]

type CodeController

type CodeController struct {
	beego.Controller
}

2018-01-24 16:36 持续集成

func (*CodeController) CodeAdd

func (this *CodeController) CodeAdd()

代码仓库管理添加页面 @router /ci/code/add [get]

func (*CodeController) CodeData

func (this *CodeController) CodeData()

获取代码仓库数据 2018-01-20 12:56 router /api/ci/code [get]

func (*CodeController) CodeDataName

func (this *CodeController) CodeDataName()

获取代码仓库数据 2018-01-20 17:45 router /api/ci/code/name [get]

func (*CodeController) CodeDatas

func (this *CodeController) CodeDatas()

代码仓库数据 @router /api/ci/code [get]

func (*CodeController) CodeDelete

func (this *CodeController) CodeDelete()

json 删除代码仓库 2018-01-20 17:46 @router /api/ci/code/:id:int [delete]

func (*CodeController) CodeList

func (this *CodeController) CodeList()

代码仓库管理入口页面 @router /ci/code/list [get]

func (*CodeController) CodeSave

func (this *CodeController) CodeSave()

string 代码仓库保存 @router /api/ci/code [post]

type DockerFileController

type DockerFileController struct {
	beego.Controller
}

2018-01-24 21:32 持续集成

func (*DockerFileController) DockerFileAdd

func (this *DockerFileController) DockerFileAdd()

dockerfile管理添加页面 @router /ci/dockerfile/add [get]

func (*DockerFileController) DockerFileData

func (this *DockerFileController) DockerFileData()

获取dockerfile数据 2018-01-24 21:33 router /api/ci/dockerfile [get]

func (*DockerFileController) DockerFileDataName

func (this *DockerFileController) DockerFileDataName()

获取dockerfile数据 2018-01-24 21:45 router /api/ci/dockerfile/name [get]

func (*DockerFileController) DockerFileDatas

func (this *DockerFileController) DockerFileDatas()

dockerfile数据 @router /api/ci/dockerfile [get]

func (*DockerFileController) DockerFileDelete

func (this *DockerFileController) DockerFileDelete()

json 删除dockerfile 2018-01-24 21:46 @router /api/ci/dockerfile/:id:int [delete]

func (*DockerFileController) DockerFileDetail

func (this *DockerFileController) DockerFileDetail()

2018-01-25 10:05 dockerfile 详情入口页面 @router /ci/dockerfile/detail/:hi(.*) [get]

func (*DockerFileController) DockerFileList

func (this *DockerFileController) DockerFileList()

dockerfile管理入口页面 @router /ci/dockerfile/list [get]

func (*DockerFileController) DockerFileSave

func (this *DockerFileController) DockerFileSave()

string dockerfile保存 @router /api/ci/dockerfile [post]

type JobController

type JobController struct {
	beego.Controller
}

2018-01-25 17:54 构建任务配置

func (*JobController) JobAdd

func (this *JobController) JobAdd()

构建任务管理添加页面 @router /ci/job/add [get]

func (*JobController) JobData

func (this *JobController) JobData()

获取构建任务数据 2018-01-25 17:57 router /api/ci/job [get]

func (*JobController) JobDataName

func (this *JobController) JobDataName()

获取构建任务数据 2018-01-25 17:45 router /api/ci/job/name [get]

func (*JobController) JobDatas

func (this *JobController) JobDatas()

构建任务数据 @router /api/ci/job [get]

func (*JobController) JobDelete

func (this *JobController) JobDelete()

json 删除构建任务 2018-01-25 17:46 @router /api/ci/job/:id:int [delete]

func (*JobController) JobDetail

func (this *JobController) JobDetail()

构建任务详情入口 @router /ci/job/detail/:hi(.*) [get]

func (*JobController) JobDockerfile

func (this *JobController) JobDockerfile()

2018-01-29 08;13 获取构建dockerfile @router /api/job/dockerfile/:id:int [get]

func (*JobController) JobExec

func (this *JobController) JobExec()

执行任务计划 2018-01-26 15;00 @router /api/ci/job/exec/:id:int [get]

func (*JobController) JobHistoryDatas

func (this *JobController) JobHistoryDatas()

构建任务数据 @router /api/ci/job/history [get]

func (*JobController) JobHistoryList

func (this *JobController) JobHistoryList()

2018-01-26 20:34 构建任务历史页面 @router /ci/job/history/list [get]

func (*JobController) JobList

func (this *JobController) JobList()

构建任务管理入口页面 @router /ci/job/list [get]

func (*JobController) JobLogs

func (this *JobController) JobLogs()

执行任务计划 2018-01-26 15;47 @router /api/ci/job/logs/:id:int [get]

func (*JobController) JobLogsPage

func (this *JobController) JobLogsPage()

2018-01-26 15:56 查看构建日志 @router /ci/job/logs/:id:int [get]

func (*JobController) JobSave

func (this *JobController) JobSave()

string 构建任务保存 @router /api/ci/job [post]

type ServiceController

type ServiceController struct {
	beego.Controller
}

2018-02-10 18:14 持续集成

func (*ServiceController) HistoryList

func (this *ServiceController) HistoryList()

服务发布历史入口页面 @router /ci/service/release/history [get]

func (*ServiceController) ReleaseHistory

func (this *ServiceController) ReleaseHistory()

2018-02-14 16:40 服务发布历史数据 @router /api/ci/service/history [get]

func (*ServiceController) RollingUpdate

func (this *ServiceController) RollingUpdate()

2018-02-16 17:32 滚动更新页面 @router /ci/service/rolling/:id:int [get]

func (*ServiceController) RollingUpdateExec

func (this *ServiceController) RollingUpdateExec()

2018-02-16 18:57 滚动镜像 @param version @router /api/ci/service/rolling/:id:int [post]

func (*ServiceController) ServiceAdd

func (this *ServiceController) ServiceAdd()

服务发布管理添加页面 @router /ci/service/add [get]

func (*ServiceController) ServiceDataName

func (this *ServiceController) ServiceDataName()

获取服务发布数据 2018-02-10 19:45 router /api/ci/service/name [get]

func (*ServiceController) ServiceDatas

func (this *ServiceController) ServiceDatas()

服务发布数据 @router /api/ci/service [get]

func (*ServiceController) ServiceDelete

func (this *ServiceController) ServiceDelete()

json 删除服务发布 2018-02-10 18:27 @router /api/ci/service/:id:int [delete]

func (*ServiceController) ServiceList

func (this *ServiceController) ServiceList()

服务发布管理入口页面 @router /ci/service/list [get]

func (*ServiceController) ServiceLog

func (this *ServiceController) ServiceLog()

2018-02-17 11:14 服务发布日志入口页面 @router /ci/service/release/logs [get]

func (*ServiceController) ServiceLogs

func (this *ServiceController) ServiceLogs()

获取服务发布数据 2018-02-17 11:20 router /api/ci/service/logs [get]

func (*ServiceController) ServiceOffline

func (this *ServiceController) ServiceOffline()

2018-02-14 18:20 下线服务,删除不要的服务 @router /api/ci/service/release/:id:int [delete]

func (*ServiceController) ServiceOnline

func (this *ServiceController) ServiceOnline()

2018-02-14 21:10 上线服务,将新版本替换到线上 蓝绿发布切换 @param ServerVersion @router /api/ci/service/online/:id:int [post]

func (*ServiceController) ServiceRelease

func (this *ServiceController) ServiceRelease()

服务发布弹出页面 @router /ci/service/release [get]

func (*ServiceController) ServiceReleaseExec

func (this *ServiceController) ServiceReleaseExec()

服务发布入口 2018-02-10 18:27 @param ServiceVersion [ 1 | 2 ] @router /api/ci/service/release/:id:int [post]

func (*ServiceController) ServiceRollback

func (this *ServiceController) ServiceRollback()

2018-02-15 06:40 将所有配置都回归到蓝版本, svc和lb 服务回滚 @router /api/ci/service/rollback/:id:int [post]

func (*ServiceController) ServiceSave

func (this *ServiceController) ServiceSave()

string 服务发布保存 @router /api/ci/service [post]

func (*ServiceController) ServiceTop

func (this *ServiceController) ServiceTop()

服务信息详情 @router /ci/service/top/:id:int [get]

func (*ServiceController) StartFlow

func (this *ServiceController) StartFlow()

2018-02-16 11:00 切入流量页面 @router /ci/service/flow/:id:int [get]

func (*ServiceController) StartFlowExec

func (this *ServiceController) StartFlowExec()

2018-02-16 12:57 流量切入,按百分比切入 主要是修改lb的upstream配置 @param Percent @router /api/ci/service/flow/:id:int [post]

func (*ServiceController) UpdateBlueService

func (this *ServiceController) UpdateBlueService()

2018-02-15 10:49 将篮板更新镜像 @router /api/ci/service/blue/:id:int [post]

func (*ServiceController) UpdateHistory

func (this *ServiceController) UpdateHistory()

2018-02-18 17:30 更新发布历史中的描述信息 @router /api/ci/service/history/:id:int [post]

Jump to

Keyboard shortcuts

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