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 = 3 // MicroVersion is the patch number for pachyderm. MicroVersion = 11 )
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 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 ¶
PrettyPrintVersion returns a version string optionally tagged with metadata. For example: "1.2.3", or "1.2.3-rc1" if version.Additional is "rc1".
Types ¶
type APIServerOptions ¶ added in v1.3.5
type APIServerOptions struct {
DisableLogging bool
}
APIServerOptions are options when creating a new APIServer.
Click to show internal directories.
Click to hide internal directories.