Refactoring cmd package

This commit is contained in:
Evgeniy Kulikov 2020-07-09 12:21:15 +03:00
parent 05aedee59e
commit b75a189805
390 changed files with 625 additions and 627 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -14,13 +14,13 @@
* limitations under the License.
*/
package cmd
package legacy
import (
"net/http"
"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/madmin"
)

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
package cmd
package legacy
import (
"bytes"
@ -27,7 +27,7 @@ import (
"time"
"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"
"github.com/minio/minio/pkg/bucket/lifecycle"
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.

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -16,7 +16,7 @@
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.
func SetIdentityLDAP(s config.Config, ldapArgs Config) {

View file

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

View file

@ -27,7 +27,7 @@ import (
"time"
jwtgo "github.com/dgrijalva/jwt-go"
"github.com/minio/minio/cmd/config"
"github.com/minio/minio/legacy/config"
"github.com/minio/minio/pkg/auth"
"github.com/minio/minio/pkg/env"
iampolicy "github.com/minio/minio/pkg/iam/policy"

View file

@ -16,7 +16,7 @@
package openid
import "github.com/minio/minio/cmd/config"
import "github.com/minio/minio/legacy/config"
// Legacy envs
const (

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