common

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package common provides shared constants, utilities, and common functionality used across the sbomqs application.

Index

Constants

View Source
const (
	// SBOM format and specification types
	FormatSPDX      = "spdx"
	FormatCycloneDX = "cyclonedx"
	FormatJSON      = "json"
	FormatXML       = "xml"
	FormatYAML      = "yaml"
	FormatYML       = "yml"
	FormatTagValue  = "tag-value"
	FormatText      = "text"

	// Report types
	ReportBasic    = "basic"
	ReportDetailed = "detailed"

	// SBOM spec versions
	Version14 = "1.4"
	Version15 = "1.5"
	Version16 = "1.6"

	// Score thresholds
	ScorePerfect  = 100.0
	ScoreGood     = 80.0
	ScoreFair     = 60.0
	ScorePoor     = 40.0
	ScoreVeryPoor = 20.0

	// Common field names
	FieldName         = "name"
	FieldVersion      = "version"
	FieldSupplier     = "supplier"
	FieldAuthor       = "author"
	FieldLicense      = "license"
	FieldChecksum     = "checksum"
	FieldTimestamp    = "timestamp"
	FieldComponent    = "component"
	FieldDependency   = "dependency"
	FieldRelationship = "relationship"
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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