parser

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: 7 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(bd *bundle.Bundle) error

Types

type Parser

type Parser interface {
	DumpCache() error
	GetRegistry() *collector.CtiRegistry
}

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 ParseBundle added in v0.15.0

func ParseBundle(bd *bundle.Bundle) (Parser, error)

func ParseFromPath added in v0.15.0

func ParseFromPath(fPath string) (Parser, error)

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

func ParseString added in v0.4.0

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

Jump to

Keyboard shortcuts

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