harbor/src/jobservice/job/known_jobs.go

44 lines
1.8 KiB
Go
Raw Normal View History

// Copyright Project Harbor Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package job
// Define the register name constants of known jobs
const (
// SampleJob is name of demo job
SampleJob = "DEMO"
// ImageScanJobVendorType is name of scan job it will be used as key to register to job service.
ImageScanJobVendorType = "IMAGE_SCAN"
// GarbageCollectionVendorType job name
GarbageCollectionVendorType = "GARBAGE_COLLECTION"
// ReplicationVendorType : the name of the replication job in job service
ReplicationVendorType = "REPLICATION"
// WebhookJobVendorType : the name of the webhook job in job service
WebhookJobVendorType = "WEBHOOK"
// SlackJobVendorType : the name of the slack job in job service
SlackJobVendorType = "SLACK"
// RetentionVendorType : the name of the retention job
RetentionVendorType = "RETENTION"
// P2PPreheatVendorType : the name of the P2P preheat job
P2PPreheatVendorType = "P2P_PREHEAT"
// PurgeAuditVendorType : the name of purge audit job
PurgeAuditVendorType = "PURGE_AUDIT_LOG"
// SystemArtifactCleanupVendorType : the name of the SystemArtifact cleanup job
SystemArtifactCleanupVendorType = "SYSTEM_ARTIFACT_CLEANUP"
// ScanDataExportVendorType : the name of the scan data export job
ScanDataExportVendorType = "SCAN_DATA_EXPORT"
)