Versions in this module Expand all Collapse all v0 v0.31.0 Nov 11, 2026 Changes in this version + var ErrAlreadyCommitted = errors.New("环节终态已被提交") + var ErrEmptyRef = errors.New("环节引用不完整") + type AlreadyCommittedError struct + Branch string + NewBranch string + NewStatus string + Prev record + PrevSeq uint64 + Ref Ref + Status string + func (e *AlreadyCommittedError) Error() string + func (e *AlreadyCommittedError) Unwrap() error + type Commit struct + Branch string + Ref Ref + Seq uint64 + Status string + type Guard struct + func NewGuard(isTerminal func(status string) bool) *Guard + func (g *Guard) Acquire(c Commit) (Lease, error) + func (g *Guard) Commit(c Commit) error + func (g *Guard) Committed() int + func (g *Guard) Release(c Commit) + func (g *Guard) ReleaseLease(l Lease) + func (g *Guard) Seed(c Commit) + func (g *Guard) Status(ref Ref) (status string, branch string, committed bool) + type Lease struct + Ref Ref + Token uint64 + type Ref struct + RunID string + Step string