converter

package
v2.0.5 Latest Latest
Warning

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

Go to latest
Published: May 1, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert added in v2.0.5

func Convert(ctx context.Context, client converter.Client, dstRef, srcRef string, opts ...converter.Opt) (*images.Image, error)

func ZstdLayerConvertFunc

func ZstdLayerConvertFunc(options types.ImageConvertOptions) (converter.ConvertFunc, error)

ZstdLayerConvertFunc converts legacy tar.gz layers into zstd layers with the specified compression level.

Types

type ConvertedImageInfo

type ConvertedImageInfo struct {
	// Image is the reference of the converted image.
	// The reference is the image's name and digest concatenated with "@" (i.e. `<name>@<digest>`).
	Image string `json:"Image"`

	// ExtraImages is a set of converter-specific additional images (e.g. external TOC image of eStargz).
	// The reference format is the same as the "Image" field.
	ExtraImages []string `json:"ExtraImages"`
}

ConvertedImageInfo is information of the images created by a conversion.

Jump to

Keyboard shortcuts

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