Documentation ¶
Index ¶
- func DecryptConfig(decryptionKeys []string) (*encconfig.DecryptConfig, error)
- func EncryptConfig(encryptionKeys []string, encryptLayers []int) (*encconfig.EncryptConfig, *[]int, error)
- func ExportFromReader(input io.Reader, opts define.BuildOutputOption) error
- func GetFormat(format string) (string, error)
- func GetTempDir() string
- func LookupImage(ctx *types.SystemContext, store storage.Store, image string) (*libimage.Image, error)
- func NormalizePlatform(platform v1.Platform) v1.Platform
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
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
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.