sbom

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultOptions = options.Options{
	OS: options.OSInfo{
		ID:      "alpine",
		Name:    "Alpine Linux",
		Version: "Unknown",
	},
	ImageInfo: options.ImageInfo{},
	FileName:  "sbom",
	Formats:   []string{"spdx", "cyclonedx"},
}

Functions

This section is empty.

Types

type SBOM

type SBOM struct {
	Generators map[string]generator.Generator

	Options options.Options
	// contains filtered or unexported fields
}

func New

func New() *SBOM

func NewWithWorkDir

func NewWithWorkDir(path string, a types.Architecture) *SBOM

NewWithWorkDir returns a new sbom object with a working dir preset

func (*SBOM) Generate

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

Generate creates the sboms according to the options set

func (*SBOM) ReadPackageIndex

func (s *SBOM) ReadPackageIndex() ([]*repository.Package, error)

ReadPackageIndex parses the package index in the working directory and returns a slice of the installed packages

func (*SBOM) ReadReleaseData

func (s *SBOM) ReadReleaseData() error

func (*SBOM) SetImplementation

func (s *SBOM) SetImplementation(impl sbomImplementation)

Directories

Path Synopsis
generatorfakes
Code generated by counterfeiter.
Code generated by counterfeiter.
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