conversion

package
v1.3.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SbomToDepGraphs

func SbomToDepGraphs(
	ctx context.Context,
	sbom io.Reader,
	metadata *Metadata,
	snykClient *snykclient.SnykClient,
	log logger.Logger,
	remoteRepoURL string,
	forceSingleGraph bool,
) ([]*depgraph.DepGraph, error)

Types

type Metadata added in v0.32.3

type Metadata struct {
	PackageManager string
	Name           string // Project root name
	Version        string // Project root version
}

Data used to construct an empty dep-graph, in the case where we have a valid SBOM but no dep-graphs are returned from the conversion endpoint. This can occur, for instance, in a workspace with no dependencies.

Jump to

Keyboard shortcuts

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