feat(cmd): display remote storage states for workers
This commit is contained in:
1 parent
c0cf5c4e1b
commit
4131c4b324
1 file changed
+17
@@ -337,6 +337,23 @@ func printItemTable(item *workers.Worker, resp *api.Response) string {
|
||||
}
|
||||
}
|
||||
|
||||
if len(item.RemoteStorageState) > 0 {
|
||||
ret = append(ret,
|
||||
"",
|
||||
" Remote Storage State:",
|
||||
)
|
||||
for storageBucketId, state := range item.RemoteStorageState {
|
||||
ret = append(ret,
|
||||
fmt.Sprintf(" %s:", storageBucketId),
|
||||
fmt.Sprintf(" Status: %s", state.Status),
|
||||
" Permissions:",
|
||||
fmt.Sprintf(" Write: %s", state.Permissions.Write),
|
||||
fmt.Sprintf(" Read: %s", state.Permissions.Read),
|
||||
fmt.Sprintf(" Delete: %s", state.Permissions.Delete),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
if len(item.DirectlyConnectedDownstreamWorkers) > 0 {
|
||||
ret = append(ret,
|
||||
"",
|
||||
|
||||
Reference in new issue
Block a user