Documentation ¶
Overview ¶
Package server contains the policy engine's server handlers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsWriteConflict ¶
IsWriteConflict returns true if the error indicates write conflict.
Types ¶
type Server ¶
Server represents an instance of OPA running in server mode.
func (*Server) Compiler ¶
Compiler returns the server's compiler.
The server's compiler contains the compiled versions of all modules added to the server as well as data structures for performing query analysis. This is intended to allow services to embed the OPA server while still relying on the topdown package for query evaluation.
type WriteConflictError ¶
type WriteConflictError struct {
// contains filtered or unexported fields
}
WriteConflictError represents an error condition raised if the caller attempts to modify a virtual document or create a document at a path that conflicts with an existing document.
func (WriteConflictError) Error ¶
func (err WriteConflictError) Error() string