From b8ec419c8e6647bd4ec2378fe04427900275fb76 Mon Sep 17 00:00:00 2001 From: Tan Jiang Date: Wed, 21 Mar 2018 16:59:32 +0800 Subject: [PATCH] Add missed package to fix compilation issue --- src/common/job/const.go | 6 ++++++ src/common/job/parms.go | 11 +++++++++++ 2 files changed, 17 insertions(+) create mode 100644 src/common/job/const.go create mode 100644 src/common/job/parms.go diff --git a/src/common/job/const.go b/src/common/job/const.go new file mode 100644 index 000000000..d04aea14c --- /dev/null +++ b/src/common/job/const.go @@ -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" +) diff --git a/src/common/job/parms.go b/src/common/job/parms.go new file mode 100644 index 000000000..22f75a81f --- /dev/null +++ b/src/common/job/parms.go @@ -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"` +}