Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareVersions ¶
func GetCurrentDMSVersion ¶
func GetLatestDMSVersion ¶
Types ¶
type DefaultVersionFetcher ¶
type DefaultVersionFetcher struct{}
DefaultVersionFetcher is the default implementation that uses git/curl
func (*DefaultVersionFetcher) GetCurrentVersion ¶
func (d *DefaultVersionFetcher) GetCurrentVersion(dmsPath string) (string, error)
func (*DefaultVersionFetcher) GetLatestVersion ¶
func (d *DefaultVersionFetcher) GetLatestVersion(dmsPath string) (string, error)
type VersionFetcher ¶
type VersionFetcher interface {
GetCurrentVersion(dmsPath string) (string, error)
GetLatestVersion(dmsPath string) (string, error)
}
VersionFetcher is an interface for fetching version information
type VersionInfo ¶
type VersionInfo struct {
Current string
Latest string
IsGit bool
IsBranch bool
IsTag bool
HasUpdate bool
}
func GetDMSVersionInfo ¶
func GetDMSVersionInfo() (*VersionInfo, error)
func GetDMSVersionInfoWithFetcher ¶
func GetDMSVersionInfoWithFetcher(fetcher VersionFetcher) (*VersionInfo, error)
Click to show internal directories.
Click to hide internal directories.