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 ¶
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.
Types ¶
type APIServerOptions ¶
type APIServerOptions struct {
DisableLogging bool
}
APIServerOptions are options when creating a new APIServer.
Click to show internal directories.
Click to hide internal directories.