parser

package
v0.6.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	MetadataCacheFile = ".cache.json"
)

Variables

This section is empty.

Functions

func BuildPackageCache added in v0.4.0

func BuildPackageCache(path string) error

Types

type Parser

type Parser struct {
	BaseDir string

	Registry *collector.CtiRegistry

	RAML *raml.RAML
}

TODO: Maybe need to initialize one package parser instance and reuse it for all the parsing This could possibly simplify caching strategy for external clients

func Parse added in v0.4.0

func Parse(path string) (*Parser, error)

Parse parses a single entity file Parser will take a path for example "/home/app-package/test.raml".

func ParsePackage added in v0.2.0

func ParsePackage(path string) (*Parser, error)

func ParseString added in v0.4.0

func ParseString(content string, fileName string, baseDir string) (*Parser, error)

func (*Parser) DumpCache added in v0.4.0

func (p *Parser) DumpCache() error

func (*Parser) Validate added in v0.4.0

func (p *Parser) Validate() []error

Jump to

Keyboard shortcuts

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