Merged in refactoring (pull request #2)

Refactoring

Approved-by: Pavel Korotkov
remotes/KirillovDenis/bugfix/681-fix_acl_parsing
Evgeniy Kulikov 2020-07-09 11:49:48 +00:00 committed by Pavel Korotkov
commit 0bdd3e4507
401 changed files with 629 additions and 631 deletions

View File

@ -4,7 +4,7 @@ import (
"context" "context"
"time" "time"
minio "github.com/minio/minio/cmd" minio "github.com/minio/minio/legacy"
"github.com/minio/minio/neofs/layer" "github.com/minio/minio/neofs/layer"
"github.com/minio/minio/neofs/pool" "github.com/minio/minio/neofs/pool"
"github.com/minio/minio/pkg/auth" "github.com/minio/minio/pkg/auth"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"encoding/xml" "encoding/xml"
@ -23,8 +23,8 @@ import (
"net/url" "net/url"
"github.com/gorilla/mux" "github.com/gorilla/mux"
xhttp "github.com/minio/minio/cmd/http" xhttp "github.com/minio/minio/legacy/http"
"github.com/minio/minio/cmd/logger" "github.com/minio/minio/legacy/logger"
"github.com/minio/minio/pkg/bucket/policy" "github.com/minio/minio/pkg/bucket/policy"
) )

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"bytes" "bytes"
@ -26,15 +26,15 @@ import (
"strings" "strings"
"github.com/gorilla/mux" "github.com/gorilla/mux"
"github.com/minio/minio/cmd/config" "github.com/minio/minio/legacy/config"
"github.com/minio/minio/cmd/config/cache" "github.com/minio/minio/legacy/config/cache"
"github.com/minio/minio/cmd/config/etcd" "github.com/minio/minio/legacy/config/etcd"
xldap "github.com/minio/minio/cmd/config/identity/ldap" xldap "github.com/minio/minio/legacy/config/identity/ldap"
"github.com/minio/minio/cmd/config/identity/openid" "github.com/minio/minio/legacy/config/identity/openid"
"github.com/minio/minio/cmd/config/policy/opa" "github.com/minio/minio/legacy/config/policy/opa"
"github.com/minio/minio/cmd/config/storageclass" "github.com/minio/minio/legacy/config/storageclass"
"github.com/minio/minio/cmd/crypto" "github.com/minio/minio/legacy/crypto"
"github.com/minio/minio/cmd/logger" "github.com/minio/minio/legacy/logger"
"github.com/minio/minio/pkg/auth" "github.com/minio/minio/pkg/auth"
iampolicy "github.com/minio/minio/pkg/iam/policy" iampolicy "github.com/minio/minio/pkg/iam/policy"
"github.com/minio/minio/pkg/madmin" "github.com/minio/minio/pkg/madmin"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"context" "context"
@ -24,7 +24,7 @@ import (
"net/http" "net/http"
"github.com/gorilla/mux" "github.com/gorilla/mux"
"github.com/minio/minio/cmd/logger" "github.com/minio/minio/legacy/logger"
"github.com/minio/minio/pkg/auth" "github.com/minio/minio/pkg/auth"
iampolicy "github.com/minio/minio/pkg/iam/policy" iampolicy "github.com/minio/minio/pkg/iam/policy"
"github.com/minio/minio/pkg/madmin" "github.com/minio/minio/pkg/madmin"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"context" "context"
@ -36,12 +36,12 @@ import (
"github.com/gorilla/mux" "github.com/gorilla/mux"
"github.com/minio/minio/cmd/config" "github.com/minio/minio/legacy/config"
"github.com/minio/minio/cmd/config/notify" "github.com/minio/minio/legacy/config/notify"
"github.com/minio/minio/cmd/crypto" "github.com/minio/minio/legacy/crypto"
xhttp "github.com/minio/minio/cmd/http" xhttp "github.com/minio/minio/legacy/http"
"github.com/minio/minio/cmd/logger" "github.com/minio/minio/legacy/logger"
"github.com/minio/minio/cmd/logger/message/log" "github.com/minio/minio/legacy/logger/message/log"
"github.com/minio/minio/pkg/auth" "github.com/minio/minio/pkg/auth"
"github.com/minio/minio/pkg/handlers" "github.com/minio/minio/pkg/handlers"
iampolicy "github.com/minio/minio/pkg/iam/policy" iampolicy "github.com/minio/minio/pkg/iam/policy"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"bytes" "bytes"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"context" "context"
@ -25,7 +25,7 @@ import (
"sync" "sync"
"time" "time"
"github.com/minio/minio/cmd/logger" "github.com/minio/minio/legacy/logger"
"github.com/minio/minio/pkg/madmin" "github.com/minio/minio/pkg/madmin"
) )

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"encoding/json" "encoding/json"
@ -22,8 +22,8 @@ import (
"net/http" "net/http"
"github.com/gorilla/mux" "github.com/gorilla/mux"
"github.com/minio/minio/cmd/config" "github.com/minio/minio/legacy/config"
"github.com/minio/minio/cmd/logger" "github.com/minio/minio/legacy/logger"
"github.com/minio/minio/pkg/env" "github.com/minio/minio/pkg/env"
iampolicy "github.com/minio/minio/pkg/iam/policy" iampolicy "github.com/minio/minio/pkg/iam/policy"
) )

View File

@ -14,13 +14,13 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"net/http" "net/http"
"github.com/gorilla/mux" "github.com/gorilla/mux"
"github.com/minio/minio/cmd/config" "github.com/minio/minio/legacy/config"
"github.com/minio/minio/pkg/env" "github.com/minio/minio/pkg/env"
"github.com/minio/minio/pkg/madmin" "github.com/minio/minio/pkg/madmin"
) )

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"net/http" "net/http"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"encoding/xml" "encoding/xml"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"context" "context"
@ -29,9 +29,9 @@ import (
minio "github.com/minio/minio-go/v6" minio "github.com/minio/minio-go/v6"
"github.com/minio/minio-go/v6/pkg/tags" "github.com/minio/minio-go/v6/pkg/tags"
"github.com/minio/minio/cmd/config/etcd/dns" "github.com/minio/minio/legacy/config/etcd/dns"
"github.com/minio/minio/cmd/crypto" "github.com/minio/minio/legacy/crypto"
"github.com/minio/minio/cmd/logger" "github.com/minio/minio/legacy/logger"
"github.com/minio/minio/pkg/auth" "github.com/minio/minio/pkg/auth"
"github.com/minio/minio/pkg/bucket/lifecycle" "github.com/minio/minio/pkg/bucket/lifecycle"
objectlock "github.com/minio/minio/pkg/bucket/object/lock" objectlock "github.com/minio/minio/pkg/bucket/object/lock"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"context" "context"
@ -23,7 +23,7 @@ import (
"path/filepath" "path/filepath"
"testing" "testing"
"github.com/minio/minio/cmd/crypto" "github.com/minio/minio/legacy/crypto"
"github.com/minio/minio/pkg/hash" "github.com/minio/minio/pkg/hash"
) )

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"bytes" "bytes"
@ -27,8 +27,8 @@ import (
"strings" "strings"
"time" "time"
"github.com/minio/minio/cmd/crypto" "github.com/minio/minio/legacy/crypto"
xhttp "github.com/minio/minio/cmd/http" xhttp "github.com/minio/minio/legacy/http"
) )
// Returns a hexadecimal representation of time at the // Returns a hexadecimal representation of time at the

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"testing" "testing"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"encoding/base64" "encoding/base64"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"net/url" "net/url"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"context" "context"
@ -27,8 +27,8 @@ import (
"strings" "strings"
"time" "time"
xhttp "github.com/minio/minio/cmd/http" xhttp "github.com/minio/minio/legacy/http"
"github.com/minio/minio/cmd/logger" "github.com/minio/minio/legacy/logger"
"github.com/minio/minio/pkg/handlers" "github.com/minio/minio/pkg/handlers"
) )

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"net/http" "net/http"

