Commit Graph

10 Commits

Author SHA1 Message Date
Dan Walsh 5531c8da65 Move storage/storage go objects to storage.
There is no reason for the extra directory level.

Also fixup some go lint issues
Signed-off-by: Dan Walsh <dwalsh@redhat.com>
2017-05-16 17:25:11 -04:00
Nalin Dahyabhai 87dfe2feb0 Rename Mall objects to Store objects
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>
2016-08-31 17:34:33 -04:00
Nalin Dahyabhai b677fe37fa Fix CLI 'layers' when images share top layers
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>
2016-08-09 15:12:04 -04:00
Nalin Dahyabhai 1accfee67e Capitalize the help text for recently-added options
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>
2016-07-21 14:10:04 -04:00
Nalin Dahyabhai 8b7e1ea6d7 Support multiple names for things
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>
2016-07-21 13:26:21 -04:00
Nalin Dahyabhai b50f33bf70 Add --json to many of the CLI commands
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>
2016-07-20 17:47:43 -04:00
Nalin Dahyabhai a05bdbb291 Fix several golint errors and a vet error
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2016-07-18 17:35:50 -04:00
Nalin Dahyabhai 0764afb669 Fix gofmt/golint/go vet errors
Fix multiple errors flagged by gofmt, golint, and go vet checks.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2016-07-18 17:35:50 -04:00
Nalin Dahyabhai 60ff079996 Rename: cow/cowman -> storage/oci-storage
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>
2016-07-18 17:35:50 -04:00
Nalin Dahyabhai c28495d8f2 Rename from cow/cowman to storage/oci-storage
Rename the cow module and cowman tool to storage and oci-storage,
respectively.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2016-07-18 17:35:50 -04:00