platform

package
v2.0.0-...-9cac419 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Match

func Match(got *ocispec.Platform, want *ocispec.Platform) bool

Match checks whether the current platform matches the target platform. Match will return true if all of the following conditions are met.

  • Architecture and OS exactly match.
  • Variant and OSVersion exactly match if target platform provided.
  • OSFeatures of the target platform are the subsets of the OSFeatures array of the current platform.

Note: Variant, OSVersion and OSFeatures are optional fields, will skip the comparison if the target platform does not provide specfic value.

func SelectManifest

SelectManifest implements platform filter and returns the descriptor of the first matched manifest if the root is a manifest list. If the root is a manifest, then return the root descriptor if platform matches.

Types

This section is empty.

Jump to

Keyboard shortcuts

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