Commit Graph

14 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 78688431e1 Update create.go to discard the new Put() result
The PutLayer() wrapper in the CLI tool wasn't updated to discard the new
size result that it returns.  Fix that.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2016-11-11 13:17:36 -05:00
Nalin Dahyabhai 55a8b3528d Add an options argument to Store.CreateImage()
Add a (currently empty) options argument to Store.CreateImage(), in an
attempt to head off having to add one argument after another as we add
new options.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2016-11-08 12:58:23 -05:00
Nalin Dahyabhai b7ee021563 Add an options argument to Store.CreateContainer()
Add a (currently empty) options argument to Store.CreateContainer(), in
an attempt to head off having to add one argument after another as we
add new options.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2016-10-25 16:18:26 -04:00
Nalin Dahyabhai 19f41a17ba Wrap PutLayer() in the CLI import-layer command
Add an import-layer command to the CLI to exercise the PutLayer() method
in the Store object.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2016-09-12 18:10:07 -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 5b5690a4bb Add aliases for hyphenated CLI commands
Add aliases for the CLI commands that have hyphens in their names, or
could, so that I can stop having to remember whether or not a given
command includes one or not.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2016-08-15 09:42:36 -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