Close closes the clients connection to containerd
()
| 678 | |
| 679 | // Close closes the clients connection to containerd |
| 680 | func (c *Client) Close() error { |
| 681 | c.connMu.Lock() |
| 682 | defer c.connMu.Unlock() |
| 683 | if c.conn != nil { |
| 684 | return c.conn.Close() |
| 685 | } |
| 686 | return nil |
| 687 | } |
| 688 | |
| 689 | // NamespaceService returns the underlying Namespaces Store |
| 690 | func (c *Client) NamespaceService() namespaces.Store { |