cri-o/vendor/github.com/containers/storage/cmd/oci-storage
Nalin Dahyabhai 7c551964c0 Bump github.com/containers/storage@d10d868
Update the vendored copy of github.com/containers/storage to revision
d10d8680af74070b362637408a7fe28c4b1f1eff.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2017-04-27 14:11:05 -04:00
..
container.go Bump github.com/containers/storage@d10d868 2017-04-27 14:11:05 -04:00
containers.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
create.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
delete.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
diff.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
exists.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
image.go Bump github.com/containers/storage@d10d868 2017-04-27 14:11:05 -04:00
images.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
layers.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
main.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
metadata.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
mount.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
name.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
README.md Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
shutdown.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
status.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
tree.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
tree_test.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
version.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00
wipe.go Switch to github.com/golang/dep for vendoring 2017-01-31 16:45:59 -08:00

This is oci-storage, a command line tool for manipulating a layer store.

It depends on storage, which is a pretty barebones wrapping of the graph drivers that exposes the create/mount/unmount/delete operations and adds enough bookkeeping to know about the relationships between layers.

On top of that, storage provides a notion of a reference to a layer which is paired with arbitrary user data (i.e., an image, that data being history and configuration metadata). It also provides a notion of a type of layer, which is typically the child of an image's topmost layer, to which arbitrary data is directly attached (i.e., a container, where the data is typically configuration).

Layers, images, and containers are each identified using IDs which can be set when they are created (if not set, random values are generated), and can optionally be assigned names which are resolved to IDs automatically by the various APIs.

The oci-storage tool is a CLI that wraps that as thinly as possible, so that other tooling can use it to import layers from images. Those other tools can then either manage the concept of images on their own, or let the API/CLI handle storing the image metadata and/or configuration. Likewise, other tools can create container layers and manage them on their own or use the API/CLI for storing what I assume will be container metadata and/or configurations.

Logic for importing images and creating and managing containers will most likely be implemented elsewhere, and if that implementation ends up not needing the API/CLI to provide a place to store data about images and containers, that functionality can be dropped.