Documentation
¶
Index ¶
- func AttachGradlePositions(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(_ context.Context, req sdk.DetectionRequest) error
- func (d Detector) PackageManagerSupport() []sdk.PackageManagerSupport
- func (d Detector) Ready() bool
- func (d Detector) ResolveGraph(_ context.Context, req sdk.DetectionRequest) (sdk.DetectionResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttachGradlePositions ¶
AttachGradlePositions wires gradle build/lock file line numbers into a gradle-resolved graph.
Types ¶
type Detector ¶
Detector resolves Gradle dependency graphs using the Gradle wrapper when present, or a globally installed Gradle binary otherwise.
func (Detector) Applicable ¶
Applicable returns true when the project looks like a Gradle build.
func (Detector) Descriptor ¶
func (d Detector) Descriptor() sdk.DetectorDescriptor
Descriptor describes the Gradle graph detector.
func (Detector) FallbackDetector ¶
FallbackDetector returns the configured fallback detector.
func (Detector) PackageManagerSupport ¶
func (d Detector) PackageManagerSupport() []sdk.PackageManagerSupport
PackageManagerSupport returns Gradle package-manager discovery metadata.
func (Detector) Ready ¶
Ready returns true if a Gradle wrapper is present for the project or gradle is on PATH.
func (Detector) ResolveGraph ¶
func (d Detector) ResolveGraph(_ context.Context, req sdk.DetectionRequest) (sdk.DetectionResult, error)
ResolveGraph resolves a Gradle dependency graph for the scan engine.
Click to show internal directories.
Click to hide internal directories.