Documentation
¶
Index ¶
- func GraphContainerFromSBOM(s *syftsbom.SBOM, manager sdk.PackageManager) (*sdk.GraphContainer, error)
- func IsBuiltin() bool
- type Detector
- func (d Detector) Applicable(ctx context.Context, req sdk.DetectionRequest) (bool, error)
- func (d Detector) Descriptor() sdk.DetectorDescriptor
- func (d Detector) PackageManagerSupport() []sdk.PackageManagerSupport
- func (d Detector) Ready() bool
- 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 GraphContainerFromSBOM ¶
func GraphContainerFromSBOM(s *syftsbom.SBOM, manager sdk.PackageManager) (*sdk.GraphContainer, error)
GraphContainerFromSBOM converts a Syft SBOM into one or more manifest-scoped graphs.
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 ¶
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) 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.
Click to show internal directories.
Click to hide internal directories.