collector

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnnotationsCollector

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

func NewAnnotationsCollector

func NewAnnotationsCollector() *AnnotationsCollector

func (*AnnotationsCollector) Collect

func (c *AnnotationsCollector) Collect(s raml.Shape) map[cti.GJsonPath]cti.Annotations

func (*AnnotationsCollector) Visit

func (c *AnnotationsCollector) Visit(ctx string, s raml.Shape)

func (*AnnotationsCollector) VisitArrayShape

func (c *AnnotationsCollector) VisitArrayShape(ctx string, s *raml.ArrayShape) any

func (*AnnotationsCollector) VisitObjectShape

func (c *AnnotationsCollector) VisitObjectShape(ctx string, s *raml.ObjectShape) any

func (*AnnotationsCollector) VisitUnionShape

func (c *AnnotationsCollector) VisitUnionShape(ctx string, s *raml.UnionShape) any

type Collector

type Collector struct {
	Registry *CtiRegistry
	// contains filtered or unexported fields
}

func New added in v0.4.0

func New(r *raml.RAML, baseDir string) *Collector

func (*Collector) Collect added in v0.4.0

func (c *Collector) Collect() error

func (*Collector) MakeCtiInstanceFromExtension

func (c *Collector) MakeCtiInstanceFromExtension(id string, definedBy *raml.ArrayShape, values map[string]interface{}, valuesLocation string) *cti.Entity

func (*Collector) MakeCtiTypeFromShape

func (c *Collector) MakeCtiTypeFromShape(id string, shape *raml.ObjectShape) (*cti.Entity, error)

type CtiRegistry

type CtiRegistry struct {
	Types            cti.EntitiesMap
	Instances        cti.EntitiesMap
	FragmentEntities map[string]cti.Entities
	Total            cti.Entities
	TotalIndex       cti.EntitiesMap
}

func (*CtiRegistry) Clone added in v0.8.0

func (r *CtiRegistry) Clone() *CtiRegistry

Jump to

Keyboard shortcuts

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