sbom

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

bom captures the internal data model of the SBOMs melange produces into a private, generalized bill of materials model (with relationship data) designed to be transcoded to specific formats.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

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

func NewGenerator

func NewGenerator() (*Generator, error)

func (*Generator) GenerateSBOM

func (g *Generator) GenerateSBOM(ctx context.Context, spec *Spec) error

GenerateSBOM runs the main SBOM generation process

type Options

type Options struct {
	ScanLicenses bool
	ScanFiles    bool
}

type Spec

type Spec struct {
	Path           string
	PackageName    string
	PackageVersion string
	License        string // Full SPDX license expression
	Copyright      string
	Namespace      string
	Arch           string

	Languages []string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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