Bump up minio/pkg to v3 (#3349)

This commit is contained in:
Aditya Manthramurthy
2024-05-24 10:44:55 -07:00
committed by GitHub
parent 9985892751
commit f1524b0120
36 changed files with 87 additions and 82 deletions

View File

@@ -26,7 +26,7 @@ import (
"github.com/minio/console/pkg/auth/token"
"github.com/minio/minio-go/v7/pkg/set"
"github.com/minio/pkg/v2/env"
"github.com/minio/pkg/v3/env"
"golang.org/x/crypto/pbkdf2"
"golang.org/x/oauth2"
xoauth2 "golang.org/x/oauth2"

View File

@@ -32,7 +32,7 @@ import (
"github.com/minio/console/pkg/auth/utils"
"github.com/minio/minio-go/v7/pkg/credentials"
"github.com/minio/minio-go/v7/pkg/set"
"github.com/minio/pkg/v2/env"
"github.com/minio/pkg/v3/env"
"golang.org/x/crypto/pbkdf2"
"golang.org/x/oauth2"
xoauth2 "golang.org/x/oauth2"

View File

@@ -19,7 +19,7 @@ package ldap
import (
"strings"
"github.com/minio/pkg/v2/env"
"github.com/minio/pkg/v3/env"
)
func GetLDAPEnabled() bool {

View File

@@ -20,7 +20,7 @@ import (
"time"
"github.com/minio/console/pkg/auth/utils"
"github.com/minio/pkg/v2/env"
"github.com/minio/pkg/v3/env"
)
// GetConsoleSTSDuration returns the default session duration for the STS requested tokens (defaults to 12h)

View File

@@ -29,8 +29,8 @@ import (
"strings"
"github.com/minio/cli"
xcerts "github.com/minio/pkg/v2/certs"
"github.com/minio/pkg/v2/env"
xcerts "github.com/minio/pkg/v3/certs"
"github.com/minio/pkg/v3/env"
"github.com/mitchellh/go-homedir"
)

View File

@@ -25,7 +25,7 @@ import (
"github.com/minio/console/pkg/logger/config"
"github.com/minio/console/pkg/logger/target/http"
"github.com/minio/pkg/v2/env"
"github.com/minio/pkg/v3/env"
)
// NewConfig - initialize new logger config.

View File

@@ -25,7 +25,7 @@ import (
"github.com/minio/console/pkg/logger/color"
"github.com/minio/console/pkg/logger/message/log"
c "github.com/minio/pkg/v2/console"
c "github.com/minio/pkg/v3/console"
)
// Logger interface describes the methods that need to be implemented to satisfy the interface requirements.

View File

@@ -31,10 +31,10 @@ import (
"syscall"
"time"
"github.com/minio/pkg/v2/env"
"github.com/minio/pkg/v3/env"
"github.com/minio/console/pkg"
"github.com/minio/pkg/v2/certs"
"github.com/minio/pkg/v3/certs"
"github.com/minio/console/pkg/logger/config"
"github.com/minio/console/pkg/logger/message/log"

View File

@@ -20,7 +20,7 @@ import (
"errors"
"log"
"github.com/minio/pkg/v2/licverifier"
"github.com/minio/pkg/v3/licverifier"
)
// GetLicenseInfoFromJWT will return license metadata from a jwt string license

View File

@@ -20,7 +20,7 @@ import (
"reflect"
"testing"
"github.com/minio/pkg/v2/licverifier"
"github.com/minio/pkg/v3/licverifier"
)
var (

View File

@@ -33,7 +33,7 @@ import (
"github.com/minio/madmin-go/v3"
mc "github.com/minio/mc/cmd"
"github.com/minio/pkg/v2/env"
"github.com/minio/pkg/v3/env"
)
const (

View File

@@ -21,7 +21,7 @@ import (
"fmt"
"sort"
"github.com/minio/pkg/v2/ellipses"
"github.com/minio/pkg/v3/ellipses"
)
// This file implements and supports ellipses pattern for

View File

@@ -20,7 +20,7 @@ import (
"reflect"
"testing"
"github.com/minio/pkg/v2/ellipses"
"github.com/minio/pkg/v3/ellipses"
)
func TestGetDivisibleSize(t *testing.T) {