admin: add plugin lock coordination

This commit is contained in:
Chris Lu committed 2026-03-02 13:29:16 -08:00
1 parent 2644816692
commit 1e0003e283
6 files changed
+165

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
package plugin
// LockManager provides a shared exclusive lock for admin-managed detection/execution.
// Acquire returns a release function that must be called when the protected work finishes.
type LockManager interface {
Acquire(reason string) (release func(), err error)
}