Documentation
¶
Index ¶
- func BuildReport(resultPtr *rego.ResultSet, configuration ValidationConfiguration) (string, error)
- func CloseEventChan(eventChan *chan e.Event)
- func CompileRego(regoUnit *generator.RegoUnit, eventChan *chan e.Event) (*rego.PreparedEvalQuery, error)
- func DialectInstance(report *types.ObjectMap, context *types.ObjectMap) []types.ObjectMap
- func Encode(data any) string
- func GenerateRego(profileText string, debug bool, eventChan *chan e.Event) (*generator.RegoUnit, error)
- func Index(json any) any
- func Normalize(json any) any
- func ProcessInput(jsonldText string, debug bool, receiver *chan e.Event) (any, error)
- func ProcessProfile(profileText string, debug bool, eventChan *chan e.Event) (*rego.PreparedEvalQuery, error)
- func Validate(profileText string, jsonldText string, debug bool, eventChan *chan e.Event) (string, error)
- func ValidateCompiled(compiledRegoPtr *rego.PreparedEvalQuery, jsonldText string, debug bool, ...) (string, error)
- func ValidateCompiledWithConfiguration(compiledRegoPtr *rego.PreparedEvalQuery, jsonldText string, debug bool, ...) (string, error)
- func ValidateWithConfiguration(profileText string, jsonldText string, debug bool, eventChan *chan e.Event, ...) (string, error)
- func ValidationReportNode(profileName string, results []any, conforms bool, dateCreated time.Time) types.ObjectMap
- type DefaultConfiguration
- type LocationIndex
- type TestConfiguration
- type ValidationConfiguration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildReport ¶
func BuildReport(resultPtr *rego.ResultSet, configuration ValidationConfiguration) (string, error)
func CloseEventChan ¶
func CompileRego ¶
func DialectInstance ¶
func GenerateRego ¶
func ProcessInput ¶
func ProcessProfile ¶
func ValidateCompiled ¶
func ValidateCompiledWithConfiguration ¶ added in v1.5.0
func ValidateCompiledWithConfiguration(compiledRegoPtr *rego.PreparedEvalQuery, jsonldText string, debug bool, eventChan *chan e.Event, configuration ValidationConfiguration) (string, error)
func ValidateWithConfiguration ¶ added in v1.5.0
Types ¶
type DefaultConfiguration ¶ added in v1.5.0
type DefaultConfiguration struct{}
func (DefaultConfiguration) CurrentTime ¶ added in v1.5.0
func (d DefaultConfiguration) CurrentTime() time.Time
type LocationIndex ¶
func (*LocationIndex) Location ¶
func (locIndex *LocationIndex) Location(id string) string
type TestConfiguration ¶ added in v1.5.0
type TestConfiguration struct{}
func (TestConfiguration) CurrentTime ¶ added in v1.5.0
func (d TestConfiguration) CurrentTime() time.Time
type ValidationConfiguration ¶ added in v1.5.0
Source Files
¶
Click to show internal directories.
Click to hide internal directories.