Documentation
¶
Overview ¶
Package version provides functionality to manage and check the version of the Kubex Horizon CLI tool. It includes methods to retrieve the current version, check for the latest version,
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CliCommand ¶
func GetGitRepositoryModelURL ¶
func GetGitRepositoryModelURL() string
func GetLatestVersionFromGit ¶
func GetLatestVersionFromGit() string
func GetLatestVersionInfo ¶
func GetLatestVersionInfo() string
func GetVersion ¶
func GetVersion() string
func GetVersionInfo ¶
func GetVersionInfo() string
func GetVersionInfoWithLatestAndCheck ¶
func GetVersionInfoWithLatestAndCheck() string
Types ¶
type Service ¶
type Service interface {
// GetLatestVersion retrieves the latest version from the Git repository.
GetLatestVersion() (string, error)
// GetCurrentVersion returns the current version of the service.
GetCurrentVersion() string
// IsLatestVersion checks if the current version is the latest version.
IsLatestVersion() (bool, error)
// GetName returns the name of the service.
GetName() string
// GetVersion returns the current version of the service.
GetVersion() string
// GetRepository returns the Git repository URL of the service.
GetRepository() string
// contains filtered or unexported methods
}
func NewVersionService ¶
func NewVersionService() Service
type ServiceImpl ¶
func (*ServiceImpl) GetCurrentVersion ¶
func (v *ServiceImpl) GetCurrentVersion() string
func (*ServiceImpl) GetLatestVersion ¶
func (v *ServiceImpl) GetLatestVersion() (string, error)
func (*ServiceImpl) GetName ¶
func (v *ServiceImpl) GetName() string
func (*ServiceImpl) GetRepository ¶
func (v *ServiceImpl) GetRepository() string
func (*ServiceImpl) GetVersion ¶
func (v *ServiceImpl) GetVersion() string
func (*ServiceImpl) IsLatestVersion ¶
func (v *ServiceImpl) IsLatestVersion() (bool, error)
Click to show internal directories.
Click to hide internal directories.