Documentation
¶
Index ¶
- func AttachPomPositions(g *sdk.Graph, projectDir string)
- type Detector
- func (d Detector) Applicable(ctx context.Context, req sdk.DetectionRequest) (bool, error)
- func (d Detector) Descriptor() sdk.DetectorDescriptor
- func (d Detector) FallbackDetector() sdk.Detector
- func (d Detector) Install(ctx context.Context, req sdk.DetectionRequest) error
- func (d Detector) PackageManagerSupport() []sdk.PackageManagerSupport
- func (d Detector) Ready(ctx context.Context, req sdk.DetectionRequest) error
- func (d Detector) ResolveGraph(ctx context.Context, req sdk.DetectionRequest) (sdk.DetectionResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttachPomPositions ¶
AttachPomPositions wires pom.xml line numbers into a maven graph.
Types ¶
type Detector ¶
Detector resolves dependency graphs by invoking a Maven wrapper or Maven itself.
func (Detector) Applicable ¶
Applicable reports whether the project looks like a Maven project.
func (Detector) Descriptor ¶
func (d Detector) Descriptor() sdk.DetectorDescriptor
Descriptor describes the Maven graph detector.
func (Detector) FallbackDetector ¶
FallbackDetector returns the configured fallback detector.
func (Detector) PackageManagerSupport ¶
func (d Detector) PackageManagerSupport() []sdk.PackageManagerSupport
PackageManagerSupport returns Maven package-manager discovery metadata.
func (Detector) Ready ¶
Ready reports whether a Maven wrapper is present or Maven is installed and a usable Java runtime is available for the request's working directory.
func (Detector) ResolveGraph ¶
func (d Detector) ResolveGraph(ctx context.Context, req sdk.DetectionRequest) (sdk.DetectionResult, error)
ResolveGraph resolves a Maven dependency graph for the scan engine.
Click to show internal directories.
Click to hide internal directories.