View File

@ -14,13 +14,13 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"net/http" "net/http"
"github.com/gorilla/mux" "github.com/gorilla/mux"
xhttp "github.com/minio/minio/cmd/http" xhttp "github.com/minio/minio/legacy/http"
) )
func newHTTPServerFn() *xhttp.Server { func newHTTPServerFn() *xhttp.Server {

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"strings" "strings"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"fmt" "fmt"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"bytes" "bytes"
@ -30,9 +30,9 @@ import (
"strings" "strings"
"time" "time"
xhttp "github.com/minio/minio/cmd/http" xhttp "github.com/minio/minio/legacy/http"
xjwt "github.com/minio/minio/cmd/jwt" xjwt "github.com/minio/minio/legacy/jwt"
"github.com/minio/minio/cmd/logger" "github.com/minio/minio/legacy/logger"
"github.com/minio/minio/pkg/auth" "github.com/minio/minio/pkg/auth"
objectlock "github.com/minio/minio/pkg/bucket/object/lock" objectlock "github.com/minio/minio/pkg/bucket/object/lock"
"github.com/minio/minio/pkg/bucket/policy" "github.com/minio/minio/pkg/bucket/policy"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"bytes" "bytes"

View File

@ -14,13 +14,13 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"context" "context"
"time" "time"
"github.com/minio/minio/cmd/logger" "github.com/minio/minio/legacy/logger"
"github.com/minio/minio/pkg/madmin" "github.com/minio/minio/pkg/madmin"
) )

View File

@ -14,13 +14,13 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"context" "context"
"time" "time"
"github.com/minio/minio/cmd/logger" "github.com/minio/minio/legacy/logger"
) )
const defaultMonitorNewDiskInterval = time.Minute * 10 const defaultMonitorNewDiskInterval = time.Minute * 10

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"bytes" "bytes"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"bytes" "bytes"
@ -23,7 +23,7 @@ import (
"hash" "hash"
"io" "io"
"github.com/minio/minio/cmd/logger" "github.com/minio/minio/legacy/logger"
) )
type errHashMismatch struct { type errHashMismatch struct {

View File

@ -14,13 +14,13 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"hash" "hash"
"io" "io"
"github.com/minio/minio/cmd/logger" "github.com/minio/minio/legacy/logger"
) )
// Implementation to calculate bitrot for the whole file. // Implementation to calculate bitrot for the whole file.

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"errors" "errors"
@ -22,7 +22,7 @@ import (
"io" "io"
"github.com/minio/highwayhash" "github.com/minio/highwayhash"
"github.com/minio/minio/cmd/logger" "github.com/minio/minio/legacy/logger"
sha256 "github.com/minio/sha256-simd" sha256 "github.com/minio/sha256-simd"
"golang.org/x/crypto/blake2b" "golang.org/x/crypto/blake2b"
) )

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"io" "io"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"context" "context"
@ -30,9 +30,9 @@ import (
"github.com/gorilla/mux" "github.com/gorilla/mux"
"github.com/minio/minio-go/v6/pkg/set" "github.com/minio/minio-go/v6/pkg/set"
xhttp "github.com/minio/minio/cmd/http" xhttp "github.com/minio/minio/legacy/http"
"github.com/minio/minio/cmd/logger" "github.com/minio/minio/legacy/logger"
"github.com/minio/minio/cmd/rest" "github.com/minio/minio/legacy/rest"
) )
const ( const (

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"encoding/xml" "encoding/xml"
@ -23,7 +23,7 @@ import (
"net/http" "net/http"
"github.com/gorilla/mux" "github.com/gorilla/mux"
"github.com/minio/minio/cmd/logger" "github.com/minio/minio/legacy/logger"
"github.com/minio/minio/pkg/bucket/policy" "github.com/minio/minio/pkg/bucket/policy"
) )

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"errors" "errors"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"bytes" "bytes"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"encoding/base64" "encoding/base64"
@ -28,13 +28,12 @@ import (
"strings" "strings"
"github.com/gorilla/mux" "github.com/gorilla/mux"
"github.com/minio/minio-go/v6/pkg/set" "github.com/minio/minio-go/v6/pkg/set"
"github.com/minio/minio-go/v6/pkg/tags" "github.com/minio/minio-go/v6/pkg/tags"
"github.com/minio/minio/cmd/config/etcd/dns" "github.com/minio/minio/legacy/config/etcd/dns"
"github.com/minio/minio/cmd/crypto" "github.com/minio/minio/legacy/crypto"
xhttp "github.com/minio/minio/cmd/http" xhttp "github.com/minio/minio/legacy/http"
"github.com/minio/minio/cmd/logger" "github.com/minio/minio/legacy/logger"
objectlock "github.com/minio/minio/pkg/bucket/object/lock" objectlock "github.com/minio/minio/pkg/bucket/object/lock"
"github.com/minio/minio/pkg/bucket/policy" "github.com/minio/minio/pkg/bucket/policy"
"github.com/minio/minio/pkg/event" "github.com/minio/minio/pkg/event"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"bytes" "bytes"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"encoding/xml" "encoding/xml"
@ -22,8 +22,8 @@ import (
"net/http" "net/http"
"github.com/gorilla/mux" "github.com/gorilla/mux"
xhttp "github.com/minio/minio/cmd/http" xhttp "github.com/minio/minio/legacy/http"
"github.com/minio/minio/cmd/logger" "github.com/minio/minio/legacy/logger"
"github.com/minio/minio/pkg/bucket/lifecycle" "github.com/minio/minio/pkg/bucket/lifecycle"
"github.com/minio/minio/pkg/bucket/policy" "github.com/minio/minio/pkg/bucket/policy"
) )

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"bytes" "bytes"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"github.com/minio/minio/pkg/bucket/lifecycle" "github.com/minio/minio/pkg/bucket/lifecycle"

View File

@ -14,16 +14,15 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"net/http" "net/http"
"strings" "strings"
"github.com/gorilla/mux" "github.com/gorilla/mux"
"github.com/minio/minio/cmd/crypto" "github.com/minio/minio/legacy/crypto"
"github.com/minio/minio/cmd/logger" "github.com/minio/minio/legacy/logger"
"github.com/minio/minio/pkg/bucket/policy" "github.com/minio/minio/pkg/bucket/policy"
) )

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"bytes" "bytes"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"bytes" "bytes"
@ -27,7 +27,7 @@ import (
"time" "time"
"github.com/minio/minio-go/v6/pkg/tags" "github.com/minio/minio-go/v6/pkg/tags"
"github.com/minio/minio/cmd/logger" "github.com/minio/minio/legacy/logger"
bucketsse "github.com/minio/minio/pkg/bucket/encryption" bucketsse "github.com/minio/minio/pkg/bucket/encryption"
"github.com/minio/minio/pkg/bucket/lifecycle" "github.com/minio/minio/pkg/bucket/lifecycle"
objectlock "github.com/minio/minio/pkg/bucket/object/lock" objectlock "github.com/minio/minio/pkg/bucket/object/lock"

View File

@ -1,4 +1,4 @@
package cmd package legacy
// Code generated by github.com/tinylib/msgp DO NOT EDIT. // Code generated by github.com/tinylib/msgp DO NOT EDIT.

View File

@ -1,4 +1,4 @@
package cmd package legacy
// Code generated by github.com/tinylib/msgp DO NOT EDIT. // Code generated by github.com/tinylib/msgp DO NOT EDIT.

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"encoding/json" "encoding/json"
@ -25,8 +25,8 @@ import (
"time" "time"
"github.com/gorilla/mux" "github.com/gorilla/mux"
xhttp "github.com/minio/minio/cmd/http" xhttp "github.com/minio/minio/legacy/http"
"github.com/minio/minio/cmd/logger" "github.com/minio/minio/legacy/logger"
"github.com/minio/minio/pkg/bucket/policy" "github.com/minio/minio/pkg/bucket/policy"
"github.com/minio/minio/pkg/event" "github.com/minio/minio/pkg/event"
) )

