mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-24 01:27:49 +01:00
Add missed package to fix compilation issue
This commit is contained in:
parent
483496ed93
commit
b8ec419c8e
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