internal

package
v1.42.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArtifactIDFromDigest

func ArtifactIDFromDigest(input string) artifact.ID

func DeriveImageID added in v1.42.0

func DeriveImageID(alias source.Alias, metadata source.ImageMetadata) artifact.ID

DeriveImageID derives an artifact ID from the given image metadata. The order of data precedence is:

  1. prefer a digest of the raw container image manifest
  2. if no manifest digest is available, calculate a chain ID from the image layer metadata
  3. 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.

Jump to

Keyboard shortcuts

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