View File

@ -14,14 +14,14 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"context" "context"
"math" "math"
"net/http" "net/http"
"github.com/minio/minio/cmd/logger" "github.com/minio/minio/legacy/logger"
"github.com/minio/minio/pkg/auth" "github.com/minio/minio/pkg/auth"
objectlock "github.com/minio/minio/pkg/bucket/object/lock" objectlock "github.com/minio/minio/pkg/bucket/object/lock"
"github.com/minio/minio/pkg/bucket/policy" "github.com/minio/minio/pkg/bucket/policy"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"encoding/json" "encoding/json"
@ -23,7 +23,7 @@ import (
humanize "github.com/dustin/go-humanize" humanize "github.com/dustin/go-humanize"
"github.com/gorilla/mux" "github.com/gorilla/mux"
"github.com/minio/minio/cmd/logger" "github.com/minio/minio/legacy/logger"
"github.com/minio/minio/pkg/bucket/policy" "github.com/minio/minio/pkg/bucket/policy"
) )

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"bytes" "bytes"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"encoding/json" "encoding/json"
@ -26,8 +26,8 @@ import (
jsoniter "github.com/json-iterator/go" jsoniter "github.com/json-iterator/go"
miniogopolicy "github.com/minio/minio-go/v6/pkg/policy" miniogopolicy "github.com/minio/minio-go/v6/pkg/policy"
xhttp "github.com/minio/minio/cmd/http" xhttp "github.com/minio/minio/legacy/http"
"github.com/minio/minio/cmd/logger" "github.com/minio/minio/legacy/logger"
"github.com/minio/minio/pkg/bucket/policy" "github.com/minio/minio/pkg/bucket/policy"
"github.com/minio/minio/pkg/handlers" "github.com/minio/minio/pkg/handlers"
) )

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"context" "context"
@ -22,8 +22,8 @@ import (
"fmt" "fmt"
"time" "time"
"github.com/minio/minio/cmd/config" "github.com/minio/minio/legacy/config"
"github.com/minio/minio/cmd/logger" "github.com/minio/minio/legacy/logger"
"github.com/minio/minio/pkg/env" "github.com/minio/minio/pkg/env"
"github.com/minio/minio/pkg/event" "github.com/minio/minio/pkg/event"
"github.com/minio/minio/pkg/madmin" "github.com/minio/minio/pkg/madmin"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
// DO NOT EDIT THIS FILE DIRECTLY. These are build-time constants // DO NOT EDIT THIS FILE DIRECTLY. These are build-time constants
// set through buildscripts/gen-ldflags.go. // set through buildscripts/gen-ldflags.go.

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"crypto/x509" "crypto/x509"
@ -29,8 +29,8 @@ import (
dns2 "github.com/miekg/dns" dns2 "github.com/miekg/dns"
"github.com/minio/cli" "github.com/minio/cli"
"github.com/minio/minio-go/v6/pkg/set" "github.com/minio/minio-go/v6/pkg/set"
"github.com/minio/minio/cmd/config" "github.com/minio/minio/legacy/config"
"github.com/minio/minio/cmd/logger" "github.com/minio/minio/legacy/logger"
"github.com/minio/minio/pkg/auth" "github.com/minio/minio/pkg/auth"
"github.com/minio/minio/pkg/certs" "github.com/minio/minio/pkg/certs"
"github.com/minio/minio/pkg/env" "github.com/minio/minio/pkg/env"

View File

@ -14,14 +14,14 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"bytes" "bytes"
"context" "context"
"errors" "errors"
"github.com/minio/minio/cmd/logger" "github.com/minio/minio/legacy/logger"
"github.com/minio/minio/pkg/hash" "github.com/minio/minio/pkg/hash"
) )

