The .golangci.yml file contains the root level key `linters-settings`
twice, resulting in following error when we run `make lint`:
```
> make lint
Running lint check
ERRO Can't read config: can't read viper config: While parsing config: yaml: unmarshal errors:
line 26: mapping key "linters-settings" already defined at line 1
make: *** [Makefile:36: lint] Error 3
```
Fixed by merging into a single key.
e.g:
`mc admin trace --request-header "User-Agent: *hadoop*" <alias>`
to print all S3 requests sent by Hadoop
`mc admin trace --request-header "!X-Minio-Source*" <alias>`
to avoid printing S3 requests related to replication
terminal control was not relinquished since ui.Start()
must not be run in a go-routine as it is expected
to be a blocking call, and must be serialized with when
an application exits.
refactor the 'scanner info/status' to ensure we have
correct behavior.
This PR also renames 'info-> status', keeps the older
one as alias for now.
The code that is being modified is from 2016. Currently, it does not set
an exit code status in the following cases, all of them are returned by
the FS layer:
BrokenSymlink
TooManyLevelsSymlink
PathNotFound
PathInsufficientPermission
There is no reason to avoid setting an exit code in this case. The only
functional change of this PR is by setting an exit code
many commands seem to have sort of had
stopped following the expected convention
in `mc` to differentiate *probe.Error.
To keep things readable this PR is the
first attempt at such a cleanup.
Earlier, the parsed config contained the `target` of the form
`subsystem:target` e.g. `logger_webhook:subnet`. Now it contains only
the target e.g. `subnet`.
Updating the `support logs status` command code accordingly to ensure
that it prints correct output.
- When the cluster is registered but either license or api-key
are available in the config, and when `--airgap` is not passed
to the command, try to automatically fetch and store the other
both.
- Add `--api-key` flag to `mc support diag`
- Use header-based auth with subnet
- Introduce a common function to initialize/check connectivity with subnet
- Make the health report upload function generic so that it can be used
by other commands like profile in future
- Add a global variable for airgapped mode
- Add more examples to `mc license register`