diff --git a/state/state.go b/state/state.go index 747723e19..210eb62c8 100644 --- a/state/state.go +++ b/state/state.go @@ -40,3 +40,9 @@ type StateRefresher interface { type StatePersister interface { PersistState() error } + +// Locker is implemented to lock state during command execution. +type Locker interface { + Lock(reason string) error + Unlock() error +}