View File

@ -14,28 +14,28 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"fmt" "fmt"
"strings" "strings"
"sync" "sync"
"github.com/minio/minio/cmd/config" "github.com/minio/minio/legacy/config"
"github.com/minio/minio/cmd/config/api" "github.com/minio/minio/legacy/config/api"
"github.com/minio/minio/cmd/config/cache" "github.com/minio/minio/legacy/config/cache"
"github.com/minio/minio/cmd/config/compress" "github.com/minio/minio/legacy/config/compress"
"github.com/minio/minio/cmd/config/etcd" "github.com/minio/minio/legacy/config/etcd"
"github.com/minio/minio/cmd/config/etcd/dns" "github.com/minio/minio/legacy/config/etcd/dns"
xldap "github.com/minio/minio/cmd/config/identity/ldap" xldap "github.com/minio/minio/legacy/config/identity/ldap"
"github.com/minio/minio/cmd/config/identity/openid" "github.com/minio/minio/legacy/config/identity/openid"
"github.com/minio/minio/cmd/config/notify" "github.com/minio/minio/legacy/config/notify"
"github.com/minio/minio/cmd/config/policy/opa" "github.com/minio/minio/legacy/config/policy/opa"
"github.com/minio/minio/cmd/config/storageclass" "github.com/minio/minio/legacy/config/storageclass"
"github.com/minio/minio/cmd/crypto" "github.com/minio/minio/legacy/crypto"
xhttp "github.com/minio/minio/cmd/http" xhttp "github.com/minio/minio/legacy/http"
"github.com/minio/minio/cmd/logger" "github.com/minio/minio/legacy/logger"
"github.com/minio/minio/cmd/logger/target/http" "github.com/minio/minio/legacy/logger/target/http"
"github.com/minio/minio/pkg/env" "github.com/minio/minio/pkg/env"
"github.com/minio/minio/pkg/madmin" "github.com/minio/minio/pkg/madmin"
) )

