forked from pachyderm/pachyderm
/
pachyderm.go
44 lines (38 loc) · 987 Bytes
/
pachyderm.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package pachyderm
import (
"github.com/pachyderm/pachyderm/src/pfs"
"github.com/pachyderm/pachyderm/src/pps"
"go.pedge.io/proto/version"
"google.golang.org/grpc"
)
const (
// MajorVersion is the current major version for pachyderm.
MajorVersion = 0
// MinorVersion is the current minor version for pachyderm.
MinorVersion = 10
// MicroVersion is the current micro version for pachyderm.
MicroVersion = 0
// AdditionalVersion will be "dev" is this is a development branch, "" otherwise.
AdditionalVersion = "RC1"
)
var (
// Version is the current version for pachyderm.
Version = &protoversion.Version{
Major: MajorVersion,
Minor: MinorVersion,
Micro: MicroVersion,
Additional: AdditionalVersion,
}
)
type PfsAPIClient pfs.APIClient
type PpsAPIClient pps.APIClient
type APIClient struct {
PfsAPIClient
PpsAPIClient
}
func NewAPIClient(cc *grpc.ClientConn) *APIClient {
return &APIClient{
pfs.NewAPIClient(cc),
pps.NewAPIClient(cc),
}
}