Documentation ¶
Index ¶
- type IProwAction
- type Job
- func (j *Job) CreateChangedCovHtml() error
- func (j *Job) Fetch(BuildID, name string) []byte
- func (j *Job) HtmlProfile() string
- func (j *Job) JobPrefixOnQiniu() string
- func (j *Job) RunPeriodic() error
- func (j *Job) RunPostsubmit() error
- func (j *Job) RunPresubmit() error
- func (j *Job) SetDeltaCovLinks(c cover.DeltaCovList)
- func (j *Job) WriteChangedCov(changedFiles []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IProwAction ¶
type IProwAction interface { Fetch(BuildID, name string) []byte RunPresubmit() error RunPostsubmit() error RunPeriodic() error }
IProwAction defines the normal action in prow system
type Job ¶
type Job struct { JobName string Org string RepoName string PRNumStr string BuildId string //prow job build number PostSubmitJob string PostSubmitCoverProfile string CovThreshold int LocalProfilePath string QiniuClient qiniu.Client LocalArtifacts qiniu.Artifacts GithubComment github.PrComment FullDiff bool }
Job is a prowjob in prow
func (*Job) CreateChangedCovHtml ¶
CreateChangedCovHtml create changed file related coverage html base on the local artifact
func (*Job) HtmlProfile ¶
HtmlProfile generates the name of the profile html file
func (*Job) JobPrefixOnQiniu ¶
JobPrefixOnQiniu generates the prefix string of the job on qiniu
func (*Job) SetDeltaCovLinks ¶
func (j *Job) SetDeltaCovLinks(c cover.DeltaCovList)
SetDeltaCovLinks set DeltaCovLinks to the job
func (*Job) WriteChangedCov ¶
WriteChangedCov filter local profile with changed files and save to j.LocalArtifacts.ChangedProfileName
Click to show internal directories.
Click to hide internal directories.