Merge pull request #4454 from reasonerjt/scan-job-migrate

Add missed package to fix compilation issue
This commit is contained in:
Daniel Jiang 2018-03-21 17:11:12 +08:00 committed by GitHub
commit aab34efa49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 0 deletions

6
src/common/job/const.go Normal file
View 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
View 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"`
}