1
0
mirror of https://github.com/minio/mc.git synced 2025-11-12 01:02:26 +03:00
Commit Graph

68 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
Anand Babu (AB) Periasamy
ca7f612ac4 Interpret - as stdin 2015-10-08 23:02:16 -07:00
Harshavardhana
0564b683a5 Copy should verify for only buckets 2015-09-30 13:07:11 -07:00
Harshavardhana
ee65cf7ab8 Fix bugs related to cp, mirror code argument validation 2015-09-29 00:17:16 -07:00
Anand Babu (AB) Periasamy
91100b72ed alias support with colon requirement 2015-08-29 18:02:32 -07:00
Anand Babu (AB) Periasamy
bb3c89d844 convert remaining typed errors to probe errors 2015-08-24 22:29:50 -07:00
Anand Babu (AB) Periasamy
831db52dcf thread-safe typed errors 2015-08-24 12:55:11 -07:00
Anand Babu (AB) Periasamy
40ff9f1033 re-vendorize probe and simplfy typed errors 2015-08-24 04:09:18 -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
Anand Babu (AB) Periasamy
b10d2648e8 second update to error messages 2015-08-22 02:14:00 -07:00
Harshavardhana
dfd1b29d5f Improve error messages 2015-08-20 17:22:38 -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
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
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
e6fd52f026 Rename ifFatal and ifError as Fatal, Error 2015-08-03 22:19:45 -07:00
Harshavardhana
e003a242f6 Handle errors better with new changes, changes across cp, mirror, mb 2015-08-03 21:13:29 -07:00
Harshavardhana
e7dab5f1cf Migrating from iodine to probe 2015-08-03 11:04:34 -07:00
Harshavardhana
16fdb569c9 Add copy and cast limited tests 2015-07-27 15:25:34 -07:00
Harshavardhana
847ef58642 Let target directory be created if doesn't exist with prefix path 2015-07-26 13:40:27 -07:00
Harshavardhana
0f3e494de4 Check for url's when target path doesn't have bucket, error out quickly 2015-07-26 12:12:46 -07:00
Harshavardhana
4eb519fa6c Autogenerate config, for the first time no more config generate 2015-07-26 00:24:08 -07:00
Harshavardhana
1afc92cb49 Add cast syntax check logic
-- TypeA for both cast and copy targetURL check shouldn't fail it it doesn't exist
   such is a common occurrence of not having a target, instead we verify if it exists
   is it a directory?
-- Rename all 'directory' references to folder
2015-07-24 14:43:47 -07:00
Anand Babu (AB) Periasamy
9dd27c5e57 cp url syntax checker and some fixes 2015-07-24 12:24:21 -07:00
Harshavardhana
2f253f68b6 Verify if mc config exists for cp and cast commands 2015-07-23 22:49:12 -07:00
Harshavardhana
f06456ddd1 Make copy look like cast in URL handling 2015-07-23 20:34:31 -07:00
Harshavardhana
0f23c1a3d7 Add proper errors 2015-07-23 17:38:53 -07:00
Harshavardhana
56a725ef18 Handle cases where prefix exists or not for both cast and cp 2015-07-22 23:22:19 -07:00
Harshavardhana
71ed556dd0 Remove unncessary stat() checks for TypeC in cp and cast - fixes #803 2015-07-22 20:53:21 -07:00
Anand Babu (AB) Periasamy
7c2f3fbe4e do not stat on url prepration. disable force flag 2015-07-21 19:13:10 -07:00
Anand Babu (AB) Periasamy
9f5f1e9a53 syntax checker for cast command 2015-07-18 19:25:10 -07:00
Harshavardhana
f8eaa96b1d Add force flag support to avoid over-writing destination 2015-07-16 22:39:48 -07:00
Harshavardhana
7e0fce66e7 Formally now sync supports file and directories mix-match 2015-07-16 20:04:46 -07:00
Anand Babu (AB) Periasamy
54183d783b rewrite of sync url processing 2015-07-16 19:29:33 -07:00
Harshavardhana
25ada41480 Implement NewIodine() in a simpler way 2015-07-15 18:39:17 -07:00
Harshavardhana
8fa80fbf37 Revert "Add mc top level error handling without printing stack traces."
This reverts commit ab4f64b5e3.
2015-07-15 17:25:42 -07:00
Harshavardhana
ab4f64b5e3 Add mc top level error handling without printing stack traces. 2015-07-15 16:53:28 -07:00
Anand Babu (AB) Periasamy
6dcd73551c Session V2 implementation for copy and sync 2015-07-12 20:47:49 -07:00
Harshavardhana
01b10bd4b1 Simplify target2Client and sourc2Client usage - use url2Stat() 2015-06-23 16:49:23 -07:00
Harshavardhana
9b901bac21 Fix sync bug when in TypeA and TypeB sync style source doesn't exist 2015-06-22 15:57:02 -07:00
Harshavardhana
dbb35c185a Code cleanup and readability for mc 2015-06-16 14:17:01 -07:00
Harshavardhana
c04acf4d50 Convert all errors.New and fmt.Errorf to typed errors 2015-06-13 21:36:42 -07:00
Harshavardhana
d52bbf6134 Move away from using pointers for cpURLs 2015-06-11 19:03:33 -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
168926fa06 All methods use now target2Client, source2Client, url2Client helpers 2015-06-09 10:37:48 -07:00
Harshavardhana
e53f009a9d More prefix url fixes, all combinations work as intended 2015-06-08 11:47:28 -07:00
Harshavardhana
6c7dbcaf4e More prefix url cleanup 2015-06-07 02:55:29 -07:00