version

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package version provides methods to determine the correct version of components.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ProjectName is a component name, e.g. everest API Server, everestctl.
	ProjectName string //nolint:gochecknoglobals
	// Version is a component version e.g. v0.3.0-1-a93bef.
	Version string //nolint:gochecknoglobals
	// FullCommit is a git commit hash.
	FullCommit string //nolint:gochecknoglobals
	// EverestChannelOverride overrides the default olm channel for Everest operator.
	EverestChannelOverride string //nolint:gochecknoglobals
)

Functions

func EverestVersionFromDeployment added in v0.10.0

func EverestVersionFromDeployment(ctx context.Context, dg deploymentGetter) (*goversion.Version, error)

EverestVersionFromDeployment returns Everest version from the k8s deployment resource.

func IsDev added in v1.4.0

func IsDev(v string) bool

IsDev checks if the version is a development version.

func IsRC added in v1.4.0

func IsRC(v string) bool

IsRC checks if the version is a release candidate.

Types

type Info added in v1.5.0

type Info struct {
	ProjectName   string  `json:"projectName"`
	Version       string  `json:"version"`
	FullCommit    string  `json:"fullCommit"`
	ServerVersion *string `json:"serverVersion,omitempty"`
}

Info represents the version information.

func (Info) JSONString added in v1.5.0

func (v Info) JSONString() string

JSONString returns the json representation of the version information.

func (Info) String added in v1.5.0

func (v Info) String() string

String returns the string representation of the version information.

Jump to

Keyboard shortcuts

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