Documentation
¶
Index ¶
- Variables
- func New() storage.Store
- func New2(ctx context.Context, logger logging.Logger, prom prometheus.Registerer, ...) (storage.Store, error)
- func NewFromObject(data interface{}) storage.Store
- func WriteUnchecked(ctx context.Context, store storage.Store, op storage.PatchOp, ...) error
- func WriteUncheckedTxn(ctx context.Context, store storage.Store, txn storage.Transaction, ...) error
- type BJSONReader
- type DataPlugins
- type Error
- type Options
- type StoreOptions
- type WriterUnchecked
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrReadsNotSupported = &Error{Code: readsNotSupportedErr}
ErrReadsNotSupported indicates the caller attempted to perform a read against a store at a location that does not support them.
Functions ¶
func NewFromObject ¶
NewFromObject returns a new in-memory store from the supplied data object.
func WriteUnchecked ¶
func WriteUnchecked(ctx context.Context, store storage.Store, op storage.PatchOp, path storage.Path, value interface{}) error
WriteUnchecked is a convenience function to invoke the write unchecked. It will create a new Transaction to perform the write with, and clean up after itself
Types ¶
type BJSONReader ¶
type DataPlugins ¶
type Options ¶
type Options struct {
Stores []StoreOptions
}
type StoreOptions ¶
type StoreOptions struct {
Paths [][2]storage.Path // List of (base path, complete path) the attached storage handles.
New func(ctx context.Context, logger logging.Logger, prom prometheus.Registerer, opts interface{}) (storage.Store, error)
Options interface{}
}
StoreOptions stores the configuration options for the attached store.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package errors contains reusable error-related code for the storage layer.
|
Package errors contains reusable error-related code for the storage layer. |
|
Package inmem implements an in-memory version of the policy engine's storage layer.
|
Package inmem implements an in-memory version of the policy engine's storage layer. |
|
Package merge contains helpers to merge data structures frequently encountered in OPA.
|
Package merge contains helpers to merge data structures frequently encountered in OPA. |
|
Package ptr provides utilities for pointer operations using storage layer paths.
|
Package ptr provides utilities for pointer operations using storage layer paths. |
|
see marker below
|
see marker below |
Click to show internal directories.
Click to hide internal directories.