api/services/content: define the content service
Bring the content service into the containerd API. This allows the content store to be coordinated in the containerd daemon with minimal effort. For the most part, this API follows the conventions and behavior of the existing content store implementation with a few caveats. Specifically, we remove the object oriented transaction mechanism in favor of a very rich `Write` call. Pains are taken to reduce race conditions around when having multiple writers to a single piece of content. Clients should be able to race towards getting a write lock on a reference, then wait on each other. For the most part, this should be generically pluggable to allow implementations of the content store to be swapped out. We'll follow this up with an implementation to validate the model. Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
parent
4cb31d9615
commit
baaf7543dc
2 changed files with 2591 additions and 0 deletions
2390
api/services/content/content.pb.go
Normal file
2390
api/services/content/content.pb.go
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue