generate

package
v1.7.0 Latest Latest
Warning

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

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

Documentation

Overview

Package generate exposes cyclonedx-gomod's SBOM generation capabilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator interface {
	Generate() (*cdx.BOM, error)
}

Generator is the interface that provides abstraction for multiple BOM generation strategies.

Generators MUST only consider facts. Results MUST be reproducible. The returned BOM MUST NOT include any of the following elements:

  • SerialNumber
  • Metadata.Timestamp
  • Metadata.Tools
  • Metadata.Authors
  • Metadata.Manufacture
  • Metadata.Supplier
  • Metadata.Licenses

It is the responsibility of the caller to ensure that these elements are set according to their context and use case.

At the very least, callers SHOULD set the SerialNumber and Metadata.Timestamp elements before publishing or forwarding the generated BOM.

Directories

Path Synopsis
Package app provides the functionality to generate SBOMs for applications.
Package app provides the functionality to generate SBOMs for applications.
Package bin provides the functionality to generate SBOMs for binaries.
Package bin provides the functionality to generate SBOMs for binaries.
Package mod provides the functionality to generate SBOMs for modules.
Package mod provides the functionality to generate SBOMs for modules.

Jump to

Keyboard shortcuts

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