Merge pull request #3208 from mxpv/client

Allow reuse client for external GRPC services
This commit is contained in:
Michael Crosby
2019-04-16 15:30:33 -04:00
committed by GitHub

View File

@@ -622,6 +622,13 @@ func (c *Client) VersionService() versionservice.VersionClient {
return versionservice.NewVersionClient(c.conn)
}
// Conn returns the underlying GRPC connection object
func (c *Client) Conn() *grpc.ClientConn {
c.connMu.Lock()
defer c.connMu.Unlock()
return c.conn
}
// Version of containerd
type Version struct {
// Version number