containerd/cmd
Stephen J Day 5a3151eefc
cmd/dist, image, remotes: introduce image handlers
With this PR, we introduce the concept of image handlers. They support
walking a tree of image resource descriptors for doing various tasks
related to processing them. Handlers can be dispatched sequentially or
in parallel and can be stacked for various effects.

The main functionality we introduce here is parameterized fetch without
coupling format resolution to the process itself. Two important
handlers, `remotes.FetchHandler` and `image.ChildrenHandler` can be
composed to implement recursive fetch with full status reporting. The
approach can also be modified to filter based on platform or other
constraints, unlocking a lot of possibilities.

This also includes some light refactoring in the fetch command, in
preparation for submission of end to end pull.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-03-17 15:47:50 -07:00
..
containerd Add rootfs command to dist 2017-03-15 16:32:21 -07:00
containerd-shim Implement reaper with runc support in shim 2017-03-09 16:11:57 -08:00
ctr Make ctr --rootfs an absolute path 2017-03-09 16:13:23 -08:00
ctrd-protobuild Remove bundles from API 2017-02-15 13:56:41 -08:00
dist cmd/dist, image, remotes: introduce image handlers 2017-03-17 15:47:50 -07:00
protoc-gen-gogoctrd cmd/protoc-gen-gogoctrd: turn off GoString generation 2017-02-15 13:37:48 -08:00