scan

package
v0.38.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

type Request struct {
	DQLURL                 string
	ConfigURL              string
	Repository             string
	ModulePrefix           string
	APIPrefix              string
	Connectors             []string
	AllowedProvenanceKinds []string
	AllowedSourceRoots     []string
	UseGoModuleResolve     *bool
	UseGOPATHFallback      *bool
	StrictProvenance       *bool
}

Request defines input for DQL scan.

type Result

type Result struct {
	RuleName string
	Shape    *dqlshape.Document
	IR       *ir.Document
}

Result holds scanner output.

type Scanner

type Scanner struct{}

Scanner translates DQL to Datly route YAML in-memory.

func New

func New() *Scanner

func (*Scanner) Result

func (s *Scanner) Result(ruleName string, routeYAML []byte, dql string, req *Request) (*Result, error)

Result builds a scan Result from route YAML bytes. Exported so that bridge packages (e.g. testutil/shapeparity) can call it after running the legacy translator pipeline externally.

Jump to

Keyboard shortcuts

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