Documentation
¶
Overview ¶
Package imagehelpers provides helper functions for working with container images.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildImageMetadata ¶
func BuildImageMetadata(scanResults *results.ScanResults) *models.ImageMetadata
func ExportDockerImage ¶
ExportDockerImage will execute the docker binary to export an image to a temporary file in the tarball OCI format.
If ExportDockerImage does not error, the temporary file needs to be cleaned up by the caller, otherwise, it will be cleaned automatically by this function.
ExportDockerImage will first try to locate the image locally, and if not found, attempt to pull the image from the docker registry.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.