Access to client's GRPC connection object
Signed-off-by: Maksym Pavlenko <makpav@amazon.com>
This commit is contained in:
parent
5f4c977ba0
commit
be2cbd0b2d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user