Documentation ¶
Index ¶
- func CreateJobDetail(name string, id int) (*model.JobDetail, error)
- func DeleteJob(name string) error
- func DeleteJobDetail(name string, pipelineDetailId int) error
- func GetFileData(path string) ([]byte, error)
- func GetJob(name string) (string, error)
- func GetJobArtifactoryDir(jobName string, jobID string) string
- func GetJobArtifactoryFiles(jobName string, jobID string) ([]string, error)
- func GetJobArtifactoryFilesData(jobName string, jobID string) ([]*api.File, error)
- func GetJobCheckDir(jobName string, jobID string) string
- func GetJobCheckFiles(jobName string, jobID string) ([]string, error)
- func GetJobCheckFilesData(jobName string, jobID string) ([]*api.File, error)
- func GetJobDetail(name string, id int) (*model.JobDetail, error)
- func GetJobDetailFilePath(name string, id int) string
- func GetJobLog(name string, pipelineDetailId int) (*model.JobLog, error)
- func GetJobLogString(name string, pipelineDetailId int) (string, error)
- func GetJobObject(name string) (*model.Job, error)
- func GetJobStageLog(name string, execId int, stageName string, start int) (*model.JobStageLog, error)
- func GetJobStepLog(name string, id int, stageName, stepName string) (*output.Step, error)
- func GetJobsDir() string
- func JobDetailList(name string, page, pageSize int) (*model.JobDetailPage, error)
- func JobList(keyword string, page, pageSize int) (*model.JobPage, error)
- func ListFilesAbs(dir string) ([]string, error)
- func ListFilesRel(dir string) ([]string, error)
- func MakeJobStop(jobName string, jobDetailId int, errorString string) error
- func OpenArtifactoryDir(name string, detailId string) error
- func ReadStringJobDetail(name string, id int) (string, error)
- func SaveFile(path string, data []byte) error
- func SaveJob(name string, yaml string) error
- func SaveJobDetail(name string, job *model.JobDetail) error
- func SaveJobLogString(name string, pipelineDetailId int, content string) error
- func SaveJobParams(name string, params map[string]string) error
- func SaveJobUserId(name string, userId string) error
- func SaveStringJobDetail(name string, id int, content string) error
- func UpdateJob(oldName string, newName string, yaml string) error
- func UpdateJobDetail(name string, job *model.JobDetail) error
- func WriteFileToJobsDir(fileName string, content []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateJobDetail ¶
CreateJobDetail exec pipeline job
func DeleteJobDetail ¶
DeleteJobDetail delete job detail
func GetFileData ¶
func GetJobArtifactoryDir ¶
GetJobArtifactoryDir 获取 job 的 artifactory 目录路径
func GetJobArtifactoryFiles ¶
func GetJobCheckDir ¶
func GetJobCheckFilesData ¶
func GetJobDetail ¶
GetJobDetail get job detail
func GetJobDetailFilePath ¶
func GetJobLogString ¶
GetJobLogString 获取 job 日志字符串
func GetJobStageLog ¶
func GetJobStageLog(name string, execId int, stageName string, start int) (*model.JobStageLog, error)
GetJobStageLog 获取 job 的 stage 日志
func GetJobStepLog ¶
GetJobStepLog 获取 job 的 step 日志
func GetJobsDir ¶
func GetJobsDir() string
func JobDetailList ¶
func JobDetailList(name string, page, pageSize int) (*model.JobDetailPage, error)
JobDetailList job detail list
func ListFilesAbs ¶
func MakeJobStop ¶
MakeJobStop 使 job 停止
func OpenArtifactoryDir ¶
OpenArtifactoryDir open artifactory folder
func SaveJobDetail ¶
SaveJobDetail save job detail
func SaveJobLogString ¶
SaveJobLogString 保存 job 日志字符串
func SaveJobUserId ¶
func UpdateJobDetail ¶
UpdateJobDetail update job detail yaml file
func WriteFileToJobsDir ¶
WriteFileToJobsDir 把文件写入到 jobs 文件夹下
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.