compliance

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SBOM_SPEC = iota
	SBOM_SPEC_VERSION
	SBOM_BUILD
	SBOM_DEPTH
	SBOM_CREATOR
	SBOM_TIMESTAMP
	SBOM_COMPONENTS
	SBOM_URI
	COMP_CREATOR
	COMP_NAME
	COMP_VERSION
	COMP_HASH
	COMP_SOURCE_CODE_URL
	COMP_DOWNLOAD_URL
	COMP_OTHER_UNIQ_IDS
	COMP_SOURCE_HASH
	COMP_LICENSE
	COMP_DEPTH
)
View Source
const CRA_REPORT = "CRA"
View Source
const NTIA_REPORT = "NTIA"

Variables

This section is empty.

Functions

func ComplianceResult

func ComplianceResult(ctx context.Context, doc sbom.Document, reportType, fileName, outFormat string) error

Types

type Summary

type Summary struct {
	TotalScore         float64 `json:"total_score"`
	MaxScore           float64 `json:"max_score"`
	TotalRequiredScore float64 `json:"required_elements_score"`
	TotalOptionalScore float64 `json:"optional_elements_score"`
}

Jump to

Keyboard shortcuts

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