version

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2018 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// MajorVersion is the current major version for pachyderm.
	MajorVersion = 1
	// MinorVersion is the current minor version for pachyderm.
	MinorVersion = 8
	// MicroVersion is the patch number for pachyderm.
	MicroVersion = 0
)

Variables

View Source
var (
	// 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

	// Version is the current version for pachyderm.
	Version = &pb.Version{
		Major:      MajorVersion,
		Minor:      MinorVersion,
		Micro:      MicroVersion,
		Additional: AdditionalVersion,
	}
)

Functions

func GetServerVersion added in v1.3.5

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

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

func NewAPIServer added in v1.3.5

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 PrettyPrintVersionNoAdditional added in v1.5.0

func PrettyPrintVersionNoAdditional(version *pb.Version) string

PrettyPrintVersionNoAdditional returns a version string without version.Additional.

func PrettyVersion added in v1.6.9

func PrettyVersion() string

PrettyVersion calls PrettyPrintVersion on Version and returns the result.

func String added in v1.3.5

func String(v *pb.Version) string

String returns a string representation of the Version.

Types

type APIServerOptions added in v1.3.5

type APIServerOptions struct {
	DisableLogging bool
}

APIServerOptions are options when creating a new APIServer.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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