mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-22 18:25:56 +01:00
Merge pull request #4454 from reasonerjt/scan-job-migrate
Add missed package to fix compilation issue
This commit is contained in:
commit
aab34efa49
6
src/common/job/const.go
Normal file
6
src/common/job/const.go
Normal file
@ -0,0 +1,6 @@
|
||||
package job
|
||||
|
||||
const (
|
||||
//ImageScanJob is name of scan job it will be used as key to register to job service.
|
||||
ImageScanJob = "IMAGE_SCAN"
|
||||
)
|
11
src/common/job/parms.go
Normal file
11
src/common/job/parms.go
Normal file
@ -0,0 +1,11 @@
|
||||
package job
|
||||
|
||||
type ScanJobParms struct {
|
||||
JobID int64 `json:"job_int_id"`
|
||||
Repository string `json:"repository"`
|
||||
Tag string `json:"tag"`
|
||||
Secret string `json: "job_service_secret"`
|
||||
RegistryURL string `json:"registry_url"`
|
||||
ClairEndpoint string `json:"clair_endpoint"`
|
||||
TokenEndpoint string `json:"token_endpoint"`
|
||||
}
|
Loading…
Reference in New Issue
Block a user