version

package
v2.9.4 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Overwritten at build time by linker
	AppVersion = "0.0.0"

	MajorVersion, MinorVersion, MicroVersion = getVersions()

	// AdditionalVersion is the string provided at release time
	// The value is passed to the linker at build time
	//
	// DO NOT set the value of this variable here. For some reason, if
	// AdditionalVersion is set here, the go linker will not overwrite it.
	AdditionalVersion string

	B = getBuildInfo()

	// Version is the current version for pachyderm.
	Version = &pb.Version{
		Major:           uint32(MajorVersion),
		Minor:           uint32(MinorVersion),
		Micro:           uint32(MicroVersion),
		Additional:      AdditionalVersion,
		GitCommit:       B.gitCommit,
		GitTreeModified: B.gitTreeModified,
		BuildDate:       B.buildDate,
		GoVersion:       B.goVersion,
		Platform:        B.platform,
	}
)

Functions

func GetServerVersion

func GetServerVersion(clientConn *grpc.ClientConn) (*pb.Version, error)

GetServerVersion gets the server *Version given the *grpc.ClientConn.

func NewAPIServer

func NewAPIServer(version *pb.Version, options APIServerOptions) pb.APIServer

NewAPIServer creates a new APIServer for the given Version.

func PrettyPrintVersion

func PrettyPrintVersion(version *pb.Version) string

PrettyPrintVersion returns a version string optionally tagged with metadata. For example: "1.2.3", or "1.2.3rc1" if version.Additional is "rc1".

func PrettyVersion

func PrettyVersion() string

PrettyVersion calls PrettyPrintVersion on Version and returns the result.

func String

func String(v *pb.Version) string

String returns a string representation of the Version.

Types

type APIServerOptions

type APIServerOptions struct {
	DisableLogging bool
}

APIServerOptions are options when creating a new APIServer.

Directories

Path Synopsis
Package versionpb is a reverse proxy.
Package versionpb is a reverse proxy.

Jump to

Keyboard shortcuts

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