Documentation ¶
Index ¶
Constants ¶
View Source
const ( CategoryStrucutral category = "Structural" CategoryNTIAMiniumElements category = "NTIA-minimum-elements" CategorySemantic category = "Semantic" CategoryQuality category = "Quality" CategorySharing category = "Sharing" )
View Source
const EngineVersion = "4"
View Source
const MAX_SCORE float64 = 10.0
Variables ¶
View Source
var Categories = []string{string(CategoryNTIAMiniumElements), string(CategoryQuality), string(CategorySemantic), string(CategorySharing), string(CategoryStrucutral)}
View Source
var CriteriaArgMap = map[CriteriaArg]string{ DOCLICENCE: string(docShareLicense), COMPNORESTRICLICENCE: string(compWithRestrictedLicenses), COMPPRIMARYPURPOSE: string(compWithPrimaryPackages), COMPNODEPRECATLICENCE: string(compWithNoDepLicenses), COMPVALIDLICENCE: string(compWithValidLicenses), COMPCHECKSUMS: string(compWithChecksums), COMPLICENCE: string(compWithLicenses), DOCALLREQFILEDS: string(docWithAllRequiredFields), DOCTIMESTAMP: string(docWithTimestamp), DOCAUTHOR: string(docWithAuthors), DOCRELATIONSHIP: string(docWithRelations), COMPUNIQIDS: string(compWithUniqID), COMPVERSION: string(compWithVersion), COMPNAME: string(compWithNames), COMPSUPPLIERNAME: string(compSupplierName), SPECPARSABLE: string(specIsParsable), SPECFILEFORMAT: string(specFileFormat), SPECVERSION: string(specVersion), SBOMSPEC: string(spec), COMPANYVULNERABILITYID: string(compWithAnyLookupId), COMPMULTIVULNERABILITYID: string(compWithMultipleLookupId), DOCCREATORTOOL: string(docWithCreator), }
View Source
var CriteriaArgs = []string{ string(DOCLICENCE), string(COMPNORESTRICLICENCE), string(COMPPRIMARYPURPOSE), string(COMPNODEPRECATLICENCE), string(COMPVALIDLICENCE), string(COMPCHECKSUMS), string(COMPLICENCE), string(DOCALLREQFILEDS), string(DOCTIMESTAMP), string(DOCAUTHOR), string(DOCRELATIONSHIP), string(COMPUNIQIDS), string(COMPVERSION), string(COMPNAME), string(COMPSUPPLIERNAME), string(SPECPARSABLE), string(SPECFILEFORMAT), string(SPECVERSION), string(SBOMSPEC), string(COMPANYVULNERABILITYID), string(COMPMULTIVULNERABILITYID), string(DOCCREATORTOOL), }
Functions ¶
Types ¶
type CriteriaArg ¶
type CriteriaArg string
const ( DOCLICENCE CriteriaArg = "doc-licence" COMPNORESTRICLICENCE CriteriaArg = "comp-no-restric-licence" COMPPRIMARYPURPOSE CriteriaArg = "comp-primary-purpose" COMPNODEPRECATLICENCE CriteriaArg = "comp-no-deprecat-licence" COMPVALIDLICENCE CriteriaArg = "comp-valid-licence" COMPCHECKSUMS CriteriaArg = "comp-checksums" COMPLICENCE CriteriaArg = "comp-licence" DOCALLREQFILEDS CriteriaArg = "doc-all-req-fileds" DOCTIMESTAMP CriteriaArg = "doc-timestamp" DOCAUTHOR CriteriaArg = "doc-author" DOCRELATIONSHIP CriteriaArg = "doc-relationship" COMPUNIQIDS CriteriaArg = "comp-uniq-ids" COMPVERSION CriteriaArg = "comp-version" COMPNAME CriteriaArg = "comp-name" COMPSUPPLIERNAME CriteriaArg = "comp-supplier-name" SPECPARSABLE CriteriaArg = "spec-parsable" SPECFILEFORMAT CriteriaArg = "spec-file-format" SPECVERSION CriteriaArg = "spec-version" SBOMSPEC CriteriaArg = "sbom-spec" COMPANYVULNERABILITYID CriteriaArg = "comp-any-vulnerability-id" COMPMULTIVULNERABILITYID CriteriaArg = "comp-multi-vulnerability-id" DOCCREATORTOOL CriteriaArg = "doc-creator-tool" )
Click to show internal directories.
Click to hide internal directories.