Rename the Mall interface to Store, and the Store interface to
FileBasedStore. This is why you don't want me naming things, people.
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
When two or more images share a top layer, 'layers' was getting
confused, because it incorrectly assumed that a given layer could only
be referred to by one image at a time. Fix that.
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
Capitalize the first word of the help text that we've added for the -j
and -n options, to match the other help text.
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
Support attaching multiple names (instead of the previous optional one)
to layers, images, and containers. Add SetNames() and GetNames()
methods that accept an ID for any type of item. The CLI wrappers can
now be passed multiple -n/--name options.
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
Add a --json flag to most of the CLI commands, to force output that
would have gone to stdout to be output as JSON instead of whatever form
it would otherwise take. Error messages sent to stderr are still plain
text.
Use this chance to rework the wrapping logic so that it's more
consistent: commands that take multiple IDs attempt the specified
operation on all of them, and report errors afterward.
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
Rename the library module and CLI wrapper.
Rename daemon/graphdriver to drivers.
Catch up vendoring to match modules we've pruned.
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>