jsonSchemaValidator

package
v1.8.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 29, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CustomKeyRule81 = jsonschema.MustCompileString("customKeyRule81.json", `{
	"properties" : {
		"customKeyRule81": {
			"type": "string"
		}
	}
}`)
View Source
var CustomKeyRule89 = jsonschema.MustCompileString("customKeyRule89.json", `{
	"properties" : {
		"customKeyRule89": {
			"type": "string"
		}
	}
}`)

Functions

This section is empty.

Types

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 Limits

type Limits struct {
	CPU    string `json:"cpu"`
	Memory string `json:"memory"`
}

type Requests

type Requests struct {
	CPU    string `json:"cpu"`
	Memory string `json:"memory"`
}

type Resources

type Resources struct {
	Requests Requests `json:"requests"`
	Limits   Limits   `json:"limits"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL