[#13] Add 'info' command for the FrostFS backend #17
Labels
No labels
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/rclone#17
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "KurlesHS/rclone:feat/frostfs_info_cmd"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The
about
command only provides certain numeric values related to file system quotas. To enable retrieving information about the container and, optionally, the object, I implemented the FrostFS backend commandinfo
.The output format follows the one used in the frostfs-cli utility with the 'container get' and 'object head' parameters.
To facilitate retrieving the object and container identifiers in automation scripts, I added an optional 'format' option to customize the output.
Usage examples:
close #13
LGTM
@ -157,1 +160,4 @@
var commandHelp = []fs.CommandHelp{
{
Name: "info",
Why do we use
info
instead ofabout
?I named the command for displaying information about backend objects
info
instead ofabout
to avoid confusion with the built-inabout
command in rclone. But if it's not OK, I can rename it toabout
. cc @alexvaninI've thought we can implement some methods to show info when built-in
about
command is used. This is wrong?Yes, this is wrong. There is no way to output additional information using the built-in
about
command, as it relies on theAbouter
interface implementation. This interface contains only a single method that returns a structure with six numeric parameters, which are then printed to stdout.https://git.frostfs.info/TrueCloudLab/rclone/src/branch/tcl/master/cmd/about/about.go#L120
bd909f9fdd
to4733d46d83
New commits pushed, approval review dismissed automatically according to repository settings
New commits pushed, approval review dismissed automatically according to repository settings