sbom

package
v0.17.7 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Asset

type Asset struct {
	Path     string // Path where the artifact will be listed
	ReadFrom string // LocalPath to read the information
	Label    string // Label for the asset
}

type Options

type Options struct {
	ReleaseName   string
	Repo          string
	RepoDirectory string
	Tag           string     // Version Tag
	Format        SBOMFormat // "tag-value"  | "json"
	Assets        []Asset
}

type SBOM

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

func NewSBOM

func NewSBOM(opts *Options) *SBOM

NewGitHub returns a new GitHub instance.

func (*SBOM) Generate

func (s *SBOM) Generate() (string, error)

Generate creates an SBOM describing the release.

func (*SBOM) SetImplementation

func (s *SBOM) SetImplementation(i impl)

SetImplementation sets the implementation to handle file operations and SPDX.

type SBOMFormat

type SBOMFormat string
const (
	FormatJSON     SBOMFormat = "json"
	FormatTagValue SBOMFormat = "tag-value"
)

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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