Documentation
¶
Index ¶
- Variables
- func GetFirstVersionString(depName string, knowledge *bun.DB) (string, error)
- func GetLastVersionString(depName string, knowledge *bun.DB) (string, error)
- func GetVersionStrings(depName string, knowledge *bun.DB) ([]string, error)
- func GetVersionStringsAbove(depName string, depVersion string, limit int, knowledge *bun.DB) ([]string, error)
- func GetVersionStringsBelow(depName string, depVersion string, limit int, knowledge *bun.DB) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
var PhpPackageRepository = packageRepository.PackageRepository{ GetVersionStrings: GetVersionStrings, GetVersionStringsBelow: GetVersionStringsBelow, GetVersionStringsAbove: GetVersionStringsAbove, GetFirstVersionString: GetFirstVersionString, GetLastVersionString: GetLastVersionString, }
Functions ¶
func GetFirstVersionString ¶
GetFirstVersionString retrieves the first (lowest) version string of a given dependency. It returns the version string and an error if any.
func GetLastVersionString ¶
GetLastVersionString retrieves the last (highest) version string of a given dependency. It returns the version string and an error if any.
func GetVersionStrings ¶
GetVersionStrings retrieves the version strings of a given dependency. It first checks if the version strings are already cached in the dependencyVersionsCache. If not, it queries the database to fetch the version strings and stores them in the cache for future use. The dependency name can be in the format "vendor/package". It returns the version strings in ascending order and an error if any.
func GetVersionStringsAbove ¶
func GetVersionStringsAbove(depName string, depVersion string, limit int, knowledge *bun.DB) ([]string, error)
GetVersionStringsAbove retrieves the version strings of a given dependency that are above a specified version. It returns the version strings in ascending order and an error if any.
func GetVersionStringsBelow ¶
func GetVersionStringsBelow(depName string, depVersion string, limit int, knowledge *bun.DB) ([]string, error)
GetVersionStringsBelow retrieves the version strings of a given dependency that are below a specified version. It returns the version strings in ascending order and an error if any.
Types ¶
This section is empty.