sbom

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 12 Imported by: 4

Documentation

Index

Constants

View Source
const (
	CoreSBOMName    = "sbom"
	ExtraSBOMPrefix = CoreSBOMName + "-"
)

Variables

This section is empty.

Functions

func HasSBOM

func HasSBOM[T comparable](res *result.Result[T]) bool

Types

type Scanner

type Scanner func(ctx context.Context, name string, ref llb.State, extras map[string]llb.State, opts ...llb.ConstraintsOpt) (result.Attestation[*llb.State], error)

Scanner is a function type for scanning the contents of a state and returning a new attestation and state representing the scan results.

A scanner is designed a scan a single state, however, additional states can also be attached, for attaching additional information, such as scans of build-contexts or multi-stage builds. Handling these separately allows the scanner to optionally ignore these or to mark them as such in the attestation.

func CreateSBOMScanner

func CreateSBOMScanner(ctx context.Context, resolver sourceresolver.MetaResolver, scanner string, resolveOpt sourceresolver.Opt, params map[string]string) (Scanner, error)

Jump to

Keyboard shortcuts

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