Merge pull request #4943 from AkihiroSuda/platforms-literallyonly

platforms: add subarchless version of Only()
This commit is contained in:
Derek McGowan
2021-01-20 17:27:43 -08:00
committed by GitHub
3 changed files with 204 additions and 0 deletions

View File

@@ -36,3 +36,8 @@ func DefaultSpec() specs.Platform {
Variant: cpuVariant(),
}
}
// DefaultStrict returns strict form of Default.
func DefaultStrict() MatchComparer {
return OnlyStrict(DefaultSpec())
}