Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildValidationRequest ¶
BuildValidationRequest creates the payload for the invocation of the `validate` function. * `object`: instance of the object. Must be serializable to JSON using easyjson * `settings`: instance of policy settings. Must be serializable to JSON using easyjson
func BuildValidationRequestFromFixture ¶ added in v0.2.0
func BuildValidationRequestFromFixture(req_fixture string, settings easyjson.Marshaler) ([]byte, error)
BuildValidationRequestFromFixture creates the payload for the invocation of the `validate` function. * `req_fixture`: path to the json file with a recorded requst to evaluate * `settings`: instance of policy settings. Must be serializable to JSON using easyjson
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.