Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Match ¶
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 specific value.
func SelectManifest ¶
func SelectManifest(ctx context.Context, src content.ReadOnlyStorage, root ocispec.Descriptor, p *ocispec.Platform) (ocispec.Descriptor, error)
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.
Click to show internal directories.
Click to hide internal directories.