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.
func MakeDenyObject ¶
func MakeDenyObject(id, kind, name, namespace, message string, patches []types.PatchOperation) types.Deny
MakeDenyObject is helped menthod to make deny object
Types ¶
type Client ¶
Client defines the OPA client interface.
func NewFromFlags ¶
func NewFromFlags() Client
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.
type FakeOPA ¶
type FakeOPA struct {
// contains filtered or unexported fields
}
FakeOPA is a OPA mock used for unit testing
Click to show internal directories.
Click to hide internal directories.