imagehelpers

package
v2.3.7 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

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

func ExportDockerImage(ctx context.Context, dockerImageName string) (string, error)

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.

Jump to

Keyboard shortcuts

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