Commit Graph
44 Commits
Author SHA1 Message Date
Harshavardhana f85e8827e1 Migrate mc package to minio-xl from minio/minio repo for probe/quick 2015-10-17 00:24:14 -07:00
Krishna Srinivas ef98d5963b mc share output cleanup 2015-10-09 16:56:25 -07:00
Krishna Srinivas aa53fb19f9 Break share main file into subcommands files - upload, download, list 2015-10-08 13:43:41 -07:00
Krishna Srinivas 7ec74a33ce Implement mc share upload and mc share download 2015-10-08 13:20:29 -07:00
Harshavardhana 6d95872ad8 Add new --colors option for choosing different coloring styles for console printing
Each command implements and interprets the following coloring styles

 - ``dark`` - default coloring style picks up palette colors Cyan, Red, Blue, White etc
 - ``light`` - lighter chooses white colored console printing.
 - ``nocolor`` - nocolor is for console printing without any colors.

All coloring internally use ASCII color schemes, portable across all known OS.
2015-10-07 17:08:42 -07:00
Harshavardhana dbe53325b0 Add SetCustomPalette rather than theme 2015-10-07 12:54:35 -07:00
Harshavardhana e8e24ca723 Add support for signature v2 - fixes #1111 2015-09-21 21:00:07 -07:00
Harshavardhana 1a74e98b23 Share migrate to V2 version moving from type map to array. 2015-09-13 13:45:54 -07:00
Harshavardhana 36e2c1813d Each command messages now implement
- String() for colorized output
  - JSON() for json marshalled output

All messages should adhere to this interface unless its
explicitly not necessary in some cases.
2015-09-13 02:20:43 -07:00
Harshavardhana a14d526dcd Humanize time.duration properly 2015-09-12 21:51:29 -07:00
Harshavardhana 303b94e8c3 Create an empty urls.json if doesn't exist while reading. 2015-09-12 18:41:35 -07:00
Anand Babu (AB) Periasamy 47b8267b5f share url bug fixes 2015-09-12 18:12:33 -07:00
Harshavardhana 46b740f07c Store list of shared URLs locally until their expiry, this implements 'mc share list' command 2015-09-11 18:04:10 -07:00
Harshavardhana c50b16c70f Update documentation for mb, cp, mirror for files and folders with space characters 2015-09-07 01:22:14 -07:00
Harshavardhana c46ea80fff Move primitives for add, list, remove into their own subcommands as alias,host etc. 2015-09-01 19:58:33 -07:00
Harshavardhana aaec806897 Simplify help messages 2015-09-01 14:54:13 -07:00
Anand Babu (AB) Periasamy fddcb821fa URL related bug fixes and cleanup 2015-08-30 02:14:24 -07:00
Harshavardhana a6cd6939c2 Converge shareMessage into shareDuration 2015-08-27 18:55:12 -07:00
Harshavardhana 3777c0039c Implement custom share duration to print in Days() as well 2015-08-27 18:38:01 -07:00
Harshavardhana cbc9d96d50 Format help for all commands 2015-08-25 20:13:50 -07:00
Harshavardhana c48a98de62 Add proper comments. 2015-08-25 16:54:55 -07:00
Harshavardhana 3df07ac29f Add checkCommandSyntax for all commands 2015-08-24 19:31:30 -07:00
Harshavardhana 3ae608a3b1 Merge pull request #1034 from harshavardhana/formatting
End sentences with a . for readability
2015-08-23 01:36:42 -07:00
Harshavardhana f089dc1b68 End sentences with a . for readability 2015-08-23 01:35:32 -07:00
Harshavardhana b9c28d588b Fixes for json review #1 2015-08-23 01:24:04 -07:00
Anand Babu (AB) Periasamy 1c313ef773 final update and tiny fixes 2015-08-22 22:31:15 -07:00
Anand Babu (AB) Periasamy 0de688948a error messages and tiny bug fixes 2015-08-22 19:47:11 -07:00
Harshavardhana a0e66ce640 Migrate to golang1.5 with new GO15VENDOREXPERIMENT enabled 2015-08-22 19:04:17 -07:00
Harshavardhana c992bb682f Migrate to PresignedGetObject from PresignedGetPartialObject() as the latter was of no real use 2015-08-21 20:39:22 -07:00
Harshavardhana 878c8e2693 Migrate to newer version of config '2' 2015-08-20 21:03:39 -07:00
Harshavardhana fa0c9e38bb Add error messages to fatalIf and errorIf 2015-08-19 17:11:34 -07:00
Harshavardhana 3caee383f0 Migrate to govendor to avoid limitations of godep
- over the course of a project history every maintainer needs to update
  its dependency packages, the problem essentially with godep is manipulating
  GOPATH - this manipulation leads to static objects created at different locations
  which end up conflicting with the overall functionality of golang.

  This also leads to broken builds on many platforms. There is no easier way out of
  this other than asking users to do 'godep restore' all the time which perhaps as
  a practice doesn't sound clean, also has its own set of problems.

- govendor on the other hand is a right tool but a stop gap tool until we wait for
  golangs official 1.5 version which fixes this vendoring issue once and for all.

- govendor makes sure that the import paths are re-written instead of manipulating
  GOPATH.

  This has advantages
    - no more compiled objects being referenced in GOPATH and build time GOPATH
      manging which leads to conflicts.
    - proper import paths referencing the exact package a project is dependent on.

  govendor is simple and provides the minimal necessary tooling to achieve this.

  For now this is the right solution.
2015-08-12 19:04:16 -07:00
Harshavardhana 3185ca1146 Improve share command 2015-08-12 17:00:07 -07:00
Harshavardhana 6a59d9a046 Rename all main command actions into main<Command> from run<Command>Cmd 2015-08-12 01:26:35 -07:00
Harshavardhana ed70bbb7e3 Print json output for share urls as well 2015-08-11 23:17:23 -07:00
Harshavardhana 25e5ea2574 Move to server package for probe 2015-08-10 19:49:57 -07:00
Harshavardhana ae2a20dffc Move from Fatal/Error to fatalIf/errorIf 2015-08-09 22:41:49 -07:00
Harshavardhana c97c2a77b5 Move testing into its own <package>_test, add probe.NewError() new changes 2015-08-08 11:16:36 -07:00
Harshavardhana ca107a154c Handle virtual bucket style urls too 2015-08-07 12:08:51 -07:00
Harshavardhana 202f9e7646 Probe moves closer to mc, also brings in changes by avoiding it behave like an error interface{} 2015-08-07 00:53:37 -07:00
Harshavardhana 75bf5d7c78 update share command template 2015-08-06 23:52:05 -07:00
Harshavardhana f752ac3ae4 share command now honors expiration option 2015-08-06 23:34:39 -07:00
Harshavardhana c0935724ce Report proper errors for share 2015-08-06 22:30:36 -07:00
Harshavardhana c36ed96f26 Add `share` command leveraging new PresignedURL API from minio-go 2015-08-06 21:52:53 -07:00