Documentation ¶
Overview ¶
Package version contains version information for Functional Conformance Suite.
Index ¶
Constants ¶
const ( //FullVersion - Checker is the full string version of Conformance Suite. FullVersion = major + "." + minor + "." + patch // Prerelease - is pre-release marker for the version. If this is "" (empty string) // then it means that it is a final release. Otherwise, this is a pre-release // such as "alpha", "beta", "rc1", etc. Prerelease = "" GitHubAPIRepository = "https://api.github.com/repos/OpenBankingUK/conformance-suite/tags" )
Checker returns the semantic version (see http://semver.org).
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checker ¶
type Checker interface { GetHumanVersion() string VersionFormatter(version string) (string, error) UpdateWarningVersion(version string) (string, bool, error) }
Checker defines functionality to reason about the current version of the software and if updates are available
type GitHub ¶
type GitHub struct {
// contains filtered or unexported fields
}
GitHub helper with capability to get release versions from source control repository
func (GitHub) GetHumanVersion ¶
GetHumanVersion composes the parts of the version in a way that's suitable for displaying to humans.
func (GitHub) UpdateWarningVersion ¶
UpdateWarningVersion takes a version number and checks it against the latest tag version on GitHub, if a newer version is found it returns a message and bool value that can be used to inform a user a newer version is available for download.
type TagsAPIResponse ¶
type TagsAPIResponse struct {
TagList []Tag
}
TagsAPIResponse structure to map response.