package sbom
import "github.com/moby/buildkit/frontend/attestations/sbom"
Index ¶
Constants ¶
const ( CoreSBOMName = "sbom" ExtraSBOMPrefix = CoreSBOMName + "-" )
Functions ¶
func HasSBOM ¶
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 llb.ImageMetaResolver, scanner string) (Scanner, error)
Source Files ¶
- Version
- v0.11.2
- Published
- Jan 26, 2023
- Platform
- js/wasm
- Imports
- 11 packages
- Last checked
- 2 minutes ago –
Tools for package owners.