Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GetVersion = T.First[Version, string] OrdVersion = ord.MakeOrd(Version.Compare, Version.Equal) // SortCertByVersion sorts the structs by version in inverse order, i.e. the first item will be the latest version SortCertByVersion = A.SortByKey(ord.Reverse(OrdVersion), GetVersion) )
Functions ¶
func SelectCertBySpec ¶
func SelectCertBySpec(spec *semver.Constraints) func(img []VersionCert) O.Option[VersionCert]
SelectCertBySpec selects the latest version that matches the specification
Types ¶
Click to show internal directories.
Click to hide internal directories.