gomod

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Detector

type Detector struct {
	Logger     *zap.Logger
	WorkingDir string
	Fallback   plugin.Detector
}

Detector resolves Go module dependency graphs by invoking the Go CLI.

func (Detector) Applicable

func (d Detector) Applicable(ctx context.Context, req plugin.DetectionRequest) (bool, error)

Applicable reports whether the target project contains a go.mod file.

func (Detector) Descriptor

func (d Detector) Descriptor() plugin.DetectorDescriptor

Descriptor describes the Go CLI-backed detector.

func (Detector) FallbackDetector

func (d Detector) FallbackDetector() plugin.Detector

FallbackDetector returns the configured fallback detector.

func (Detector) Install

Install prepares Go module dependencies before graph resolution.

func (Detector) PackageManagerSupport

func (d Detector) PackageManagerSupport() []plugin.PackageManagerSupport

PackageManagerSupport returns Go module package-manager discovery metadata.

func (Detector) Ready

Ready reports whether the Go CLI is available.

func (Detector) RemediationHints added in v0.20.1

RemediationHints provides Go-module-specific remediation guidance.

func (Detector) ResolveGraph

ResolveGraph resolves a Go module dependency graph for the scan engine.

Jump to

Keyboard shortcuts

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