Help us shape the future of Go! Take the 2026 Go Developer Survey

verify

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VerifySBOM

func VerifySBOM(ctx context.Context, pluginName, version string, opts SBOMCheckOptions) error

VerifySBOM downloads and validates the SBOM for a plugin release. Returns nil if SBOM is valid, absent, or check is skipped/unreachable. Returns error only when a response WAS obtained and it fails schema validation — i.e. something claiming to be an SBOM is actually malformed, which is the one case that indicates real tampering or corruption rather than mere absence.

Types

type SBOMCheckOptions

type SBOMCheckOptions struct {
	SkipCheck bool   // true when this plugin's SBOM cannot live at the lookup source
	Version   string // plugin version to verify

	// SkipReason overrides the logged reason for SkipCheck. Defaults to the
	// air-gapped-install message when empty, so existing callers (only the
	// --skip-sbom-check flag) are unaffected.
	SkipReason string
}

SBOMCheckOptions controls SBOM verification behavior.

Jump to

Keyboard shortcuts

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