ociplatform

package
v4.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CPUVariant

func CPUVariant() string

func CheckImageRefPlatform

func CheckImageRefPlatform(ctx context.Context, sysCtx *types.SystemContext, imageRef types.ImageReference) error

CheckImageRefPlatform ensures that an image reference satisfies platform requirements in sysCtx

func DefaultPlatform

func DefaultPlatform() (*ggcrv1.Platform, error)

func PlatformFromArch

func PlatformFromArch(a string) (*ggcrv1.Platform, error)

func PlatformFromString

func PlatformFromString(p string) (*ggcrv1.Platform, error)

func SysCtxToPlatform

func SysCtxToPlatform(sysCtx *types.SystemContext) ggcrv1.Platform

SysCtxToPlatform translates the xxxChoice values in a containers/image types.SytemContext to a go-containerregistry v1.Platform.

Types

This section is empty.

Jump to

Keyboard shortcuts

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