Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArtifactIDFromDigest ¶
func DeriveImageID ¶ added in v1.42.0
DeriveImageID derives an artifact ID from the given image metadata. The order of data precedence is:
- prefer a digest of the raw container image manifest
- if no manifest digest is available, calculate a chain ID from the image layer metadata
- if no layer metadata is available, use the user input string
in all cases, if an alias is provided, it is additionally considered in the ID calculation. This allows for the same image to be scanned multiple times with different aliases and be considered logically different.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.