Documentation ¶
Overview ¶
Package cpe provides for handling Common Platform Enumeration (CPE) names.
Deprecated: This package is a re-export of "github.com/quay/claircore/toolkit/types/cpe". Users should migrate to that package.
Index ¶
Constants ¶
const ( Part = cpe.Part Vendor = cpe.Vendor Product = cpe.Product Version = cpe.Version Update = cpe.Update Edition = cpe.Edition Language = cpe.Language SwEdition = cpe.SwEdition TargetSW = cpe.TargetSW TargetHW = cpe.TargetHW Other = cpe.Other )
These are the valid Attributes, in CPE 2.3 binding order.
const ( ValueUnset = cpe.ValueUnset ValueAny = cpe.ValueAny ValueNA = cpe.ValueNA ValueSet = cpe.ValueSet )
These are the valid states for a wfn attribute's value.
const NumAttr = cpe.NumAttr
NumAttr is the number of attributes in a 2.3 WFN.
Variables ¶
var ErrUnset = cpe.ErrUnset
ErrUnset is returned from (WFN).Valid() if it is the zero value.
Functions ¶
This section is empty.
Types ¶
type WFN ¶
WFN is a well-formed name as defined by the Common Platform Enumeration (CPE) spec: https://nvlpubs.nist.gov/nistpubs/Legacy/IR/nistir7695.pdf
This package does not implement binding into URI form.
func MustUnbind ¶
MustUnbind calls Unbind on the provided string, but panics if any errors are encountered.
This is primarily useful for static data where any error is a programmer error.