Bala FA
9ebb916902
Use words package from minio for DamerauLevenshteinDistance() ( #2075 )
2017-03-19 18:25:22 -07:00
Harshavardhana
4369359286
policy/links: Do not list prefixes in recursive mode. ( #2070 )
2017-03-14 19:41:26 +01:00
Harshavardhana
1dab94c625
Split config-host into remove, list, add commands ( #2069 )
...
This PR also adds convenient aliases for
- remove as `rm`
- list as `ls`
- add as `a`
Also brings much needed cleanup.
2017-03-11 18:50:56 -08:00
Krishna Srinivas
53cb92038a
Set secretKeyMaxLen = 100 to accomodate azure's account-key length. ( #2054 )
2017-03-08 16:53:04 -08:00
Harshavardhana
4425378b37
mc: Code cleanup after running gosimple tool ( #2065 )
2017-03-08 10:48:45 +01:00
Anis Elleuch
7fda78af40
info: Add sqs ARNs to the output ( #2063 )
2017-03-07 03:13:49 -08:00
Anis Elleuch
6e8320a6dc
cp: Fix guessing if target url is a directory ( #2062 )
...
This fixes `mc cp /etc/issue/ /tmp/new_dir/` where
/tmp/new_dir/ doesn't exist yet.
2017-03-07 02:56:14 -08:00
Harshavardhana
99682ecbdb
admin: HealObjectInfo can be nil skip it. ( #2059 )
...
Fixes #2058
2017-03-03 20:37:04 -08:00
Anis Elleuch
bf657a33e3
admin: Add set config command ( #2051 )
...
Which works this way:
```
cat config.json | mc admin config set myminio/
```
2017-03-03 15:18:23 -08:00
Anis Elleuch
8ce6f43e35
Stop mirror/diff when difference() sends error ( #2049 )
...
The caller of difference() now receives errors so it can
stop mirroring or difference calculation.
2017-03-01 11:06:26 -08:00
Anis Elleuch
ecee324c00
admin: Add config get command ( #2037 )
2017-02-28 14:33:26 -08:00
Harshavardhana
0934a39d73
cli: Fix more commands with inconsistent UI ( #2045 )
2017-02-28 00:21:46 +01:00
Anis Elleuch
7673ef084d
admin: Add info cmd and simplify service status ( #2036 )
2017-02-27 12:29:12 -08:00
Anis Elleuch
55e010ca52
mirror: Return exit code after mirror/watch error ( #2043 )
2017-02-27 11:45:16 -08:00
Harshavardhana
1ef242a5c1
Fix all cli commands to have consistent UI ( #2040 )
...
Fixes #2038
2017-02-27 11:44:26 -08:00
Anis Elleuch
798775775b
Use ` instead of unicode single quote ( #2033 )
...
‘ is not supported in some dumb terminals, use ` instead
2017-02-25 11:08:32 -08:00
Harshavardhana
2ca601ef22
cli: Remove help sub-command and --version flag ( #2030 )
...
This is to bring consistent CLI experience as before.
2017-02-21 23:00:09 +01:00
Harshavardhana
675fbee1f3
mc: Rewrite update and version command. ( #2026 )
...
- Supports docker image
- Supports showing how old your current
`mc` version is.
2017-02-20 22:04:54 +01:00
Harshavardhana
d055f0edac
fs: new files and folders created honors umask ( #2023 )
...
umask should be honored properly for all write
operations on filesystem. This is in line with
how all unix tools behave.
Fixes #2022
2017-02-19 22:41:56 +01:00
Harshavardhana
1f48b16acb
cli: Make sure to add "--help" flag for subcommands. ( #2024 )
...
--help is now back and prints properly with command
help template.
2017-02-19 12:30:16 -08:00
Harshavardhana
f7dbf9a20b
Let mc to be compiled with 1.7.5 onwards.
2017-02-18 03:05:34 -08:00
Harshavardhana
d7a3a0bce3
Move to go1.8 for all builds. ( #2019 )
2017-02-17 21:29:53 +01:00
Anis Elleuch
7483cdebfb
mirror: Quit after showing all progressbar updates ( #2020 )
...
mc can quit when mirror terminates but progress bar is not able
to show all made progress. This commit makes mc waits until all updates
are sent to the status channel.
2017-02-17 12:10:01 -08:00
Harshavardhana
e7e44b96ee
Avoid printing hidden flags and commands with custom help. ( #2015 )
...
Always use .VisibleFlags and .VisibleCommands in templates
to avoid printing hidden flags and commands in the help
template.
2017-02-15 02:05:29 -08:00
Anis Elleuch
43388a06ca
client-s3: Recursive List() avoids listing buckets ( #2014 )
...
This fixes bug in `mc mirror myminio/ /tmp/dir` since objectDifference() can only
take care of mirroring objects.
2017-02-13 13:47:49 -08:00
Anis Elleuch
ace3f452c3
mirror: Mirror buckets if only alias is specified ( #2006 )
2017-02-12 11:20:05 -08:00
Anis Elleuch
fb9d10772a
help: Use {{.HelpName}} in help/examples template ( #2013 )
...
It is easier to use {{.HelpName}} in help text template to print
the mc binary name plus the whole command hierarchy (binary name +
command + subcommand, etc..)
2017-02-12 09:30:00 -08:00
Bala FA
a5014a8c71
trie: use trie package in minio. ( #2010 )
2017-02-10 19:28:45 -08:00
Anis Elleuch
8ce4b39fed
admin: Rename creds to password subcommand ( #2009 )
...
Use new command "mc admin password" to change creds
2017-02-09 12:13:45 -08:00
Bala FA
f01f94a691
rm: fix multiple args handling ( #2008 )
2017-02-09 01:18:56 -08:00
Harshavardhana
4fd1500312
Fix mc admin restart message.
2017-02-07 01:49:43 -08:00
Harshavardhana
5b74d8c444
Bring --watch option back for mirror to make scripting as default. ( #2001 )
2017-02-06 11:58:20 -08:00
Harshavardhana
cca8c10f33
mirror: For non-s3 make sure we copy and exit properly. ( #1995 )
2017-02-03 15:55:44 -08:00
Anis Elleuch
ad850412d2
lock: Update madmin pkg and use duration flag name ( #1994 )
...
* Use new errors format returned madmin APIs
* Use duration query name in Locks API
2017-02-01 12:19:27 -08:00
Anis Elleuch
4f0c2bf376
mirror: Avoid session and enable continuous mirror ( #1992 )
...
* Watch mode is enabled by default without specifying any flag
* Saving session is removed since mirror is incremental
* Remove the use of queue to simpliy the code
2017-01-31 09:39:39 -08:00
Harshavardhana
fa75251c76
Allow saving accessKey, secretKey which is empty. ( #1990 )
...
Fixes #1989
2017-01-25 17:42:45 -08:00
Anis Elleuch
3fefebd05d
heal: Don't print info if heal obj returns an err ( #1988 )
...
When heal object returns an error, just print an error and continue with the
next objects.
2017-01-25 13:50:45 -08:00
Anis Elleuch
9c81d374b1
heal: Show help when alias is not specified ( #1985 )
2017-01-25 12:30:22 -08:00
Anis Elleuch
38c3703d08
admin: Heal format in heal command ( #1980 )
2017-01-24 15:05:32 -08:00
Anis Elleuch
973dc13cc0
admin: Set 5 min timeout for header response ( #1982 )
...
For admin management API requests, we set 5 min as default value
2017-01-24 23:05:19 +01:00
Aaron Walker
bca93f6c83
Mirror: normalize keys before comparing ( #1978 )
...
vendorize golang.org/x/text/unicode/norm dependency
vendorize golang.org/x/text/transform dependency
add example of multiple encodings
2017-01-24 11:51:59 -08:00
Anis Elleuch
caf6bfb76f
admin: service status uses new response format ( #1979 )
...
server & service fields are added to JSON response
2017-01-23 17:01:21 -08:00
Harshavardhana
76180184a5
client: S3 and Admin clients should have TLSConfig. ( #1977 )
...
TLSConfig should be allocated regardless of the
URL scheme so that the re-direction works properly.
Without this change if a server is configured with
self signed certs redirection would fail with
```
x509: certificate signed by unknown authority
```
Allocate TLSConfig always with default values.
2017-01-23 14:38:56 -08:00
Anis Elleuch
0e1e954768
Add new admin Heal command ( #1958 )
...
e.g.: `mc admin heal list myminio/` and `mc admin heal myminio/testbucket`
Also, some heal files that belong madmin package have been added
2017-01-22 15:19:06 -08:00
Anis Elleuch
b031817fce
admin: Add creds command ( #1976 )
...
mc admin service creds command set new access and secret keys in the specified Minio server
2017-01-22 15:17:55 -08:00
Anis Elleuch
6b2e63e66c
locks: Use new json format for list/clear results ( #1975 )
...
Also minio-admin package has been updated
2017-01-19 12:07:45 -08:00
Anis Elleuch
085a1e512f
flags: use IsSet to fetch for cli flags ( #1969 )
...
cli package fails to search for global flags when we use many level of subcommands. This PR uses context.IsSet() instead.
2017-01-19 11:25:35 -08:00
Harshavardhana
d87078bee6
service: Remove service stop command. ( #1967 )
...
Deprecate and remove `stop` admin command.
2017-01-14 16:38:01 -08:00
Harshavardhana
50228116e1
Fix source code format issues.
2017-01-13 16:55:25 -08:00
poornas
a8acbe5cfb
sort output of mc config host list ( #1959 )
2017-01-10 13:42:34 -08:00