Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LockStack ¶ added in v0.89.2
func LockStack(stackName string)
LockStack acquires the per-stack scheduler/deployment lock for stackName. While held, scheduled runs and deployments for this specific stack are mutually exclusive. Different stacks do not block each other. If stackName is empty the call is a no-op.
func UnlockStack ¶ added in v0.89.2
func UnlockStack(stackName string)
UnlockStack releases the per-stack scheduler/deployment lock for stackName. If stackName is empty the call is a no-op.
Types ¶
type RepoLock ¶
type RepoLock struct {
// contains filtered or unexported fields
}
RepoLock represents a lock for a specific repository.
func GetRepoLock ¶
GetRepoLock retrieves or creates a RepoLock for the given repoName.
func (*RepoLock) Lock ¶
func (l *RepoLock) Lock()
Lock acquires the lock, blocking until it is available.
Click to show internal directories.
Click to hide internal directories.