You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

lock.go 314 B

123456789101112131415161718
  1. package lock
  2. import (
  3. "code.gitea.io/gitea/models"
  4. )
  5. type LockContext struct {
  6. Repo *models.Repository
  7. DisplayJobName string
  8. User *models.User
  9. LockedList []Lock
  10. }
  11. type Lock interface {
  12. IsMatch(ctx *LockContext) bool
  13. Lock(ctx *LockContext) string
  14. Unlock(ctx *LockContext) error
  15. }