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) DeleteData(path string) error Query(path string, value interface{}) (*QueryResult, error) }
Data defines the interface for pushing and querying data in OPA.
type Policies ¶
type Policies interface { InsertPolicy(id string, bs []byte) error DeletePolicy(id string) error ListPolicies() (*QueryResult, error) }
Policies defines the policy management interface in OPA.
type QueryResult ¶
type QueryResult struct { Explanation json.RawMessage `json:"explanation,omitempty"` Result json.RawMessage `json:"result"` Error map[string]interface{} `json:"error"` }
Click to show internal directories.
Click to hide internal directories.