Documentation ¶
Index ¶
- Constants
- type CtiValidator
- func (v *CtiValidator) AddEntities(entities cti.Entities) error
- func (v *CtiValidator) FindInheritedAnnotation(id string, key cti.GJsonPath, predicate func(*cti.Annotations) bool) *cti.Annotations
- func (v *CtiValidator) GetMergedSchema(id string) (map[string]interface{}, error)
- func (v *CtiValidator) LoadFromRegistry(entities *collector.CtiRegistry)
- func (v *CtiValidator) Reset()
- func (v *CtiValidator) Validate(current *cti.Entity) error
- func (v *CtiValidator) ValidateAll() error
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) ValidateAll ¶
func (v *CtiValidator) ValidateAll() error
Click to show internal directories.
Click to hide internal directories.