conversion

package
v1.26.0 Latest Latest
Warning

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

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

Documentation

Overview

Package conversion defines the public SBOM-to-depgraph conversion interface and supporting types. Consumers implement this interface to inject their own conversion strategy into ecosystem plugins.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConvertSBOMOptions

type ConvertSBOMOptions struct {
	RemoteRepoURL    string
	ForceSingleGraph bool
}

ConvertSBOMOptions contains conversion settings that may be used by converter implementations.

type SBOMConverter

type SBOMConverter interface {
	ConvertSBOM(
		ctx context.Context,
		sbom io.Reader,
		options ConvertSBOMOptions,
	) ([]*depgraph.DepGraph, []Warning, error)
}

SBOMConverter converts a CycloneDX SBOM into one or more dep-graphs.

type Warning

type Warning struct {
	Type   string
	BOMRef string
	Msg    string
}

Warning is a warning surfaced during SBOM-to-depgraph conversion. It is implementation-agnostic; each implementation translates its upstream warning type (e.g. snykclient.ConversionWarning) into this shared shape.

Jump to

Keyboard shortcuts

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