package test
import "github.com/open-policy-agent/opa/v1/storage/inmem/test"
Index ¶
- func New() storage.Store
- func NewFromObject(x map[string]interface{}) storage.Store
- func NewFromObjectWithASTRead(x map[string]interface{}) storage.Store
Functions ¶
func New ¶
New returns an inmem store with some common options set: opt-out of write roundtripping.
func NewFromObject ¶
NewFromObject returns an inmem store from the passed object, with some common options set: opt-out of write roundtripping.
func NewFromObjectWithASTRead ¶
NewFromObjectWithASTRead returns an inmem store from the passed object, with round-trip on write disabled and AST values returned on read.
Source Files ¶
- Version
- v1.4.2 (latest)
- Published
- May 2, 2025
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 2 weeks ago –
Tools for package owners.