mirror of
https://github.com/goharbor/harbor
synced 2025-04-07 03:08:25 +00:00
fix golint and go vet issue
This commit is contained in:
parent
582deea9e7
commit
c859616e25
|
@ -84,7 +84,7 @@ func UpdateScanJobStatus(id int64, status string) error {
|
|||
return err
|
||||
}
|
||||
|
||||
// SetScanJobDigest set UUID to the record so it associates with the job in job service.
|
||||
// SetScanJobUUID set UUID to the record so it associates with the job in job service.
|
||||
func SetScanJobUUID(id int64, uuid string) error {
|
||||
o := GetOrmer()
|
||||
sj := models.ScanJob{
|
||||
|
|
|
@ -5,7 +5,7 @@ type ScanJobParms struct {
|
|||
JobID int64 `json:"job_int_id"`
|
||||
Repository string `json:"repository"`
|
||||
Tag string `json:"tag"`
|
||||
Digest string `json:digest"`
|
||||
Digest string `json:"digest"`
|
||||
Secret string `json:"job_service_secret"`
|
||||
RegistryURL string `json:"registry_url"`
|
||||
ClairEndpoint string `json:"clair_endpoint"`
|
||||
|
|
|
@ -85,6 +85,7 @@ func scanRepos(repos []*models.RepoRecord) {
|
|||
}
|
||||
}
|
||||
|
||||
// GetJobServiceClient returns the job service client instance.
|
||||
func GetJobServiceClient() job.Client {
|
||||
cl.Lock()
|
||||
defer cl.Unlock()
|
||||
|
|
Loading…
Reference in New Issue
Block a user