Documentation
¶
Overview ¶
Copyright 2020 Qiniu Cloud (qiniu.com)
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
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 ¶
func (*Job) JobPrefixOnQiniu ¶
func (*Job) SetDeltaCovLinks ¶
func (j *Job) SetDeltaCovLinks(c cover.DeltaCovList)
func (*Job) WriteChangedCov ¶
filter local profile with changed files and save to j.LocalArtifacts.ChangedProfileName