containerd/cmd/dist
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
..
active.go content: refactor content store for API 2017-02-21 13:10:22 -08:00
apply.go new package: compression (ported from docker/pkg/archive) 2017-03-16 05:29:27 +00:00
common.go cmd/dist: add global connect-timeout for GRPC 2017-02-28 16:43:08 -08:00
delete.go cmd/dist: change fetch to fetch-object command 2017-03-02 13:50:09 -08:00
fetch.go cmd/dist, image, remotes: introduce image handlers 2017-03-17 15:47:50 -07:00
fetchobject.go cmd/dist, remotes: simplify resolution flow 2017-03-08 16:46:13 -08:00
get.go services/content: move service client into package 2017-02-28 17:12:24 -08:00
ingest.go services/content: move service client into package 2017-02-28 17:12:24 -08:00
list.go Use errors.New() directly to output the error message 2017-02-22 10:53:16 +08:00
main.go Add rootfs command to dist 2017-03-15 16:32:21 -07:00
rootfs.go Fix rootfs digest computation 2017-03-15 17:17:25 -07:00