validator

package
v0.23.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TrueStr = "true"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CtiValidator

type CtiValidator struct {
	// contains filtered or unexported fields
}

func MakeCtiValidator

func MakeCtiValidator() *CtiValidator

func (*CtiValidator) AddEntities added in v0.2.0

func (v *CtiValidator) AddEntities(entities cti.Entities) error

func (*CtiValidator) FindInheritedAnnotation

func (v *CtiValidator) FindInheritedAnnotation(id string, key cti.GJsonPath, predicate func(*cti.Annotations) bool) *cti.Annotations

func (*CtiValidator) GetMergedSchema

func (v *CtiValidator) GetMergedSchema(id string) (map[string]interface{}, error)

func (*CtiValidator) LoadFromRegistry added in v0.8.0

func (v *CtiValidator) LoadFromRegistry(entities *collector.CtiRegistry)

func (*CtiValidator) Reset

func (v *CtiValidator) Reset()

func (*CtiValidator) Validate

func (v *CtiValidator) Validate(current *cti.Entity) error

func (*CtiValidator) ValidateAll

func (v *CtiValidator) ValidateAll() error

Jump to

Keyboard shortcuts

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