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
poornas
f9d4c4dbac
fixed formatting for list host ( #1955 )
2017-01-09 18:48:22 -08:00
Anis Elleuch
17abc6c736
admin service: json output depends on backend type ( #1950 )
...
'Type' field in the json output contains 'FS' or 'XL', also read/write quorums information
are hidden and online/offline disks are shown only when the backend storage is XL
2017-01-09 08:49:53 -08:00
Anis Elleuch
94bd9564d0
admin: fatal message for unknown aliases ( #1953 )
...
This change issues a fatal message when the provided alias in cli is not known
2017-01-09 08:47:43 -08:00
Anis Elleuch
c6cb6595be
admin: Simplify client initialization ( #1951 )
...
newAdminClient() is added to simplify initialization and take care of ssl connections
and tracing http request
2017-01-07 16:00:22 -08:00
Harshavardhana
5d3c4ed96c
admin/lock: list locks defaults to 24hrs and older.
2017-01-06 01:42:47 -08:00
Anis Elleuch
7cec8f2285
Add admin lock command ( #1942 )
2017-01-06 01:29:49 -08:00
Anis Elleuch
86777e7863
links: Print encoded form of public URLs ( #1947 )
2017-01-05 12:16:24 -08:00
Harshavardhana
853fea16b4
Enable support for s3 transfer acceleration. ( #1946 )
...
Simply use
```
mc config host add s3-accel https://s3-accelerate.amazonaws.com <access_id> <secret_id>
```
This is all is needed, if you have buckets which has s3 acceleration
enabled it just works transparently.
Fixes #1912
2017-01-05 01:36:01 -08:00
Harshavardhana
9cf76b1233
api: StatObject if listing returned missing file. ( #1945 )
2017-01-04 18:36:09 -08:00
Anis Elleuch
66a65aab02
Add policy links command ( #1943 )
2017-01-04 08:24:58 -08:00
Harshavardhana
5581915bc0
session: Validate session config header version. ( #1940 )
2017-01-01 13:30:10 -08:00
Harshavardhana
ee7f4e1d52
Simplify loading config and use config loader with version check. ( #1939 )
2017-01-01 13:02:27 -08:00
Harshavardhana
8c65985cd0
rm: Allow delete of objects with / at the end. ( #1937 )
...
Fixes #1931
2017-01-01 10:26:00 -08:00
Anis Elleuch
9193eef1c9
clientfs: Fix policy mode calc. in GetAccess() ( #1936 )
...
Masking target directory file mode to be able to perform correct comparaison with policy standard file permissions in FS mode
2016-12-23 06:54:45 -08:00
Anis Elleuch
e90e9bc352
admin: Introduce the new service command ( #1922 )
...
Introducing Admin Service cmd to mc
2016-12-22 13:37:55 -08:00
Aditya Manthramurthy
4a96d65408
gofmt fixes ( #1930 )
2016-12-16 08:29:00 -08:00