version

package
v1.3.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2025 License: MIT Imports: 10 Imported by: 0

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 CliCommand() *cobra.Command

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

type ServiceImpl struct {
	manifest.Manifest
	// contains filtered or unexported fields
}

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL