util

package
v1.29.3 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptConfig added in v1.27.0

func DecryptConfig(decryptionKeys []string) (*encconfig.DecryptConfig, error)

DecryptConfig translates decryptionKeys into a DescriptionConfig structure

func EncryptConfig added in v1.27.0

func EncryptConfig(encryptionKeys []string, encryptLayers []int) (*encconfig.EncryptConfig, *[]int, error)

EncryptConfig translates encryptionKeys into a EncriptionsConfig structure

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 GetFormat added in v1.27.0

func GetFormat(format string) (string, error)

GetFormat translates format string into either docker or OCI format constant

func GetTempDir added in v1.26.4

func GetTempDir() string

GetTempDir returns base for a temporary directory on host.

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