ContentStore returns the underlying content Store
()
| 708 | |
| 709 | // ContentStore returns the underlying content Store |
| 710 | func (c *Client) ContentStore() content.Store { |
| 711 | if c.contentStore != nil { |
| 712 | return c.contentStore |
| 713 | } |
| 714 | c.connMu.Lock() |
| 715 | defer c.connMu.Unlock() |
| 716 | return contentproxy.NewContentStore(c.conn) |
| 717 | } |
| 718 | |
| 719 | // SnapshotService returns the underlying snapshotter for the provided snapshotter name |
| 720 | func (c *Client) SnapshotService(snapshotterName string) snapshots.Snapshotter { |