package
2.2.1+incompatible
Repository: https://github.com/goharbor/harbor.git
Documentation: pkg.go.dev
# Functions
AcquireLock acquires a redis lock with specified expired time.
GetZsetByScore get the items from the zset filtered by the specified score scope.
HmGet gets values of multiple fields Values have same order with the provided fields.
HmSet sets the properties of hash map.
KeyHookEventRetryQueue returns the key of hook event retrying queue.
KeyInProgressQueue returns the key of the in progress queue for the specified job type.
KeyJobLock returns the key of lock for the specified job type.
KeyJobLockInfo returns the key of lock_info for the specified job type.
KeyJobs returns the key of the specified job queue.
KeyJobStats returns the key of job stats.
KeyJobTrackInProgress returns the key of in progress jobs tracking queue.
KeyNamespacePrefix returns the based key based on the namespace.
KeyPeriod returns the key of period.
KeyPeriodicLock returns the key of locker under period.
KeyPeriodicNotification returns the key of periodic pub/sub channel.
KeyPeriodicPolicy returns the key of periodic policies.
KeyStatusUpdateRetryQueue returns the key of status change retrying queue.
KeyUpstreamJobAndExecutions returns the key for persisting executions.
KeyWorkerPools returns the key of the worker pool.
RedisKeyLastPeriodicEnqueue returns key of timestamp if last periodic enqueue.
RedisKeyScheduled returns key of scheduled job.
RedisLuaReenqueueScript returns redis script of redisLuaReenqueueJob.
RedisNamespacePrefix ..
ReleaseLock releases the acquired lock.
ZPopMin pops the element with lowest score in the zset.
# Variables
CheckStatusMatchScript is lua script for checking if the provided status is still matching the backend status.
ErrNoElements is a pre defined error to describe the case that no elements got from the backend database.
HookAckScript is defined to set the hook event ACK in the job stats map.
SetStatusScript is lua script for setting job status atomically.
StatusResetScript is lua script to reset the job stats.