Skip to content

Commit

Permalink
OBD Cli Implementation
Browse files Browse the repository at this point in the history
- Periodically get updates from minio as OBD tests are completed on the backend
- Implement a spinner while waiting for data
  • Loading branch information
wlan0 committed Mar 31, 2020
1 parent 06146e8 commit 2a12089
Show file tree
Hide file tree
Showing 8 changed files with 217 additions and 123 deletions.
8 changes: 4 additions & 4 deletions cmd/admin-config-export.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
package cmd

import (
json "github.com/minio/mc/pkg/colorjson"
"fmt"

"github.com/minio/cli"
json "github.com/minio/mc/pkg/colorjson"
"github.com/minio/mc/pkg/probe"
)

Expand All @@ -47,7 +47,7 @@ EXAMPLES:

// configExportMessage container to hold locks information.
type configExportMessage struct {
Status string `json:"status"`
Status string `json:"status"`
Value interface{} `json:"value"`
}

Expand Down Expand Up @@ -87,7 +87,7 @@ func mainAdminConfigExport(ctx *cli.Context) error {
// Call get config API
buf, e := client.GetConfig(globalContext)
fatalIf(probe.NewError(e), "Cannot get server config")

// Print
printMsg(configExportMessage{
Value: fmt.Sprintf("%s", buf),
Expand Down
2 changes: 1 addition & 1 deletion cmd/admin-config-help.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
package cmd

import (
json "github.com/minio/mc/pkg/colorjson"
"strings"
"text/tabwriter"
"text/template"

"github.com/fatih/color"
json "github.com/minio/mc/pkg/colorjson"
"github.com/minio/mc/pkg/probe"
"github.com/minio/minio/pkg/madmin"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/admin-config-import.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
package cmd

import (
json "github.com/minio/mc/pkg/colorjson"
"fmt"
"os"

"github.com/fatih/color"
"github.com/minio/cli"
json "github.com/minio/mc/pkg/colorjson"
"github.com/minio/mc/pkg/probe"
"github.com/minio/minio/pkg/console"
)
Expand Down
Loading

0 comments on commit 2a12089

Please sign in to comment.