View File

@ -14,14 +14,14 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"context" "context"
"os" "os"
"testing" "testing"
"github.com/minio/minio/cmd/config" "github.com/minio/minio/legacy/config"
) )
func TestServerConfig(t *testing.T) { func TestServerConfig(t *testing.T) {

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"os" "os"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"bytes" "bytes"
@ -25,8 +25,8 @@ import (
"unicode/utf8" "unicode/utf8"
etcd "github.com/coreos/etcd/clientv3" etcd "github.com/coreos/etcd/clientv3"
"github.com/minio/minio/cmd/config" "github.com/minio/minio/legacy/config"
"github.com/minio/minio/cmd/logger" "github.com/minio/minio/legacy/logger"
"github.com/minio/minio/pkg/auth" "github.com/minio/minio/pkg/auth"
"github.com/minio/minio/pkg/madmin" "github.com/minio/minio/pkg/madmin"
) )

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"bytes" "bytes"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"bytes" "bytes"
@ -25,16 +25,16 @@ import (
"path/filepath" "path/filepath"
"strings" "strings"
"github.com/minio/minio/cmd/config" "github.com/minio/minio/legacy/config"
"github.com/minio/minio/cmd/config/cache" "github.com/minio/minio/legacy/config/cache"
"github.com/minio/minio/cmd/config/compress" "github.com/minio/minio/legacy/config/compress"
xldap "github.com/minio/minio/cmd/config/identity/ldap" xldap "github.com/minio/minio/legacy/config/identity/ldap"
"github.com/minio/minio/cmd/config/identity/openid" "github.com/minio/minio/legacy/config/identity/openid"
"github.com/minio/minio/cmd/config/notify" "github.com/minio/minio/legacy/config/notify"
"github.com/minio/minio/cmd/config/policy/opa" "github.com/minio/minio/legacy/config/policy/opa"
"github.com/minio/minio/cmd/config/storageclass" "github.com/minio/minio/legacy/config/storageclass"
"github.com/minio/minio/cmd/crypto" "github.com/minio/minio/legacy/crypto"
"github.com/minio/minio/cmd/logger" "github.com/minio/minio/legacy/logger"
"github.com/minio/minio/pkg/auth" "github.com/minio/minio/pkg/auth"
"github.com/minio/minio/pkg/event" "github.com/minio/minio/pkg/event"
"github.com/minio/minio/pkg/event/target" "github.com/minio/minio/pkg/event/target"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"fmt" "fmt"
@ -22,7 +22,7 @@ import (
"os" "os"
"testing" "testing"
"github.com/minio/minio/cmd/config" "github.com/minio/minio/legacy/config"
) )
// Test if config v1 is purged // Test if config v1 is purged

View File

@ -14,21 +14,21 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"sync" "sync"
"github.com/minio/minio/cmd/config" "github.com/minio/minio/legacy/config"
"github.com/minio/minio/cmd/config/cache" "github.com/minio/minio/legacy/config/cache"
"github.com/minio/minio/cmd/config/compress" "github.com/minio/minio/legacy/config/compress"
xldap "github.com/minio/minio/cmd/config/identity/ldap" xldap "github.com/minio/minio/legacy/config/identity/ldap"
"github.com/minio/minio/cmd/config/identity/openid" "github.com/minio/minio/legacy/config/identity/openid"
"github.com/minio/minio/cmd/config/notify" "github.com/minio/minio/legacy/config/notify"
"github.com/minio/minio/cmd/config/policy/opa" "github.com/minio/minio/legacy/config/policy/opa"
"github.com/minio/minio/cmd/config/storageclass" "github.com/minio/minio/legacy/config/storageclass"
"github.com/minio/minio/cmd/crypto" "github.com/minio/minio/legacy/crypto"
"github.com/minio/minio/cmd/logger" "github.com/minio/minio/legacy/logger"
"github.com/minio/minio/pkg/auth" "github.com/minio/minio/pkg/auth"
"github.com/minio/minio/pkg/event/target" "github.com/minio/minio/pkg/event/target"
"github.com/minio/minio/pkg/quick" "github.com/minio/minio/pkg/quick"

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package cmd package legacy
import ( import (
"bytes" "bytes"
@ -26,7 +26,7 @@ import (
"time" "time"
jsoniter "github.com/json-iterator/go" jsoniter "github.com/json-iterator/go"
"github.com/minio/minio/cmd/config" "github.com/minio/minio/legacy/config"
"github.com/minio/minio/pkg/madmin" "github.com/minio/minio/pkg/madmin"
) )

View File

@ -23,7 +23,7 @@ import (
"strings" "strings"
"time" "time"
"github.com/minio/minio/cmd/config" "github.com/minio/minio/legacy/config"
"github.com/minio/minio/pkg/env" "github.com/minio/minio/pkg/env"
) )

View File

@ -16,7 +16,7 @@
package api package api
import "github.com/minio/minio/cmd/config" import "github.com/minio/minio/legacy/config"
// Help template for storageclass feature. // Help template for storageclass feature.
var ( var (

View File

@ -22,7 +22,7 @@ import (
"path/filepath" "path/filepath"
"strings" "strings"
"github.com/minio/minio/cmd/config" "github.com/minio/minio/legacy/config"
"github.com/minio/minio/pkg/ellipses" "github.com/minio/minio/pkg/ellipses"
) )

View File

@ -16,7 +16,7 @@
package cache package cache
import "github.com/minio/minio/cmd/config" import "github.com/minio/minio/legacy/config"
// Help template for caching feature. // Help template for caching feature.
var ( var (

View File

@ -20,7 +20,7 @@ import (
"fmt" "fmt"
"strings" "strings"
"github.com/minio/minio/cmd/config" "github.com/minio/minio/legacy/config"
) )
const ( const (

View File

@ -20,7 +20,7 @@ import (
"errors" "errors"
"strconv" "strconv"
"github.com/minio/minio/cmd/config" "github.com/minio/minio/legacy/config"
"github.com/minio/minio/pkg/env" "github.com/minio/minio/pkg/env"
) )

View File

@ -20,7 +20,7 @@ import (
"fmt" "fmt"
"strings" "strings"
"github.com/minio/minio/cmd/config" "github.com/minio/minio/legacy/config"
"github.com/minio/minio/pkg/env" "github.com/minio/minio/pkg/env"
) )

View File

@ -16,7 +16,7 @@
package compress package compress
import "github.com/minio/minio/cmd/config" import "github.com/minio/minio/legacy/config"
// Help template for compress feature. // Help template for compress feature.
var ( var (

View File

@ -19,7 +19,7 @@ package compress
import ( import (
"strings" "strings"
"github.com/minio/minio/cmd/config" "github.com/minio/minio/legacy/config"
) )
// Legacy envs. // Legacy envs.

View File

@ -24,7 +24,7 @@ import (
"github.com/coreos/etcd/clientv3" "github.com/coreos/etcd/clientv3"
"github.com/coreos/etcd/clientv3/namespace" "github.com/coreos/etcd/clientv3/namespace"
"github.com/minio/minio/cmd/config" "github.com/minio/minio/legacy/config"
"github.com/minio/minio/pkg/env" "github.com/minio/minio/pkg/env"
xnet "github.com/minio/minio/pkg/net" xnet "github.com/minio/minio/pkg/net"
) )

View File

@ -16,7 +16,7 @@
package etcd package etcd
import "github.com/minio/minio/cmd/config" import "github.com/minio/minio/legacy/config"
// etcd config documented in default config // etcd config documented in default config
var ( var (

View File

@ -25,7 +25,7 @@ import (
"strings" "strings"
"time" "time"
"github.com/minio/minio/cmd/config" "github.com/minio/minio/legacy/config"
"github.com/minio/minio/pkg/env" "github.com/minio/minio/pkg/env"
ldap "gopkg.in/ldap.v3" ldap "gopkg.in/ldap.v3"
) )

View File

@ -16,7 +16,7 @@
package ldap package ldap
import "github.com/minio/minio/cmd/config" import "github.com/minio/minio/legacy/config"
// Help template for LDAP identity feature. // Help template for LDAP identity feature.
var ( var (

View File

@ -16,7 +16,7 @@
package ldap package ldap
import "github.com/minio/minio/cmd/config" import "github.com/minio/minio/legacy/config"
// SetIdentityLDAP - One time migration code needed, for migrating from older config to new for LDAPConfig. // SetIdentityLDAP - One time migration code needed, for migrating from older config to new for LDAPConfig.
func SetIdentityLDAP(s config.Config, ldapArgs Config) { func SetIdentityLDAP(s config.Config, ldapArgs Config) {

Some files were not shown because too many files have changed in this diff Show More