errors.go 799 B

12345678910111213141516171819
  1. // Copyright (c) 2021 Tulir Asokan
  2. //
  3. // This Source Code Form is subject to the terms of the Mozilla Public
  4. // License, v. 2.0. If a copy of the MPL was not distributed with this
  5. // file, You can obtain one at http://mozilla.org/MPL/2.0/.
  6. package appstate
  7. import "errors"
  8. // Errors that this package can return.
  9. var (
  10. ErrMissingPreviousSetValueOperation = errors.New("missing value MAC of previous SET operation")
  11. ErrMismatchingLTHash = errors.New("mismatching LTHash")
  12. ErrMismatchingPatchMAC = errors.New("mismatching patch MAC")
  13. ErrMismatchingContentMAC = errors.New("mismatching content MAC")
  14. ErrMismatchingIndexMAC = errors.New("mismatching index MAC")
  15. ErrKeyNotFound = errors.New("didn't find app state key")
  16. )