Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsUndefinedErr ¶
IsUndefinedErr returns true if the err represents an undefined result from OPA.
Types ¶
type Data ¶
type Data interface { Prefix(path string) Data PatchData(path string, op string, value *interface{}) error PutData(path string, value interface{}) error PostData(path string, value interface{}) (json.RawMessage, error) }
Data defines the interface for pushing and querying data in OPA.
type Error ¶
type Error struct { Code string `json:"code"` Message string `json:"message"` Errors json.RawMessage `json:"errors,omitempty"` }
Error contains the standard error fields returned by OPA.
Click to show internal directories.
Click to hide internal directories.