Commit Graph
149 Commits
Author SHA1 Message Date
Harshavardhana d4047ca899 Cleanup minio, remote struct printing for Info, Error and Fatal - simplifying overall error handling 2015-07-14 11:02:04 -07:00
Harshavardhana 931a788c54 Remove yielder not needed anymore 2015-07-13 21:49:48 -07:00
Harshavardhana db679e58ff Add syncQueue, cpQueue back into defer 2015-07-13 21:42:53 -07:00
Harshavardhana f8940d2832 Add Close() methods for proxy readers 2015-07-13 16:45:33 -07:00
Harshavardhana 420b5d286c Fix hangs in cp and sync with --quiet and json flag 2015-07-13 16:19:46 -07:00
Anand Babu (AB) Periasamy 693c3ddd06 fixes quiet mode hang issue 2015-07-13 16:08:15 -07:00
Harshavardhana 7c7981658b Cosmetic changes for cmd cp 2015-07-13 09:33:08 -07:00
Anand Babu (AB) Periasamy 6dcd73551c Session V2 implementation for copy and sync 2015-07-12 20:47:49 -07:00
Harshavardhana 7314071070 User struct{} instead of bool for saving session, saves a 1byte 2015-07-01 11:31:32 -07:00
Harshavardhana d2c2064b25 Add fakeReader to sessions to populate progress bar as it builds and skips previously uploaded files 2015-06-30 15:24:09 -07:00
Harshavardhana 30e49ba525 root-path --> working-directory 2015-06-30 11:03:32 -07:00
Harshavardhana 46bf1af56c Treating --json as quiet mode for cp and sync operations 2015-06-30 10:26:48 -07:00
Harshavardhana d76cdd35d6 Save session rootPath to handle sessions from anywhere, relative or absolute 2015-06-29 13:41:59 -07:00
Harshavardhana 7848ffd99c Rename isMcConfigExist to isMcConfigExists for brevity 2015-06-23 20:28:12 -07:00
Harshavardhana 4b88ad7786 Move to structure printing everywhere, fix incorrect iodine usage at few places 2015-06-22 15:29:36 -07:00
Harshavardhana 1983caf2e2 Attempt to make informational message a structure 2015-06-22 07:44:08 -07:00
Harshavardhana a0ab414764 Add sync session, deprecate UUID usage move to a fixed length random english characters 2015-06-20 20:39:35 -07:00
Harshavardhana 14e33416e7 Add session tests, fix some bugs in session handling 2015-06-20 19:36:19 -07:00
Harshavardhana 20b99021cc Cp sessions now work properly 2015-06-20 18:17:18 -07:00
Harshavardhana 157bf10372 use session now saves in-transit information, remove usage of sync.Pool not needed 2015-06-20 15:54:49 -07:00
Harshavardhana da195b9b3a use doCopyCmd for now 2015-06-19 21:38:32 -07:00
Harshavardhana 183396ebb1 Add session handling for cp 2015-06-19 21:30:48 -07:00
Harshavardhana b7b626b04e Making caption fixed length and bumping caption usage to 18% 2015-06-16 21:33:57 -07:00
Harshavardhana dbb35c185a Code cleanup and readability for mc 2015-06-16 14:17:01 -07:00
Harshavardhana 476e184a90 Trim caption for just file names and getFixedWidth for 10%.
Remove spaces in between unicode characters, these were causing spurious space characters
2015-06-16 02:12:29 -07:00
Harshavardhana c04acf4d50 Convert all errors.New and fmt.Errorf to typed errors 2015-06-13 21:36:42 -07:00
Harshavardhana 0935a7b3d3 Simplify cp and sync routines - don't forget to close syncQueue channel :-) 2015-06-13 20:05:03 -07:00
Harshavardhana 13c3bfefef Pass in variables into go routines 2015-06-13 19:28:12 -07:00
Harshavardhana d52bbf6134 Move away from using pointers for cpURLs 2015-06-11 19:03:33 -07:00
Harshavardhana 08d38fb7da Use url.Separator everywhere that is needed 2015-06-10 21:54:05 -07:00
Harshavardhana 1fdb689f16 Use yielder inside cmd cp and sync 2015-06-10 19:54:42 -07:00
Harshavardhana 9a06671ac7 Make channels bufferred upto 10000 for cp and sync to fill in during prepareURLs stage 2015-06-10 17:26:58 -07:00
Harshavardhana c0bd41f446 Minor change print proper errors for cmd-sync 2015-06-10 10:46:00 -07:00
Harshavardhana 168926fa06 All methods use now target2Client, source2Client, url2Client helpers 2015-06-09 10:37:48 -07:00
Harshavardhana 127027e1f8 Rename all http references to https 2015-06-08 21:13:12 -07:00
Harshavardhana 911accab45 Fix bug in recursive listing in mc, update minio-go 2015-06-06 16:57:29 -07:00
Anis Elleuch 0d09189e4a Make copying command more informative especially with several source files 2015-06-02 20:01:27 +01:00
Anand Babu (AB) Periasamy 2c1c5254c7 reorg doc strings 2015-05-30 17:33:18 -07:00
Anand Babu (AB) Periasamy 69dbb658e1 removed copy-same-object check and some cleanup 2015-05-30 15:43:32 -07:00
Anand Babu (AB) Periasamy 69562deb23 replace intMax with math.Max 2015-05-30 12:16:58 -07:00
Anand Babu (AB) Periasamy 690bb2d705 yield CPU to progress bar builder 2015-05-29 01:03:26 -07:00
Harshavardhana 9da87f5113 Handle permission errors for progress bar 2015-05-28 11:07:20 -07:00
Anand Babu (AB) Periasamy 98299b267e new countlocker to balance progress bar and copy routines 2015-05-27 04:10:51 -07:00
Harshavardhana eac7e5c192 Merge pull request #698 from harshavardhana/pr_out_implement_console_fatals_errors_infos_prints_for_structure_input_and_printing 2015-05-26 18:00:50 -07:00
Harshavardhana 25f847b3b6 Implement console.Fatals, Errors, Infos, Prints for structure input and printing 2015-05-26 17:59:35 -07:00
Anis Elleuch 600a55d369 Fix cp cmd freeze when quiet enabled 2015-05-26 22:01:54 +01:00
Harshavardhana 947b2b8d67 Add barMsg to carry Error() method to purge erroneous size upon cp error 2015-05-25 12:41:57 -07:00
Harshavardhana c3eeee74e6 Handle too many open files, this time during reader() not being closed 2015-05-25 12:33:33 -07:00
Harshavardhana 192285c2af Remove console to depend on its own structures, instead let it deal with interface{} 2015-05-24 12:58:30 -07:00
Harshavardhana 54d0f9c553 Refactoring console printing style, supports --json even for error messages now - fixes #418 2015-05-22 18:27:07 -07:00