package
2.2.1+incompatible
Repository: https://github.com/goharbor/harbor.git
Documentation: pkg.go.dev

# Packages

# Functions

NewBasicTrackerWithID builds a tracker with the provided job ID.
NewBasicTrackerWithStats builds a tracker with the provided job stats.
Priority returns the default job priority sampler implementation.

# Constants

ErrorStatus : job status error.
GarbageCollection job name.
ImageGCReadOnly the name of image garbage collection read only job in job service.
ImageScanJob is name of scan job it will be used as key to register to job service.
KindGeneric : Kind of generic job.
KindPeriodic : Kind of periodic job.
KindScheduled : Kind of scheduled job.
NilCommand is const for a nil command.
P2PPreheat : the name of the P2P preheat job.
PendingStatus : job status pending.
Replication : the name of the replication job in job service.
Retention : the name of the retention job.
RunningStatus : job status running.
SampleJob is name of demo job.
ScheduledStatus : job status scheduled.
SlackJob : the name of the slack job in job service.
StopCommand is const for stop command.
StoppedStatus : job status stopped.
SuccessStatus : job status success.
WebhookJob : the name of the webhook job in job service.

# Structs

ACK is the acknowledge of hook event.
ActionRequest defines for triggering job action like stop/cancel.
Metadata stores the metadata of job.
Request is the request of launching a job.
RequestBody keeps the basic info.
SimpleStatusChange only keeps job ID and the target status.
Stats keeps the result of job launching.
StatsInfo keeps the stats of job.
StatusChange is designed for reporting the status change via hook.

# Interfaces

Context is combination of BaseContext and other job specified resources.
Interface defines the related injection and run entry methods.
PrioritySampler define the job priority generation method.
Tracker is designed to track the life cycle of the job described by the stats The status change is linear and then has strict preorder and successor Check should be enforced before switching Pending is default status when creating job, so no need to switch.

# Type aliases

ContextInitializer is a func to initialize the concrete job context.
HookCallback defines a callback to trigger when hook events happened.
OPCommand is the type of job operation commands.
Parameters for job execution.
Status of job.