move the dependency to minio/pkg for common libraries (#12397)

This commit is contained in:
Harshavardhana
2021-05-28 15:17:01 -07:00
committed by GitHub
parent 547bb7d0a1
commit 81d5688d56
139 changed files with 122 additions and 10898 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ import (
"github.com/gorilla/mux"
xhttp "github.com/minio/minio/cmd/http"
"github.com/minio/minio/pkg/wildcard"
"github.com/minio/pkg/wildcard"
"github.com/rs/cors"
)
+1 -1
View File
@@ -34,7 +34,7 @@ import (
"github.com/minio/minio-go/v7/pkg/set"
"github.com/minio/minio/cmd/logger"
"github.com/minio/minio/pkg/color"
"github.com/minio/minio/pkg/console"
"github.com/minio/pkg/console"
)
const (
+4 -4
View File
@@ -44,12 +44,12 @@ import (
xhttp "github.com/minio/minio/cmd/http"
"github.com/minio/minio/cmd/logger"
"github.com/minio/minio/pkg/auth"
"github.com/minio/minio/pkg/certs"
"github.com/minio/minio/pkg/console"
"github.com/minio/minio/pkg/ellipses"
"github.com/minio/minio/pkg/env"
"github.com/minio/minio/pkg/handlers"
"github.com/minio/minio/pkg/kms"
"github.com/minio/pkg/certs"
"github.com/minio/pkg/console"
"github.com/minio/pkg/ellipses"
"github.com/minio/pkg/env"
)
// serverDebugLog will enable debug printing
+1 -1
View File
@@ -42,8 +42,8 @@ import (
xhttp "github.com/minio/minio/cmd/http"
"github.com/minio/minio/cmd/logger"
"github.com/minio/minio/cmd/logger/target/http"
"github.com/minio/minio/pkg/env"
"github.com/minio/minio/pkg/kms"
"github.com/minio/pkg/env"
)
func initHelp() {
+1 -1
View File
@@ -42,7 +42,7 @@ import (
"github.com/minio/minio/pkg/event/target"
"github.com/minio/minio/pkg/kms"
xnet "github.com/minio/minio/pkg/net"
"github.com/minio/minio/pkg/quick"
"github.com/minio/pkg/quick"
)
// DO NOT EDIT following message template, please open a GitHub issue to discuss instead.
+1 -1
View File
@@ -31,7 +31,7 @@ import (
"github.com/minio/minio/cmd/logger"
"github.com/minio/minio/pkg/auth"
"github.com/minio/minio/pkg/event/target"
"github.com/minio/minio/pkg/quick"
"github.com/minio/pkg/quick"
)
/////////////////// Config V1 ///////////////////
+1 -1
View File
@@ -25,7 +25,7 @@ import (
"time"
"github.com/minio/minio/cmd/config"
"github.com/minio/minio/pkg/env"
"github.com/minio/pkg/env"
)
// API sub-system constants
+1 -1
View File
@@ -24,7 +24,7 @@ import (
"strings"
"github.com/minio/minio/cmd/config"
"github.com/minio/minio/pkg/ellipses"
"github.com/minio/pkg/ellipses"
)
// Config represents cache config settings
+1 -1
View File
@@ -22,7 +22,7 @@ import (
"strconv"
"github.com/minio/minio/cmd/config"
"github.com/minio/minio/pkg/env"
"github.com/minio/pkg/env"
)
// Cache ENVs
+1 -1
View File
@@ -27,7 +27,7 @@ import (
"errors"
"io/ioutil"
"github.com/minio/minio/pkg/env"
"github.com/minio/pkg/env"
)
// EnvCertPassword is the environment variable which contains the password used
+1 -1
View File
@@ -22,7 +22,7 @@ import (
"strings"
"github.com/minio/minio/cmd/config"
"github.com/minio/minio/pkg/env"
"github.com/minio/pkg/env"
)
// Config represents the compression settings.
+1 -1
View File
@@ -27,7 +27,7 @@ import (
"github.com/minio/madmin-go"
"github.com/minio/minio-go/v7/pkg/set"
"github.com/minio/minio/pkg/auth"
"github.com/minio/minio/pkg/env"
"github.com/minio/pkg/env"
)
// Error config error type
+1 -1
View File
@@ -24,8 +24,8 @@ import (
"time"
"github.com/minio/minio/cmd/config"
"github.com/minio/minio/pkg/env"
xnet "github.com/minio/minio/pkg/net"
"github.com/minio/pkg/env"
clientv3 "go.etcd.io/etcd/client/v3"
"go.etcd.io/etcd/client/v3/namespace"
"go.uber.org/zap"
+1 -1
View File
@@ -23,7 +23,7 @@ import (
"time"
"github.com/minio/minio/cmd/config"
"github.com/minio/minio/pkg/env"
"github.com/minio/pkg/env"
)
// Compression environment variables
+1 -1
View File
@@ -29,7 +29,7 @@ import (
ldap "github.com/go-ldap/ldap/v3"
"github.com/minio/minio/cmd/config"
"github.com/minio/minio/pkg/env"
"github.com/minio/pkg/env"
)
const (
+1 -1
View File
@@ -32,9 +32,9 @@ import (
jwtgo "github.com/dgrijalva/jwt-go"
"github.com/minio/minio/cmd/config"
"github.com/minio/minio/pkg/auth"
"github.com/minio/minio/pkg/env"
iampolicy "github.com/minio/minio/pkg/iam/policy"
xnet "github.com/minio/minio/pkg/net"
"github.com/minio/pkg/env"
)
// Config - OpenID Config
+1 -1
View File
@@ -29,10 +29,10 @@ import (
"github.com/minio/minio/cmd/config"
"github.com/minio/minio/cmd/logger"
"github.com/minio/minio/pkg/env"
"github.com/minio/minio/pkg/event"
"github.com/minio/minio/pkg/event/target"
xnet "github.com/minio/minio/pkg/net"
"github.com/minio/pkg/env"
)
const (
+1 -1
View File
@@ -25,9 +25,9 @@ import (
"net/http"
"github.com/minio/minio/cmd/config"
"github.com/minio/minio/pkg/env"
iampolicy "github.com/minio/minio/pkg/iam/policy"
xnet "github.com/minio/minio/pkg/net"
"github.com/minio/pkg/env"
)
// Env IAM OPA URL
+1 -1
View File
@@ -22,7 +22,7 @@ import (
"time"
"github.com/minio/minio/cmd/config"
"github.com/minio/minio/pkg/env"
"github.com/minio/pkg/env"
)
// Compression environment variables
+1 -1
View File
@@ -26,7 +26,7 @@ import (
"sync"
"github.com/minio/minio/cmd/config"
"github.com/minio/minio/pkg/env"
"github.com/minio/pkg/env"
)
// Standard constants for all storage class
+1 -1
View File
@@ -19,7 +19,7 @@ package crypto
import (
"github.com/minio/minio/cmd/config"
"github.com/minio/minio/pkg/env"
"github.com/minio/pkg/env"
)
const (
+1 -1
View File
@@ -39,9 +39,9 @@ import (
"github.com/minio/minio/pkg/bucket/lifecycle"
"github.com/minio/minio/pkg/bucket/replication"
"github.com/minio/minio/pkg/color"
"github.com/minio/minio/pkg/console"
"github.com/minio/minio/pkg/event"
"github.com/minio/minio/pkg/hash"
"github.com/minio/pkg/console"
)
const (
+1 -1
View File
@@ -35,7 +35,7 @@ import (
"github.com/bits-and-blooms/bloom/v3"
"github.com/minio/minio/cmd/logger"
"github.com/minio/minio/pkg/color"
"github.com/minio/minio/pkg/console"
"github.com/minio/pkg/console"
)
const (
+1 -1
View File
@@ -36,7 +36,7 @@ import (
"github.com/minio/minio/pkg/color"
"github.com/minio/minio/pkg/hash"
"github.com/minio/minio/pkg/sync/errgroup"
"github.com/minio/minio/pkg/wildcard"
"github.com/minio/pkg/wildcard"
)
const (
+2 -2
View File
@@ -25,8 +25,8 @@ import (
"github.com/minio/minio-go/v7/pkg/set"
"github.com/minio/minio/cmd/config"
"github.com/minio/minio/pkg/ellipses"
"github.com/minio/minio/pkg/env"
"github.com/minio/pkg/ellipses"
"github.com/minio/pkg/env"
)
// This file implements and supports ellipses pattern for
+1 -1
View File
@@ -22,7 +22,7 @@ import (
"reflect"
"testing"
"github.com/minio/minio/pkg/ellipses"
"github.com/minio/pkg/ellipses"
)
// Tests create endpoints with ellipses and without.
+1 -1
View File
@@ -38,9 +38,9 @@ import (
"github.com/minio/minio/cmd/config"
xhttp "github.com/minio/minio/cmd/http"
"github.com/minio/minio/cmd/logger"
"github.com/minio/minio/pkg/env"
"github.com/minio/minio/pkg/mountinfo"
xnet "github.com/minio/minio/pkg/net"
"github.com/minio/pkg/env"
)
// EndpointType - enum for endpoint type.
+1 -1
View File
@@ -32,8 +32,8 @@ import (
"github.com/minio/minio-go/v7/pkg/set"
xhttp "github.com/minio/minio/cmd/http"
"github.com/minio/minio/cmd/logger"
"github.com/minio/minio/pkg/mimedb"
"github.com/minio/minio/pkg/sync/errgroup"
"github.com/minio/pkg/mimedb"
)
func (er erasureObjects) getUploadIDDir(bucket, object, uploadID string) string {
+1 -1
View File
@@ -38,8 +38,8 @@ import (
"github.com/minio/minio/pkg/event"
"github.com/minio/minio/pkg/hash"
xioutil "github.com/minio/minio/pkg/ioutil"
"github.com/minio/minio/pkg/mimedb"
"github.com/minio/minio/pkg/sync/errgroup"
"github.com/minio/pkg/mimedb"
)
// list all errors which can be ignored in object operations.
+1 -1
View File
@@ -36,7 +36,7 @@ import (
"github.com/minio/minio/cmd/config/storageclass"
"github.com/minio/minio/cmd/logger"
"github.com/minio/minio/pkg/sync/errgroup"
"github.com/minio/minio/pkg/wildcard"
"github.com/minio/pkg/wildcard"
)
type erasureServerPools struct {
+2 -2
View File
@@ -37,10 +37,10 @@ import (
"github.com/minio/minio-go/v7/pkg/tags"
"github.com/minio/minio/cmd/logger"
"github.com/minio/minio/pkg/bpool"
"github.com/minio/minio/pkg/console"
"github.com/minio/minio/pkg/dsync"
"github.com/minio/minio/pkg/env"
"github.com/minio/minio/pkg/sync/errgroup"
"github.com/minio/pkg/console"
"github.com/minio/pkg/env"
)
// setsDsyncLockers is encapsulated type for Close()
+1 -1
View File
@@ -31,9 +31,9 @@ import (
"github.com/minio/minio/cmd/logger"
"github.com/minio/minio/pkg/bpool"
"github.com/minio/minio/pkg/color"
"github.com/minio/minio/pkg/console"
"github.com/minio/minio/pkg/dsync"
"github.com/minio/minio/pkg/sync/errgroup"
"github.com/minio/pkg/console"
)
// OfflineDisk represents an unavailable disk.
+1 -1
View File
@@ -32,7 +32,7 @@ import (
xhttp "github.com/minio/minio/cmd/http"
"github.com/minio/minio/cmd/logger"
"github.com/minio/minio/pkg/lock"
"github.com/minio/minio/pkg/mimedb"
"github.com/minio/pkg/mimedb"
)
// FS format, and object metadata.
+1 -1
View File
@@ -33,7 +33,7 @@ import (
jsoniter "github.com/json-iterator/go"
"github.com/minio/minio/cmd/logger"
xioutil "github.com/minio/minio/pkg/ioutil"
"github.com/minio/minio/pkg/trie"
"github.com/minio/pkg/trie"
)
// Returns EXPORT/.minio.sys/multipart/SHA256/UPLOADID
+1 -1
View File
@@ -44,8 +44,8 @@ import (
"github.com/minio/minio/pkg/color"
xioutil "github.com/minio/minio/pkg/ioutil"
"github.com/minio/minio/pkg/lock"
"github.com/minio/minio/pkg/mimedb"
"github.com/minio/minio/pkg/mountinfo"
"github.com/minio/pkg/mimedb"
)
// Default etag is used for pre-existing objects.
+1 -1
View File
@@ -27,9 +27,9 @@ import (
"github.com/minio/minio/cmd/config"
xhttp "github.com/minio/minio/cmd/http"
"github.com/minio/minio/cmd/logger"
"github.com/minio/minio/pkg/env"
"github.com/minio/minio/pkg/hash"
xnet "github.com/minio/minio/pkg/net"
"github.com/minio/pkg/env"
minio "github.com/minio/minio-go/v7"
)
+2 -2
View File
@@ -31,9 +31,9 @@ import (
"github.com/minio/cli"
xhttp "github.com/minio/minio/cmd/http"
"github.com/minio/minio/cmd/logger"
"github.com/minio/minio/pkg/certs"
"github.com/minio/minio/pkg/color"
"github.com/minio/minio/pkg/env"
"github.com/minio/pkg/certs"
"github.com/minio/pkg/env"
)
var (
+1 -1
View File
@@ -47,7 +47,7 @@ import (
"github.com/minio/minio/pkg/auth"
"github.com/minio/minio/pkg/bucket/policy"
"github.com/minio/minio/pkg/bucket/policy/condition"
"github.com/minio/minio/pkg/env"
"github.com/minio/pkg/env"
)
const (
+1 -1
View File
@@ -44,7 +44,7 @@ import (
"github.com/minio/minio/pkg/auth"
"github.com/minio/minio/pkg/bucket/policy"
"github.com/minio/minio/pkg/bucket/policy/condition"
"github.com/minio/minio/pkg/env"
"github.com/minio/pkg/env"
"google.golang.org/api/googleapi"
"google.golang.org/api/iterator"
"google.golang.org/api/option"
+1 -1
View File
@@ -43,8 +43,8 @@ import (
minio "github.com/minio/minio/cmd"
"github.com/minio/minio/cmd/logger"
"github.com/minio/minio/pkg/auth"
"github.com/minio/minio/pkg/env"
xnet "github.com/minio/minio/pkg/net"
"github.com/minio/pkg/env"
)
const (
+2 -2
View File
@@ -27,8 +27,8 @@ import (
"github.com/minio/madmin-go"
"github.com/minio/minio/cmd/logger"
"github.com/minio/minio/pkg/color"
"github.com/minio/minio/pkg/console"
"github.com/minio/minio/pkg/wildcard"
"github.com/minio/pkg/console"
"github.com/minio/pkg/wildcard"
)
const (
+1 -1
View File
@@ -42,9 +42,9 @@ import (
"github.com/minio/minio/pkg/auth"
etcd "go.etcd.io/etcd/client/v3"
"github.com/minio/minio/pkg/certs"
"github.com/minio/minio/pkg/event"
"github.com/minio/minio/pkg/pubsub"
"github.com/minio/pkg/certs"
)
// minio configuration related constants.
+1 -1
View File
@@ -24,7 +24,7 @@ import (
"github.com/minio/minio/cmd/config/api"
"github.com/minio/minio/cmd/logger"
"github.com/minio/minio/pkg/sys"
"github.com/minio/pkg/sys"
)
type apiConfig struct {
+2 -2
View File
@@ -32,9 +32,9 @@ import (
"github.com/minio/minio-go/v7/pkg/set"
"github.com/minio/minio/cmd/config"
"github.com/minio/minio/cmd/config/api"
"github.com/minio/minio/pkg/certs"
"github.com/minio/minio/pkg/env"
"github.com/minio/minio/pkg/fips"
"github.com/minio/pkg/certs"
"github.com/minio/pkg/env"
)
const (
+1 -1
View File
@@ -23,7 +23,7 @@ import (
"reflect"
"testing"
"github.com/minio/minio/pkg/certs"
"github.com/minio/pkg/certs"
)
func TestNewServer(t *testing.T) {
+1 -1
View File
@@ -21,7 +21,7 @@ import (
"strings"
"github.com/minio/minio/cmd/config"
"github.com/minio/minio/pkg/env"
"github.com/minio/pkg/env"
)
// Console logger target
+1 -1
View File
@@ -26,7 +26,7 @@ import (
"github.com/minio/minio/cmd/logger/message/log"
"github.com/minio/minio/pkg/color"
c "github.com/minio/minio/pkg/console"
c "github.com/minio/pkg/console"
)
// Logger interface describes the methods that need to be implemented to satisfy the interface requirements.
+1 -1
View File
@@ -26,7 +26,7 @@ import (
"github.com/minio/minio/cmd/logger"
"github.com/minio/minio/cmd/logger/message/log"
"github.com/minio/minio/pkg/color"
"github.com/minio/minio/pkg/console"
"github.com/minio/pkg/console"
)
// Target implements loggerTarget to send log
+3 -3
View File
@@ -23,9 +23,9 @@ import (
"sort"
"github.com/minio/cli"
"github.com/minio/minio/pkg/console"
"github.com/minio/minio/pkg/trie"
"github.com/minio/minio/pkg/words"
"github.com/minio/pkg/console"
"github.com/minio/pkg/trie"
"github.com/minio/pkg/words"
)
// GlobalFlags - global flags for minio.
+1 -1
View File
@@ -32,8 +32,8 @@ import (
"github.com/klauspost/compress/s2"
"github.com/minio/minio/cmd/logger"
"github.com/minio/minio/pkg/console"
"github.com/minio/minio/pkg/hash"
"github.com/minio/pkg/console"
"github.com/tinylib/msgp/msgp"
)
+1 -1
View File
@@ -33,8 +33,8 @@ import (
jsoniter "github.com/json-iterator/go"
"github.com/minio/minio/cmd/logger"
"github.com/minio/minio/pkg/color"
"github.com/minio/minio/pkg/console"
"github.com/minio/minio/pkg/hash"
"github.com/minio/pkg/console"
)
type listPathOptions struct {
+2 -2
View File
@@ -47,8 +47,8 @@ import (
"github.com/minio/minio/cmd/logger"
"github.com/minio/minio/pkg/hash"
"github.com/minio/minio/pkg/ioutil"
"github.com/minio/minio/pkg/trie"
"github.com/minio/minio/pkg/wildcard"
"github.com/minio/pkg/trie"
"github.com/minio/pkg/wildcard"
)
const (
+1 -1
View File
@@ -29,7 +29,7 @@ import (
"github.com/klauspost/compress/s2"
"github.com/minio/minio/cmd/config/compress"
"github.com/minio/minio/cmd/crypto"
"github.com/minio/minio/pkg/trie"
"github.com/minio/pkg/trie"
)
// Tests validate bucket name.
+2 -2
View File
@@ -40,11 +40,11 @@ import (
"github.com/minio/minio/cmd/rest"
"github.com/minio/minio/pkg/auth"
"github.com/minio/minio/pkg/bucket/bandwidth"
"github.com/minio/minio/pkg/certs"
"github.com/minio/minio/pkg/color"
"github.com/minio/minio/pkg/env"
"github.com/minio/minio/pkg/fips"
"github.com/minio/minio/pkg/sync/errgroup"
"github.com/minio/pkg/certs"
"github.com/minio/pkg/env"
)
// ServerFlags - server command specific flags
+1 -1
View File
@@ -20,7 +20,7 @@ package cmd
import (
"runtime/debug"
"github.com/minio/minio/pkg/sys"
"github.com/minio/pkg/sys"
)
func setMaxResources() (err error) {
+1 -1
View File
@@ -32,7 +32,7 @@ import (
"github.com/minio/minio/cmd/logger"
"github.com/minio/minio/pkg/auth"
iampolicy "github.com/minio/minio/pkg/iam/policy"
"github.com/minio/minio/pkg/wildcard"
"github.com/minio/pkg/wildcard"
)
const (
+1 -1
View File
@@ -37,8 +37,8 @@ import (
xhttp "github.com/minio/minio/cmd/http"
"github.com/minio/minio/cmd/logger"
"github.com/minio/minio/pkg/env"
xnet "github.com/minio/minio/pkg/net"
"github.com/minio/pkg/env"
"github.com/minio/selfupdate"
)
+1 -1
View File
@@ -47,8 +47,8 @@ import (
xhttp "github.com/minio/minio/cmd/http"
"github.com/minio/minio/cmd/logger"
"github.com/minio/minio/cmd/rest"
"github.com/minio/minio/pkg/certs"
"github.com/minio/minio/pkg/handlers"
"github.com/minio/pkg/certs"
)
const (
+2 -2
View File
@@ -45,10 +45,10 @@ import (
"github.com/minio/minio/cmd/logger"
"github.com/minio/minio/pkg/bucket/lifecycle"
"github.com/minio/minio/pkg/color"
"github.com/minio/minio/pkg/console"
"github.com/minio/minio/pkg/disk"
"github.com/minio/minio/pkg/env"
xioutil "github.com/minio/minio/pkg/ioutil"
"github.com/minio/pkg/console"
"github.com/minio/pkg/env"
)
const (