Add missed package to fix compilation issue

This commit is contained in:
Tan Jiang 2018-03-21 16:59:32 +08:00
parent 483496ed93
commit b8ec419c8e
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"`
}