Documentation
¶
Index ¶
- Constants
- func AppendOSFeatureVariants(platformz []ocispec.Platform, features ...string) []ocispec.Platform
- func CanExecProbably(ss ...string) (bool, error)
- func IgnoreOSFeaturesMatcher(mc platforms.MatchComparer, features ...string) platforms.MatchComparer
- func LayerDescs(ctx context.Context, provider content.Provider, imageTarget ocispec.Descriptor, ...) ([]ocispec.Descriptor, error)
- func NewMatchComparer(all bool, ss []string) (platforms.MatchComparer, error)
- func NewMatchComparerFromOCISpecPlatformSlice(platformz []ocispec.Platform) platforms.MatchComparer
- func NewOCISpecPlatformSlice(all bool, ss []string) ([]ocispec.Platform, error)
- func NormalizeString(s string) (string, error)
Constants ¶
const ErofsOSFeature = "erofs"
Variables ¶
This section is empty.
Functions ¶
func AppendOSFeatureVariants ¶
func CanExecProbably ¶
func IgnoreOSFeaturesMatcher ¶
func IgnoreOSFeaturesMatcher(mc platforms.MatchComparer, features ...string) platforms.MatchComparer
IgnoreOSFeaturesMatcher wraps a MatchComparer and ignores selected os.features on candidate platforms before delegating to the wrapped matcher.
func LayerDescs ¶
func LayerDescs(ctx context.Context, provider content.Provider, imageTarget ocispec.Descriptor, platform platforms.MatchComparer) ([]ocispec.Descriptor, error)
func NewMatchComparer ¶
func NewMatchComparer(all bool, ss []string) (platforms.MatchComparer, error)
NewMatchComparer returns MatchComparer. If all is true, NewMatchComparer always returns All, regardless to the value of ss. If all is false and ss is empty, NewMatchComparer returns DefaultStrict (not Default). Otherwise NewMatchComparer returns Ordered MatchComparer.
func NewMatchComparerFromOCISpecPlatformSlice ¶
func NewMatchComparerFromOCISpecPlatformSlice(platformz []ocispec.Platform) platforms.MatchComparer
NewMatchComparerFromOCISpecPlatformSlice returns MatchComparer. If platformz is empty, NewMatchComparerFromOCISpecPlatformSlice returns All (not DefaultStrict).
func NewOCISpecPlatformSlice ¶
NewOCISpecPlatformSlice returns a slice of ocispec.Platform If all is true, NewOCISpecPlatformSlice always returns an empty slice, regardless to the value of ss. If all is false and ss is empty, NewOCISpecPlatformSlice returns DefaultSpec. Otherwise NewOCISpecPlatformSlice returns the slice that correspond to ss.
func NormalizeString ¶
Types ¶
This section is empty.