Files
kopia/tests/robustness/errors.go
Jarek Kowalski 8a4ac4dec3 Upgraded linter to 1.43.0 (#1505)
* fixed new gocritic violations
* fixed new 'contextcheck' violations
* fixed 'gosec' warnings
* suppressed ireturn and varnamelen linters
* fixed tenv violations, enabled building robustness tests on arm64
* fixed remaining linux failures
* makefile: fixed 'lint-all' target when running on arm64
* linter: increase deadline
* disable nilnil linter - to be enabled in separate PR
2021-11-11 17:03:11 -08:00

31 lines
941 B
Go

//go:build darwin || (linux && amd64)
// +build darwin linux,amd64
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")
// ErrMetadataMissing is returned when the metadata can't be found.
ErrMetadataMissing = errors.New("metadata missing")
)