Documentation ¶
Index ¶
- Constants
- Variables
- type Lock
- type LockDB
- type LockFactory
- type LockID
- func NewBuildTrackingLockID(buildID int) LockID
- func NewContainerCreatingLockID(containerID int) LockID
- func NewDatabaseMigrationLockID() LockID
- func NewPipelineSchedulingLockLockID(pipelineID int) LockID
- func NewResourceConfigCheckingLockID(resourceConfigID int) LockID
- func NewTaskLockID(taskName string) LockID
- func NewVolumeCreatingLockID(volumeID int) LockID
Constants ¶
View Source
const ( LockTypeResourceConfigChecking = iota LockTypeBuildTracking LockTypePipelineScheduling LockTypeBatch LockTypeVolumeCreating LockTypeContainerCreating LockTypeDatabaseMigration )
Variables ¶
View Source
var ErrLostLock = errors.New("lock was lost while held, possibly due to connection breakage")
Functions ¶
This section is empty.
Types ¶
type LockFactory ¶
func NewLockFactory ¶
func NewLockFactory(conn *sql.DB) LockFactory
func NewTestLockFactory ¶
func NewTestLockFactory(db LockDB) LockFactory
type LockID ¶
type LockID []int
func NewBuildTrackingLockID ¶
func NewDatabaseMigrationLockID ¶
func NewDatabaseMigrationLockID() LockID
func NewTaskLockID ¶
func NewVolumeCreatingLockID ¶
Click to show internal directories.
Click to hide internal directories.