Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ArchOp ¶
type ArchOp uint
const ( OpEquals ArchOp // equals OpNotEquals // not equals OpPatternMatch // pattern match )
func (ArchOp) MarshalText ¶
func (*ArchOp) UnmarshalText ¶
type PackageKind ¶
type PackageKind uint
PackageKind indicates what kind of package is being described.
const ( // "Unknown" is the default value. UnknownPackage PackageKind = iota // unknown // A "source" package is software that must be compiled or otherwise // processed before it's ready to use. // // Conceptually, all "binary" packages come from a "source" package. A // single "source" package produces one or more other packages. // // It can be used to describe the set of packages produced from the source // package. SourcePackage // source // A "binary" package is compiled or otherwise ready-to-use software. // // It describes a set of files inside a container image. BinaryPackage // binary // A "layer" package is used to refer to a container layer itself. // // Conceptually, a "layer" package is a higher type that describes the // container image rather than the contents. LayerPackage // layer // An "ancestry" package is used to refer to a container layer and all // previous layers in an image. // // Conceptually, an "ancestry" package is a higher type that describes the // container image rather than the contents. AncestryPackage // ancestry )
func (PackageKind) MarshalText ¶
func (k PackageKind) MarshalText() (text []byte, err error)
func (PackageKind) String ¶
func (i PackageKind) String() string
func (*PackageKind) UnmarshalText ¶
func (k *PackageKind) UnmarshalText(text []byte) error
type Range ¶
Range is a half-open interval of two Versions.
In the usual notation, it is: [Lower, Upper)
type Version ¶
Version describes a revision of some sort that is ordered correctly within its "Kind".
Versions of different kinds do not have any sensible ordering.
func (*Version) Compare ¶
Compare returns an integer describing the relationship of two Versions.
The result will be 0 if a==b, -1 if a < b, and +1 if a > b. If the Versions are of different kinds, the Kinds will be compared lexographically.
func (*Version) MarshalText ¶
MarshalText implments encoding.TextMarshaler.
func (*Version) UnmarshalText ¶
UnmarshalText implments encoding.TextUnmarshaler.
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package cpe provides for handling Common Platform Enumeration (CPE) names.
|
Package cpe provides for handling Common Platform Enumeration (CPE) names. |
|
Package csaf provides functionality for handling Common Security Advisory Framework Version 2.0 documents: https://docs.oasis-open.org/csaf/csaf/v2.0/os/csaf-v2.0-os.html
|
Package csaf provides functionality for handling Common Security Advisory Framework Version 2.0 documents: https://docs.oasis-open.org/csaf/csaf/v2.0/os/csaf-v2.0-os.html |
|
Package cvss implements v2.0, v3.0, v3.1, and v4.0 CVSS vectors and scoring.
|
Package cvss implements v2.0, v3.0, v3.1, and v4.0 CVSS vectors and scoring. |
|
internal/cmd/revlookup
command
Revlookup is a small tool meant to be run via "go generate" to generate reverse-lookup tables for github.com/quay/claircore/toolkit/types/cvss.
|
Revlookup is a small tool meant to be run via "go generate" to generate reverse-lookup tables for github.com/quay/claircore/toolkit/types/cvss. |
|
internal/cmd/v4data
command
v4data is a helper program to generate the extra tables need for CVSS v4 score calculation.
|
v4data is a helper program to generate the extra tables need for CVSS v4 score calculation. |
Click to show internal directories.
Click to hide internal directories.