containerd/content
Eric Lin 4247f2684d metadata: define content sharing policy
This changeset modifies the metadata store to allow one to set a
"content sharing policy" that defines how blobs are shared between
namespaces in the content store.

The default mode "shared" will make blobs available in all namespaces
once it is pulled into any namespace.  The blob will be pulled into
the namespace if a writer is opened with the "Expected" digest that
is already present in the backend.

The alternative mode, "isolated" requires that clients prove they have
access to the content by providing all of the content to the ingest
before the blob is added to the namespace.

Both modes share backing data, while "shared" will reduce total
bandwidth across namespaces, at the cost of allowing access to any
blob just by knowing its digest.

Note: Most functional codes and changelog of this commit originate from
Stephen J Day <stephen.day@docker.com>, see
40455aade8

Fixes #1713 Fixes #2865

Signed-off-by: Eric Lin <linxiulei@gmail.com>
2018-12-21 15:02:21 +08:00
..
local Fix writer deadlock in local store 2018-10-15 16:33:45 -07:00
proxy Clean up error messages 2018-09-17 14:41:43 -07:00
testsuite metadata: define content sharing policy 2018-12-21 15:02:21 +08:00
content.go Fix writer deadlock in local store 2018-10-15 16:33:45 -07:00
helpers_test.go Update tests to use gotest.tools angel 2018-06-08 21:02:01 +02:00
helpers.go Unify docker and oci importer 2018-09-17 14:41:43 -07:00