version

package
v0.0.0-...-3c8eb91 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Product = "Dubbo"

	Envoy = "unknown"
)
View Source
var PreviewVersionPrefix = "preview"

Functions

func CobraCommandWithOptions

func CobraCommandWithOptions() *cobra.Command

func DeploymentVersionCompatible

func DeploymentVersionCompatible(dubboVersionStr, componentVersionStr string) bool

DeploymentVersionCompatible returns true if the given component version is compatible with the installed version of dubbo CP. For all binaries which share a common version (dubbo DP, CP, Zone CP...), we support backwards compatibility of at most two prior minor versions.

func IsPreviewVersion

func IsPreviewVersion(version string) bool

Types

type BuildInfo

type BuildInfo struct {
	Product      string
	Version      string
	GitTag       string
	GitCommit    string
	BuildDate    string
	BasedOnDubbo string
}
var Build BuildInfo
var (
	Info BuildInfo
)

func (BuildInfo) AsMap

func (b BuildInfo) AsMap() map[string]string

func (BuildInfo) FormatDetailedProductInfo

func (b BuildInfo) FormatDetailedProductInfo() string

func (BuildInfo) LongForm

func (b BuildInfo) LongForm() string

func (BuildInfo) String

func (b BuildInfo) String() string

func (BuildInfo) UserAgent

func (b BuildInfo) UserAgent(component string) string

type Version

type Version struct {
	ClientVersion *BuildInfo `json:"clientVersion,omitempty" yaml:"clientVersion,omitempty"`
}

Jump to

Keyboard shortcuts

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