The current spinner mechanism looks for the data categories (CPU, drives, memory, etc) sequentially. If any of the category's data is not received, it gets stuck there. If a new data category is introduced without changing the version of the HealthInfo struct, then `mc support diag` can get stuck for the new category when talking to an older version of minio. So instead of looking for the categories one by one, start a spinner for each category at the beginning, and mark it as done as soon as the corresponding data is received. When the last category (admin info) is received, mark any pending category as done so that the command continues with the rest of the processing.
132 lines
5.3 KiB
AMPL
132 lines
5.3 KiB
AMPL
module github.com/minio/mc
|
|
|
|
go 1.19
|
|
|
|
require (
|
|
github.com/charmbracelet/bubbletea v0.24.2
|
|
github.com/cheggaaa/pb v1.0.29
|
|
github.com/dustin/go-humanize v1.0.1
|
|
github.com/fatih/color v1.15.0
|
|
github.com/go-ole/go-ole v1.3.0 // indirect
|
|
github.com/goccy/go-json v0.10.2 // indirect
|
|
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510
|
|
github.com/google/uuid v1.3.1
|
|
github.com/inconshreveable/mousetrap v1.1.0
|
|
github.com/json-iterator/go v1.1.12
|
|
github.com/klauspost/compress v1.16.7
|
|
github.com/mattn/go-ieproxy v0.0.11
|
|
github.com/mattn/go-isatty v0.0.19
|
|
github.com/minio/cli v1.24.2
|
|
github.com/minio/colorjson v1.0.6
|
|
github.com/minio/filepath v1.0.0
|
|
github.com/minio/md5-simd v1.1.2 // indirect
|
|
github.com/minio/minio-go/v7 v7.0.63
|
|
github.com/minio/selfupdate v0.6.0
|
|
github.com/minio/sha256-simd v1.0.1
|
|
github.com/mitchellh/go-homedir v1.1.0
|
|
github.com/pkg/xattr v0.4.9
|
|
github.com/posener/complete v1.2.3
|
|
github.com/prometheus/client_golang v1.16.0
|
|
github.com/prometheus/prom2json v1.3.3
|
|
github.com/rjeczalik/notify v0.9.3
|
|
github.com/rs/xid v1.5.0
|
|
github.com/shirou/gopsutil/v3 v3.23.8
|
|
github.com/tidwall/gjson v1.16.0
|
|
golang.org/x/crypto v0.14.0 // indirect
|
|
golang.org/x/net v0.17.0
|
|
golang.org/x/text v0.13.0
|
|
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c
|
|
gopkg.in/h2non/filetype.v1 v1.0.5
|
|
gopkg.in/yaml.v2 v2.4.0
|
|
)
|
|
|
|
require (
|
|
github.com/charmbracelet/bubbles v0.16.1
|
|
github.com/charmbracelet/lipgloss v0.8.0
|
|
github.com/gdamore/tcell/v2 v2.6.0
|
|
github.com/golang-jwt/jwt/v4 v4.5.0
|
|
github.com/juju/ratelimit v1.0.2
|
|
github.com/minio/madmin-go/v3 v3.0.21
|
|
github.com/minio/pkg/v2 v2.0.2
|
|
github.com/muesli/reflow v0.3.0
|
|
github.com/navidys/tvxwidgets v0.3.0
|
|
github.com/olekukonko/tablewriter v0.0.5
|
|
github.com/prometheus/client_model v0.4.0
|
|
github.com/rivo/tview v0.0.0-20230909130259-ba6a2a345459
|
|
github.com/vbauerster/mpb/v8 v8.6.2
|
|
golang.org/x/term v0.13.0
|
|
)
|
|
|
|
require (
|
|
aead.dev/minisign v0.2.0 // indirect
|
|
github.com/VividCortex/ewma v1.2.0 // indirect
|
|
github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d // indirect
|
|
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
|
|
github.com/kr/pretty v0.3.1 // indirect
|
|
github.com/minio/mux v1.9.0 // indirect
|
|
github.com/rogpeppe/go-internal v1.10.0 // indirect
|
|
github.com/shoenig/go-m1cpu v0.1.6 // indirect
|
|
google.golang.org/genproto/googleapis/api v0.0.0-20230913181813-007df8e322eb // indirect
|
|
google.golang.org/genproto/googleapis/rpc v0.0.0-20230913181813-007df8e322eb // indirect
|
|
)
|
|
|
|
require (
|
|
github.com/beorn7/perks v1.0.1 // indirect
|
|
github.com/cespare/xxhash/v2 v2.2.0 // indirect
|
|
github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81 // indirect
|
|
github.com/coreos/go-semver v0.3.1 // indirect
|
|
github.com/coreos/go-systemd/v22 v22.5.0 // indirect
|
|
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 // indirect
|
|
github.com/fatih/structs v1.1.0 // indirect
|
|
github.com/gdamore/encoding v1.0.0 // indirect
|
|
github.com/gogo/protobuf v1.3.2 // indirect
|
|
github.com/golang/protobuf v1.5.3 // indirect
|
|
github.com/hashicorp/errwrap v1.1.0 // indirect
|
|
github.com/hashicorp/go-multierror v1.1.1 // indirect
|
|
github.com/jedib0t/go-pretty/v6 v6.4.7
|
|
github.com/klauspost/cpuid/v2 v2.2.5 // indirect
|
|
github.com/kr/text v0.2.0 // indirect
|
|
github.com/lestrrat-go/backoff/v2 v2.0.8 // indirect
|
|
github.com/lestrrat-go/blackmagic v1.0.1 // indirect
|
|
github.com/lestrrat-go/httpcc v1.0.1 // indirect
|
|
github.com/lestrrat-go/iter v1.0.2 // indirect
|
|
github.com/lestrrat-go/jwx v1.2.26 // indirect
|
|
github.com/lestrrat-go/option v1.0.1 // indirect
|
|
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
|
|
github.com/lufia/plan9stats v0.0.0-20230326075908-cb1d2100619a // indirect
|
|
github.com/mattn/go-colorable v0.1.13 // indirect
|
|
github.com/mattn/go-localereader v0.0.1 // indirect
|
|
github.com/mattn/go-runewidth v0.0.15 // indirect
|
|
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
|
|
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
|
|
github.com/modern-go/reflect2 v1.0.2 // indirect
|
|
github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 // indirect
|
|
github.com/muesli/cancelreader v0.2.2 // indirect
|
|
github.com/muesli/termenv v0.15.2
|
|
github.com/philhofer/fwd v1.1.2 // indirect
|
|
github.com/pkg/errors v0.9.1 // indirect
|
|
github.com/power-devops/perfstat v0.0.0-20221212215047-62379fc7944b // indirect
|
|
github.com/prometheus/common v0.44.0 // indirect
|
|
github.com/prometheus/procfs v0.11.1
|
|
github.com/rivo/uniseg v0.4.4 // indirect
|
|
github.com/secure-io/sio-go v0.3.1 // indirect
|
|
github.com/sirupsen/logrus v1.9.3 // indirect
|
|
github.com/tidwall/match v1.1.1 // indirect
|
|
github.com/tidwall/pretty v1.2.1 // indirect
|
|
github.com/tinylib/msgp v1.1.8 // indirect
|
|
github.com/tklauser/go-sysconf v0.3.12 // indirect
|
|
github.com/tklauser/numcpus v0.6.1 // indirect
|
|
github.com/yusufpapurcu/wmi v1.2.3 // indirect
|
|
go.etcd.io/etcd/api/v3 v3.5.9 // indirect
|
|
go.etcd.io/etcd/client/pkg/v3 v3.5.9 // indirect
|
|
go.etcd.io/etcd/client/v3 v3.5.9 // indirect
|
|
go.uber.org/multierr v1.11.0 // indirect
|
|
go.uber.org/zap v1.25.0 // indirect
|
|
golang.org/x/sync v0.3.0 // indirect
|
|
golang.org/x/sys v0.13.0
|
|
google.golang.org/genproto v0.0.0-20230913181813-007df8e322eb // indirect
|
|
google.golang.org/grpc v1.58.0 // indirect
|
|
google.golang.org/protobuf v1.31.0 // indirect
|
|
gopkg.in/ini.v1 v1.67.0 // indirect
|
|
)
|