sbom

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

Generator wraps the internal SBOM tool, providing a simpler API that combines generation and serialization into a single call.

func NewGenerator

func NewGenerator() (*Generator, error)

NewGenerator creates a new SBOM generator.

func (*Generator) Generate

func (g *Generator) Generate(ctx context.Context, tarFile, outputFormat string) ([]byte, error)

Generate produces an SBOM from the given OCI tar file and serializes it in the requested format (e.g. "spdx-json").

Jump to

Keyboard shortcuts

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