mirror of
https://github.com/kopia/kopia.git
synced 2026-05-16 10:44:40 -04:00
Add metadata R/W locking for asynchronous accesses to robustness engine metadata. Remove the index from the Store interface and maintain it only in Checker, where it's used.
25 lines
750 B
Go
25 lines
750 B
Go
package robustness
|
|
|
|
import (
|
|
"errors"
|
|
"fmt"
|
|
)
|
|
|
|
var (
|
|
// ErrNoOp is thrown when an action could not do anything useful.
|
|
ErrNoOp = fmt.Errorf("no-op")
|
|
|
|
// ErrCannotPerformIO is returned if the engine determines there is not enough space
|
|
// to write files.
|
|
ErrCannotPerformIO = fmt.Errorf("cannot perform i/o")
|
|
|
|
// ErrNoActionPicked is returned if a random action could not be selected.
|
|
ErrNoActionPicked = errors.New("unable to pick an action with the action control options provided")
|
|
|
|
// ErrInvalidOption is returned if an option value is invalid or missing.
|
|
ErrInvalidOption = errors.New("invalid option setting")
|
|
|
|
// ErrKeyNotFound is returned when the store can't find the key provided.
|
|
ErrKeyNotFound = errors.New("key not found")
|
|
)
|