util

package
v1.32.2 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExportFromReader added in v1.26.0

func ExportFromReader(input io.Reader, opts define.BuildOutputOption) error

ExportFromReader reads bytes from given reader and exports to external tar, directory or stdout.

func LookupImage

func LookupImage(ctx *types.SystemContext, store storage.Store, image string) (*libimage.Image, error)

LookupImage returns *Image to corresponding imagename or id

func NormalizePlatform added in v1.28.0

func NormalizePlatform(platform v1.Platform) v1.Platform

NormalizePlatform validates and translate the platform to the canonical value.

For example, if "Aarch64" is encountered, we change it to "arm64" or if "x86_64" is encountered, it becomes "amd64".

Wrapper around libimage.NormalizePlatform to return and consume v1.Platform instead of independent os, arch and variant.

Types

This section is empty.

Jump to

Keyboard shortcuts

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