Documentation ¶
Index ¶
- func CPUVariant() string
- func CheckImageRefPlatform(ctx context.Context, sysCtx *types.SystemContext, ...) error
- func DefaultPlatform() (*ggcrv1.Platform, error)
- func PlatformFromArch(a string) (*ggcrv1.Platform, error)
- func PlatformFromString(p string) (*ggcrv1.Platform, error)
- func SysCtxToPlatform(sysCtx *types.SystemContext) ggcrv1.Platform
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 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.
Click to show internal directories.
Click to hide internal directories.