Documentation ¶
Index ¶
- Constants
- Variables
- type CELDefinition
- type CELExpression
- type CustomKeyCELDefinitionCompiler
- type CustomKeyCELDefinitionSchema
- type CustomKeyRegoDefinitionCompiler
- type CustomKeyRegoDefinitionSchema
- type CustomKeyRule101Compiler
- type CustomKeyRule101Schema
- type CustomKeyRule81Compiler
- type CustomKeyRule81Schema
- type CustomKeyRule89Compiler
- type CustomKeyRule89Schema
- type Limits
- type RegoDefinition
- type Requests
- type Resources
- type Rules101
Constants ¶
View Source
const CELDefinitionCustomKey = "CELDefinition"
View Source
const RegoDefinitionCustomKey = "regoDefinition"
Variables ¶
View Source
var CustomKeyCELRule = jsonschema.MustCompileString("customKeyCELDefinition.json", `{
"properties" : {
"CELDefinition": {
"type": "array"
}
}
}`)
View Source
var CustomKeyRegoRule = jsonschema.MustCompileString("customKeyRegoDefinition.json", `{
"properties" : {
"regoDefinition": {
"type": "object"
}
}
}`)
View Source
var CustomKeyRule101 = jsonschema.MustCompileString("customKeyRule101.json", `{
"properties" : {
"customKeyRule101": {
"type": "string"
}
}
}`)
View Source
var CustomKeyRule81 = jsonschema.MustCompileString("customKeyRule81.json", `{
"properties" : {
"customKeyRule81": {
"type": "string"
}
}
}`)
View Source
var CustomKeyRule89 = jsonschema.MustCompileString("customKeyRule89.json", `{
"properties" : {
"customKeyRule89": {
"type": "string"
}
}
}`)
View Source
var CustomKeyValidationErrorKeyPath = "customKeyValidationErrorKeyPath"
Functions ¶
This section is empty.
Types ¶
type CELDefinition ¶ added in v1.9.19
type CELDefinition struct {
CELExpressions []CELExpression
}
type CELExpression ¶ added in v1.9.19
type CELExpression struct {
Expression string `json:"expression"`
}
type CustomKeyCELDefinitionCompiler ¶ added in v1.9.19
type CustomKeyCELDefinitionCompiler struct{}
func (CustomKeyCELDefinitionCompiler) Compile ¶ added in v1.9.19
func (CustomKeyCELDefinitionCompiler) Compile(ctx jsonschema.CompilerContext, m map[string]interface{}) (jsonschema.ExtSchema, error)
type CustomKeyCELDefinitionSchema ¶ added in v1.9.19
type CustomKeyCELDefinitionSchema []interface{}
func (CustomKeyCELDefinitionSchema) Validate ¶ added in v1.9.19
func (customKeyCELDefinitionSchema CustomKeyCELDefinitionSchema) Validate(ctx jsonschema.ValidationContext, dataValue interface{}) error
type CustomKeyRegoDefinitionCompiler ¶ added in v1.8.41
type CustomKeyRegoDefinitionCompiler struct{}
func (CustomKeyRegoDefinitionCompiler) Compile ¶ added in v1.8.41
func (CustomKeyRegoDefinitionCompiler) Compile(ctx jsonschema.CompilerContext, m map[string]interface{}) (jsonschema.ExtSchema, error)
type CustomKeyRegoDefinitionSchema ¶ added in v1.8.41
type CustomKeyRegoDefinitionSchema map[string]interface{}
func (CustomKeyRegoDefinitionSchema) Validate ¶ added in v1.8.41
func (customKeyRegoDefinitionSchema CustomKeyRegoDefinitionSchema) Validate(ctx jsonschema.ValidationContext, dataValue interface{}) error
type CustomKeyRule101Compiler ¶ added in v1.8.24
type CustomKeyRule101Compiler struct{}
func (CustomKeyRule101Compiler) Compile ¶ added in v1.8.24
func (CustomKeyRule101Compiler) Compile(ctx jsonschema.CompilerContext, m map[string]interface{}) (jsonschema.ExtSchema, error)
type CustomKeyRule101Schema ¶ added in v1.8.24
type CustomKeyRule101Schema map[string]interface{}
func (CustomKeyRule101Schema) Validate ¶ added in v1.8.24
func (s CustomKeyRule101Schema) Validate(ctx jsonschema.ValidationContext, dataValue interface{}) error
type CustomKeyRule81Compiler ¶
type CustomKeyRule81Compiler struct{}
func (CustomKeyRule81Compiler) Compile ¶
func (CustomKeyRule81Compiler) Compile(ctx jsonschema.CompilerContext, m map[string]interface{}) (jsonschema.ExtSchema, error)
type CustomKeyRule81Schema ¶
type CustomKeyRule81Schema map[string]interface{}
func (CustomKeyRule81Schema) Validate ¶
func (s CustomKeyRule81Schema) Validate(ctx jsonschema.ValidationContext, dataValue interface{}) error
type CustomKeyRule89Compiler ¶
type CustomKeyRule89Compiler struct{}
func (CustomKeyRule89Compiler) Compile ¶
func (CustomKeyRule89Compiler) Compile(ctx jsonschema.CompilerContext, m map[string]interface{}) (jsonschema.ExtSchema, error)
type CustomKeyRule89Schema ¶
type CustomKeyRule89Schema map[string]interface{}
func (CustomKeyRule89Schema) Validate ¶
func (s CustomKeyRule89Schema) Validate(ctx jsonschema.ValidationContext, dataValue interface{}) error
type RegoDefinition ¶ added in v1.8.41
Click to show internal directories.
Click to hide internal directories.