Documentation ¶
Index ¶
- Constants
- func ComparePackages(a, b []string) bool
- func GetDateBasedVersion(v *buildsafev1.FetchPackagesResponse) string
- func GetLatestMinorVersion(v *buildsafev1.FetchPackagesResponse, version string) string
- func GetLatestPatchVersion(v *buildsafev1.FetchPackagesResponse, version string) string
- func ParsePackage(pkg string) (name, version string)
- func ParseUpdateType(pkg string) int
- func TrimVersionInfo(pkg string) (string, string)
Constants ¶
View Source
const ( // UpdateTypePatch represents patch update type UpdateTypePatch = iota // UpdateTypeMinor represents minor update type UpdateTypeMinor // UpdateTypeDate represents date update type UpdateTypeDate // UpdateTypePinned represents pinned update type UpdateTypePinned )
Variables ¶
This section is empty.
Functions ¶
func ComparePackages ¶ added in v0.2.1
ComparePackages compares the devVersions and the runtimeVersions
func GetDateBasedVersion ¶ added in v0.2.1
func GetDateBasedVersion(v *buildsafev1.FetchPackagesResponse) string
GetDateBasedVersion returns the latest date version for the given version.
func GetLatestMinorVersion ¶
func GetLatestMinorVersion(v *buildsafev1.FetchPackagesResponse, version string) string
GetLatestMinorVersion returns the latest minor version for the given version.
func GetLatestPatchVersion ¶
func GetLatestPatchVersion(v *buildsafev1.FetchPackagesResponse, version string) string
GetLatestPatchVersion returns the latest patch version for the given version.
func ParsePackage ¶
ParsePackage parses the package as given in bsf.hcl and returns the name and version. It removes the update type information.
func ParseUpdateType ¶
ParseUpdateType parses the update type of the package
func TrimVersionInfo ¶
TrimVersionInfo trims the version information and returns the package name and version.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.