package errors
import "github.com/open-policy-agent/opa/storage/internal/errors"
Package errors contains reusable error-related code for the storage layer.
Index ¶
- Constants
- func NewNotFoundError(path storage.Path) *storage.Error
- func NewNotFoundErrorWithHint(path storage.Path, hint string) *storage.Error
- func NewNotFoundErrorf(f string, a ...interface{}) *storage.Error
- func NewWriteConflictError(p storage.Path) *storage.Error
Constants ¶
const ArrayIndexTypeMsg = "array index must be integer"
const DoesNotExistMsg = "document does not exist"
const OutOfRangeMsg = "array index out of range"
Functions ¶
func NewNotFoundError ¶
func NewNotFoundErrorWithHint ¶
func NewNotFoundErrorf ¶
func NewWriteConflictError ¶
Source Files ¶
- Version
- v0.67.0
- Published
- Jul 25, 2024
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 50 minutes ago –
Tools for package owners.