Store is digest-keyed store for content. All data written into the store is stored under a verifiable digest. Store can generally support multi-reader, single-writer ingest of data, including resumable ingest.
| 66 | // Store can generally support multi-reader, single-writer ingest of data, |
| 67 | // including resumable ingest. |
| 68 | type store struct { |
| 69 | root string |
| 70 | ls LabelStore |
| 71 | integritySupported bool |
| 72 | |
| 73 | locksMu sync.Mutex |
| 74 | locks map[string]*lock |
| 75 | ensureIngestRootOnce func() error |
| 76 | } |
| 77 | |
| 78 | // NewStore returns a local content store |
| 79 | func NewStore(root string) (content.Store, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected