mirror of
https://github.com/minio/mc.git
synced 2026-01-04 02:44:40 +03:00
Update to minio/pkg v2 (#4674)
This commit is contained in:
committed by
GitHub
parent
5a5a9973c3
commit
e2056fb057
@@ -30,7 +30,7 @@ import (
|
||||
"github.com/minio/cli"
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminClusterBucketExportCmd = cli.Command{
|
||||
|
||||
@@ -32,7 +32,7 @@ import (
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/madmin-go/v3"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminClusterBucketImportCmd = cli.Command{
|
||||
|
||||
@@ -29,7 +29,7 @@ import (
|
||||
"github.com/minio/cli"
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminClusterIAMExportCmd = cli.Command{
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
"github.com/klauspost/compress/zip"
|
||||
"github.com/minio/cli"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminClusterIAMImportCmd = cli.Command{
|
||||
|
||||
@@ -28,7 +28,7 @@ import (
|
||||
"github.com/minio/cli"
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminConfigExportCmd = cli.Command{
|
||||
|
||||
@@ -29,7 +29,7 @@ import (
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/madmin-go/v3"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminConfigGetCmd = cli.Command{
|
||||
|
||||
@@ -26,7 +26,7 @@ import (
|
||||
"github.com/minio/cli"
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var historyListFlags = []cli.Flag{
|
||||
|
||||
@@ -25,7 +25,7 @@ import (
|
||||
"github.com/minio/cli"
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminConfigImportCmd = cli.Command{
|
||||
|
||||
@@ -25,7 +25,7 @@ import (
|
||||
"github.com/minio/cli"
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminConfigEnvFlags = []cli.Flag{
|
||||
|
||||
@@ -24,7 +24,7 @@ import (
|
||||
"github.com/minio/cli"
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminConfigRestoreCmd = cli.Command{
|
||||
|
||||
@@ -26,7 +26,7 @@ import (
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/madmin-go/v3"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminConfigSetCmd = cli.Command{
|
||||
|
||||
@@ -25,7 +25,7 @@ import (
|
||||
"github.com/minio/cli"
|
||||
"github.com/minio/madmin-go/v3"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminDecommissionCancelCmd = cli.Command{
|
||||
|
||||
@@ -24,7 +24,7 @@ import (
|
||||
"github.com/minio/cli"
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminDecommissionStartCmd = cli.Command{
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
"github.com/minio/cli"
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminDecommissionStatusCmd = cli.Command{
|
||||
|
||||
@@ -26,7 +26,7 @@ import (
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/madmin-go/v3"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminGroupAddCmd = cli.Command{
|
||||
|
||||
@@ -22,7 +22,7 @@ import (
|
||||
"github.com/minio/cli"
|
||||
"github.com/minio/madmin-go/v3"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminGroupEnableCmd = cli.Command{
|
||||
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
"github.com/fatih/color"
|
||||
"github.com/minio/cli"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminGroupInfoCmd = cli.Command{
|
||||
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
"github.com/fatih/color"
|
||||
"github.com/minio/cli"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminGroupListCmd = cli.Command{
|
||||
|
||||
@@ -22,7 +22,7 @@ import (
|
||||
"github.com/minio/cli"
|
||||
"github.com/minio/madmin-go/v3"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminGroupRemoveCmd = cli.Command{
|
||||
|
||||
@@ -29,7 +29,7 @@ import (
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/madmin-go/v3"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -31,7 +31,7 @@ import (
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/madmin-go/v3"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -33,7 +33,7 @@ import (
|
||||
"github.com/minio/madmin-go/v3"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/minio-go/v7/pkg/set"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminInfoCmd = cli.Command{
|
||||
|
||||
@@ -24,7 +24,7 @@ import (
|
||||
"github.com/fatih/color"
|
||||
"github.com/minio/cli"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
"golang.org/x/term"
|
||||
)
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
"github.com/minio/cli"
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminKMSKeyListCmd = cli.Command{
|
||||
|
||||
@@ -24,7 +24,7 @@ import (
|
||||
"github.com/minio/cli"
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminKMSKeyStatusCmd = cli.Command{
|
||||
|
||||
@@ -28,7 +28,7 @@ import (
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/madmin-go/v3"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
const logTimeFormat string = "15:04:05 MST 01/02/2006"
|
||||
|
||||
@@ -26,7 +26,7 @@ import (
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/madmin-go/v3"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminPolicyCreateCmd = cli.Command{
|
||||
|
||||
@@ -24,7 +24,7 @@ import (
|
||||
"github.com/minio/cli"
|
||||
"github.com/minio/madmin-go/v3"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var policyInfoFlags = []cli.Flag{
|
||||
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
"github.com/fatih/color"
|
||||
"github.com/minio/cli"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminPolicyListCmd = cli.Command{
|
||||
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
"github.com/fatih/color"
|
||||
"github.com/minio/cli"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminPolicyRemoveCmd = cli.Command{
|
||||
|
||||
@@ -24,7 +24,7 @@ import (
|
||||
"github.com/fatih/color"
|
||||
"github.com/minio/cli"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
|
||||
json "github.com/minio/colorjson"
|
||||
yaml "gopkg.in/yaml.v2"
|
||||
|
||||
@@ -24,7 +24,7 @@ import (
|
||||
"github.com/minio/cli"
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminRebalanceStartCmd = cli.Command{
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
"github.com/fatih/color"
|
||||
"github.com/minio/cli"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminRebalanceStatusCmd = cli.Command{
|
||||
|
||||
@@ -24,7 +24,7 @@ import (
|
||||
"github.com/minio/cli"
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminRebalanceStopCmd = cli.Command{
|
||||
|
||||
@@ -25,7 +25,7 @@ import (
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/madmin-go/v3"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminReplicateAddCmd = cli.Command{
|
||||
|
||||
@@ -25,7 +25,7 @@ import (
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/madmin-go/v3"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminReplicateInfoCmd = cli.Command{
|
||||
|
||||
@@ -25,7 +25,7 @@ import (
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/madmin-go/v3"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminReplicateRemoveFlags = []cli.Flag{
|
||||
|
||||
@@ -26,7 +26,7 @@ import (
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/madmin-go/v3"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminReplicateResyncCancelCmd = cli.Command{
|
||||
|
||||
@@ -26,7 +26,7 @@ import (
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/madmin-go/v3"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminReplicateResyncStartCmd = cli.Command{
|
||||
|
||||
@@ -32,7 +32,7 @@ import (
|
||||
"github.com/minio/cli"
|
||||
"github.com/minio/madmin-go/v3"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
"github.com/olekukonko/tablewriter"
|
||||
)
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ import (
|
||||
"github.com/minio/madmin-go/v3"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/minio-go/v7/pkg/replication"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminReplicateStatusFlags = []cli.Flag{
|
||||
|
||||
@@ -26,7 +26,7 @@ import (
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/madmin-go/v3"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminReplicateUpdateFlags = []cli.Flag{
|
||||
|
||||
@@ -34,7 +34,7 @@ import (
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/madmin-go/v3"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
"github.com/olekukonko/tablewriter"
|
||||
)
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ import (
|
||||
"github.com/fatih/color"
|
||||
"github.com/minio/cli"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminScannerTraceFlags = []cli.Flag{
|
||||
|
||||
@@ -22,7 +22,7 @@ import (
|
||||
"github.com/minio/cli"
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminServiceFreezeCmd = cli.Command{
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/madmin-go/v3"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminServiceRestartCmd = cli.Command{
|
||||
|
||||
@@ -22,7 +22,7 @@ import (
|
||||
"github.com/minio/cli"
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminServiceStopCmd = cli.Command{
|
||||
|
||||
@@ -22,7 +22,7 @@ import (
|
||||
"github.com/minio/cli"
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminServiceUnfreezeCmd = cli.Command{
|
||||
|
||||
@@ -34,7 +34,7 @@ import (
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/madmin-go/v3"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminTraceFlags = []cli.Flag{
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
"github.com/minio/cli"
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminUpdateFlags = []cli.Flag{
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
"github.com/minio/cli"
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
"golang.org/x/term"
|
||||
)
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ import (
|
||||
"github.com/minio/cli"
|
||||
"github.com/minio/madmin-go/v3"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminUserDisableCmd = cli.Command{
|
||||
|
||||
@@ -22,7 +22,7 @@ import (
|
||||
"github.com/minio/cli"
|
||||
"github.com/minio/madmin-go/v3"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminUserEnableCmd = cli.Command{
|
||||
|
||||
@@ -25,7 +25,7 @@ import (
|
||||
"github.com/minio/cli"
|
||||
"github.com/minio/madmin-go/v3"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminUserInfoCmd = cli.Command{
|
||||
|
||||
@@ -23,7 +23,7 @@ import (
|
||||
"github.com/fatih/color"
|
||||
"github.com/minio/cli"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminUserListCmd = cli.Command{
|
||||
|
||||
@@ -23,7 +23,7 @@ import (
|
||||
"github.com/fatih/color"
|
||||
"github.com/minio/cli"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminUserPolicyCmd = cli.Command{
|
||||
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
"github.com/fatih/color"
|
||||
"github.com/minio/cli"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminUserRemoveCmd = cli.Command{
|
||||
|
||||
@@ -25,8 +25,8 @@ import (
|
||||
"github.com/minio/cli"
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
iampolicy "github.com/minio/pkg/iam/policy"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
"github.com/minio/pkg/v2/policy"
|
||||
)
|
||||
|
||||
var adminUserSTSAcctSubcommands = []cli.Command{
|
||||
@@ -107,7 +107,7 @@ func mainAdminUserSTSAcctInfo(ctx *cli.Context) error {
|
||||
if stsInfo.Policy == "" {
|
||||
fatalIf(errDummy().Trace(args...), "No policy found associated to the specified service account. Check the policy of its parent user.")
|
||||
}
|
||||
p, e := iampolicy.ParseConfig(strings.NewReader(stsInfo.Policy))
|
||||
p, e := policy.ParseConfig(strings.NewReader(stsInfo.Policy))
|
||||
fatalIf(probe.NewError(e).Trace(args...), "Unable to parse policy.")
|
||||
enc := json.NewEncoder(os.Stdout)
|
||||
enc.SetIndent("", " ")
|
||||
|
||||
@@ -32,8 +32,8 @@ import (
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/madmin-go/v3"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
iampolicy "github.com/minio/pkg/iam/policy"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
"github.com/minio/pkg/v2/policy"
|
||||
)
|
||||
|
||||
var adminUserSvcAcctAddFlags = []cli.Flag{
|
||||
@@ -314,7 +314,7 @@ func mainAdminUserSvcAcctAdd(ctx *cli.Context) error {
|
||||
var e error
|
||||
policyBytes, e = os.ReadFile(policyPath)
|
||||
fatalIf(probe.NewError(e), "Unable to open the policy document.")
|
||||
p, e := iampolicy.ParseConfig(bytes.NewReader(policyBytes))
|
||||
p, e := policy.ParseConfig(bytes.NewReader(policyBytes))
|
||||
fatalIf(probe.NewError(e), "Unable to parse the policy document.")
|
||||
if p.IsEmpty() {
|
||||
fatalIf(errInvalidArgument(), "Empty policy documents are not allowed.")
|
||||
|
||||
@@ -22,7 +22,7 @@ import (
|
||||
"github.com/minio/cli"
|
||||
"github.com/minio/madmin-go/v3"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminUserSvcAcctDisableCmd = cli.Command{
|
||||
|
||||
@@ -22,7 +22,7 @@ import (
|
||||
"github.com/minio/cli"
|
||||
"github.com/minio/madmin-go/v3"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminUserSvcAcctEnableCmd = cli.Command{
|
||||
|
||||
@@ -25,8 +25,8 @@ import (
|
||||
"github.com/minio/cli"
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
iampolicy "github.com/minio/pkg/iam/policy"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
"github.com/minio/pkg/v2/policy"
|
||||
)
|
||||
|
||||
var adminUserSvcAcctInfoFlags = []cli.Flag{
|
||||
@@ -87,7 +87,7 @@ func mainAdminUserSvcAcctInfo(ctx *cli.Context) error {
|
||||
if svcInfo.Policy == "" {
|
||||
fatalIf(errDummy().Trace(args...), "No policy found associated to the specified service account. Check the policy of its parent user.")
|
||||
}
|
||||
p, e := iampolicy.ParseConfig(strings.NewReader(svcInfo.Policy))
|
||||
p, e := policy.ParseConfig(strings.NewReader(svcInfo.Policy))
|
||||
fatalIf(probe.NewError(e).Trace(args...), "Unable to parse policy.")
|
||||
enc := json.NewEncoder(os.Stdout)
|
||||
enc.SetIndent("", " ")
|
||||
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
"github.com/fatih/color"
|
||||
"github.com/minio/cli"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminUserSvcAcctListCmd = cli.Command{
|
||||
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
"github.com/fatih/color"
|
||||
"github.com/minio/cli"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminUserSvcAcctRemoveCmd = cli.Command{
|
||||
|
||||
@@ -26,7 +26,7 @@ import (
|
||||
"github.com/minio/cli"
|
||||
"github.com/minio/madmin-go/v3"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var adminUserSvcAcctSetFlags = []cli.Flag{
|
||||
|
||||
@@ -23,7 +23,7 @@ import (
|
||||
|
||||
"github.com/fatih/color"
|
||||
"github.com/minio/cli"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var aliasListCmd = cli.Command{
|
||||
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
"github.com/minio/cli"
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
// Configure an alias in MinIO Client
|
||||
|
||||
@@ -20,7 +20,7 @@ package cmd
|
||||
import (
|
||||
"github.com/fatih/color"
|
||||
"github.com/minio/cli"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var aliasRemoveCmd = cli.Command{
|
||||
|
||||
@@ -34,7 +34,7 @@ import (
|
||||
"github.com/minio/cli"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/minio-go/v7"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
"golang.org/x/term"
|
||||
)
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ import (
|
||||
"github.com/minio/cli"
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var anonymousFlags = []cli.Flag{
|
||||
|
||||
@@ -25,7 +25,7 @@ import (
|
||||
"github.com/minio/cli"
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var batchCancelFlags = []cli.Flag{
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/madmin-go/v3"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var batchStartCmd = cli.Command{
|
||||
|
||||
@@ -14,7 +14,7 @@ import (
|
||||
"github.com/minio/cli"
|
||||
"github.com/minio/madmin-go/v3"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
"github.com/olekukonko/tablewriter"
|
||||
)
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ import (
|
||||
"path/filepath"
|
||||
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/certs"
|
||||
"github.com/minio/pkg/v2/certs"
|
||||
)
|
||||
|
||||
// getCertsDir - return the full path of certs dir
|
||||
|
||||
@@ -44,7 +44,7 @@ import (
|
||||
"github.com/minio/minio-go/v7/pkg/lifecycle"
|
||||
"github.com/minio/minio-go/v7/pkg/notification"
|
||||
"github.com/minio/minio-go/v7/pkg/replication"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
// filesystem client
|
||||
|
||||
@@ -23,7 +23,7 @@ import (
|
||||
"strings"
|
||||
|
||||
"github.com/minio/mc/pkg/httptracer"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
// traceV2 - tracing structure for signature version '2'.
|
||||
|
||||
@@ -24,7 +24,7 @@ import (
|
||||
"strings"
|
||||
|
||||
"github.com/minio/mc/pkg/httptracer"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
// traceV4 - tracing structure for signature version '4'.
|
||||
|
||||
@@ -48,7 +48,7 @@ import (
|
||||
"github.com/minio/minio-go/v7/pkg/s3utils"
|
||||
"github.com/minio/minio-go/v7/pkg/sse"
|
||||
"github.com/minio/minio-go/v7/pkg/tags"
|
||||
"github.com/minio/pkg/mimedb"
|
||||
"github.com/minio/pkg/v2/mimedb"
|
||||
|
||||
"github.com/minio/mc/pkg/deadlineconn"
|
||||
"github.com/minio/mc/pkg/httptracer"
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/mimedb"
|
||||
"github.com/minio/pkg/v2/mimedb"
|
||||
)
|
||||
|
||||
// ClientURL url client url structure
|
||||
|
||||
@@ -38,7 +38,7 @@ import (
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/minio-go/v7"
|
||||
"github.com/minio/minio-go/v7/pkg/encrypt"
|
||||
"github.com/minio/pkg/env"
|
||||
"github.com/minio/pkg/v2/env"
|
||||
)
|
||||
|
||||
// decode if the key is encoded key and returns the key
|
||||
|
||||
@@ -25,8 +25,8 @@ import (
|
||||
"strings"
|
||||
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/quick"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
"github.com/minio/pkg/v2/quick"
|
||||
)
|
||||
|
||||
func fixConfig() {
|
||||
|
||||
@@ -22,8 +22,8 @@ import (
|
||||
"strings"
|
||||
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/quick"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
"github.com/minio/pkg/v2/quick"
|
||||
)
|
||||
|
||||
// migrate config files from the any older version to the latest.
|
||||
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
"sync"
|
||||
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/quick"
|
||||
"github.com/minio/pkg/v2/quick"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -28,7 +28,7 @@ import (
|
||||
"strings"
|
||||
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/env"
|
||||
"github.com/minio/pkg/v2/env"
|
||||
|
||||
"github.com/mitchellh/go-homedir"
|
||||
)
|
||||
|
||||
@@ -33,7 +33,7 @@ import (
|
||||
"github.com/minio/cli"
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
// cp command flags.
|
||||
|
||||
@@ -25,7 +25,7 @@ import (
|
||||
|
||||
"github.com/minio/cli"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
func checkCopySyntax(ctx context.Context, cliCtx *cli.Context, encKeyDB map[string][]prefixSSEPair, isMvCmd bool) {
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
"github.com/minio/cli"
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
// diff specific flags.
|
||||
|
||||
@@ -30,7 +30,7 @@ import (
|
||||
"github.com/minio/cli"
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
// du specific flags.
|
||||
|
||||
@@ -25,7 +25,7 @@ import (
|
||||
"github.com/minio/cli"
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var encryptClearCmd = cli.Command{
|
||||
|
||||
@@ -25,7 +25,7 @@ import (
|
||||
"github.com/minio/cli"
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var encryptInfoCmd = cli.Command{
|
||||
|
||||
@@ -26,7 +26,7 @@ import (
|
||||
"github.com/minio/cli"
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var encryptSetCmd = cli.Command{
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
"github.com/minio/cli"
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
// causeMessage container for golang error messages
|
||||
|
||||
@@ -25,7 +25,7 @@ import (
|
||||
"github.com/minio/cli"
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var eventAddFlags = []cli.Flag{
|
||||
|
||||
@@ -25,7 +25,7 @@ import (
|
||||
"github.com/minio/cli"
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var eventListFlags = []cli.Flag{}
|
||||
|
||||
@@ -25,7 +25,7 @@ import (
|
||||
"github.com/minio/cli"
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var eventRemoveFlags = []cli.Flag{
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
"github.com/fatih/color"
|
||||
"github.com/minio/cli"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
// List of all flags supported by find command.
|
||||
|
||||
@@ -34,10 +34,10 @@ import (
|
||||
"github.com/google/shlex"
|
||||
"github.com/minio/cli"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
|
||||
// golang does not support flat keys for path matching, find does
|
||||
"github.com/minio/pkg/wildcard"
|
||||
"github.com/minio/pkg/v2/wildcard"
|
||||
)
|
||||
|
||||
// findMessage holds JSON and string values for printing find command output.
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
"github.com/dustin/go-humanize"
|
||||
"github.com/minio/cli"
|
||||
"github.com/minio/madmin-go/v3"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -20,7 +20,7 @@ package cmd
|
||||
import (
|
||||
"github.com/fatih/color"
|
||||
"github.com/minio/cli"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var ilmSubcommands = []cli.Command{
|
||||
|
||||
@@ -24,7 +24,7 @@ import (
|
||||
json "github.com/minio/colorjson"
|
||||
"github.com/minio/mc/cmd/ilm"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
"github.com/minio/pkg/v2/console"
|
||||
)
|
||||
|
||||
var ilmRemoveFlags = []cli.Flag{
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user