syft

package
v0.15.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GraphContainerFromSBOM

func GraphContainerFromSBOM(s *syftsbom.SBOM, manager sdk.PackageManager) (*sdk.GraphContainer, error)

GraphContainerFromSBOM converts a Syft SBOM into one or more manifest-scoped graphs.

func IsBuiltin

func IsBuiltin() bool

IsBuiltin reports whether the Syft detector is compiled with the Syft library.

Types

type Detector

type Detector struct {
	Logger              *zap.Logger
	WorkingDir          string
	SupportedEcosystems []sdk.Ecosystem
	SupportedManagers   []sdk.PackageManager
}

Detector resolves dependency graphs through the Syft Go library (builtin) or the syft CLI binary (external).

func (Detector) Applicable

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

Applicable reports whether Syft should run for the requested project.

func (Detector) Descriptor

func (d Detector) Descriptor() sdk.DetectorDescriptor

Descriptor describes the Syft-backed detector.

func (Detector) PackageManagerSupport

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

PackageManagerSupport returns Syft package-manager discovery metadata.

func (Detector) Ready

func (d Detector) Ready() bool

Ready reports whether the detector is ready to run.

func (Detector) ResolveGraph

func (d Detector) ResolveGraph(ctx context.Context, req sdk.DetectionRequest) (sdk.DetectionResult, error)

ResolveGraph resolves a dependency graph by invoking the Syft Go library.

Jump to

Keyboard shortcuts

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