move pkg/rpc, pkg/csvparser, pkg/argon2 to contrib

Signed-off-by: Harshavardhana <harsha@minio.io>
This commit is contained in:
Harshavardhana 2021-04-26 17:26:19 -07:00
parent 4be0f92067
commit edda244066
34 changed files with 35 additions and 79 deletions

View File

@ -32,8 +32,8 @@ import (
"github.com/gorilla/mux"
"github.com/minio/minio/cmd/logger"
jsonrpc "github.com/minio/minio/contrib/pkg/rpc"
"github.com/minio/minio/pkg/handlers"
jsonrpc "github.com/minio/minio/pkg/rpc"
trace "github.com/minio/minio/pkg/trace"
)

View File

@ -46,6 +46,7 @@ import (
"github.com/minio/minio/cmd/crypto"
xhttp "github.com/minio/minio/cmd/http"
"github.com/minio/minio/cmd/logger"
"github.com/minio/minio/contrib/pkg/rpc/json2"
"github.com/minio/minio/pkg/auth"
objectlock "github.com/minio/minio/pkg/bucket/object/lock"
"github.com/minio/minio/pkg/bucket/policy"
@ -56,7 +57,6 @@ import (
"github.com/minio/minio/pkg/hash"
iampolicy "github.com/minio/minio/pkg/iam/policy"
"github.com/minio/minio/pkg/ioutil"
"github.com/minio/minio/pkg/rpc/json2"
)
func extractBucketObject(args reflect.Value) (bucketName, objectName string) {

View File

@ -27,8 +27,8 @@ import (
"github.com/minio/minio/browser"
"github.com/minio/minio/cmd/logger"
jsonrpc "github.com/minio/minio/pkg/rpc"
"github.com/minio/minio/pkg/rpc/json2"
jsonrpc "github.com/minio/minio/contrib/pkg/rpc"
"github.com/minio/minio/contrib/pkg/rpc/json2"
)
// webAPI container for Web API.

View File

@ -35,14 +35,8 @@
// [1] https://github.com/P-H-C/phc-winner-argon2/blob/master/argon2-specs.pdf
// [2] https://tools.ietf.org/html/draft-irtf-cfrg-argon2-03#section-9.3
//
// Copyright 2021 MinIO, Inc. All rights reserved.
// forked from https://golang.org/x/crypto/argon2
// modified to be used with MinIO under GNU Affero General
// Public License 3.0 license that can be found in
// the LICENSE file.
//
// Modification here specifically adds sync.Pool reusable buffers to
// avoid large memory build up with frequent
// Modified to be used with MinIO. Modification here specifically adds
// sync.Pool reusable buffers to avoid large memory build up with frequent
// allocations done by memory hard PBKDF.
package argon2

View File

@ -50,13 +50,7 @@
// {`Multi-line
// field`, `comma is ,`}
//
// Copyright 2021 MinIO, Inc. All rights reserved.
// forked from https://golang.org/pkg/encoding/csv
// modified to be used with MinIO under GNU Affero General
// Public License 3.0 license that can be found in
// the LICENSE file.
//
// Main modifications include
// Modified to be used with MinIO. Main modifications include
// - Configurable 'quote' parameter
// - Performance improvements
// benchmark old ns/op new ns/op delta

View File

@ -2,13 +2,9 @@
// Copyright 2012 The Gorilla Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE.ORIG file.
//
// Copyright 2021 MinIO, Inc. All rights reserved.
// forked from https://github.com/gorilla/rpc/v2
// modified to be used with MinIO under GNU Affero General
// Public License 3.0 license that can be found in
// the LICENSE file.
// Modified to be used with MinIO, uses jsoniter and
// supports tracing JSON-rpc calls.
package rpc

View File

@ -3,11 +3,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Copyright 2021 MinIO, Inc. All rights reserved.
// Copyright 2021 MinIO, Inc. modified to be used with MinIO.
// forked from https://github.com/gorilla/rpc/v2
// modified to be used with MinIO under GNU Affero General
// Public License 3.0 license that can be found in
// the LICENSE file.
/*
Package rpc is a foundation for RPC over HTTP services, providing
@ -26,8 +23,8 @@ Let's setup a server and register a codec and service:
import (
"http"
"github.com/minio/minio/pkg/rpc/"
"github.com/minio/minio/pkg/rpc/json2"
"github.com/minio/minio/contrib/pkg/rpc/"
"github.com/minio/minio/contrib/pkg/rpc/json2"
)
func init() {

View File

@ -3,11 +3,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Copyright 2020 MinIO, Inc. All rights reserved.
// forked from https://github.com/gorilla/rpc/v2
// modified to be used with MinIO under GNU Affero General
// Public License 3.0 license that can be found in
// the LICENSE file.
// Modified to be used with MinIO, uses jsoniter and
// supports tracing JSON-rpc calls.
package rpc

View File

@ -3,11 +3,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Copyright 2021 MinIO, Inc. All rights reserved.
// forked from https://github.com/gorilla/rpc/v2
// modified to be used with MinIO under GNU Affero General
// Public License 3.0 license that can be found in
// the LICENSE file.
// Modified to be used with MinIO, uses jsoniter and
// supports tracing JSON-rpc calls.
package json2

View File

@ -3,11 +3,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Copyright 2021 MinIO, Inc. All rights reserved.
// forked from https://github.com/gorilla/rpc/v2
// modified to be used with MinIO under GNU Affero General
// Public License 3.0 license that can be found in
// the LICENSE file.
// Modified to be used with MinIO, uses jsoniter and
// supports tracing JSON-rpc calls.
package json2

View File

@ -3,11 +3,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Copyright 2021 MinIO, Inc. All rights reserved.
// forked from https://github.com/gorilla/rpc/v2
// modified to be used with MinIO under GNU Affero General
// Public License 3.0 license that can be found in
// the LICENSE file.
// Modified to be used with MinIO, uses jsoniter and
// supports tracing JSON-rpc calls.
package json2
@ -19,7 +16,7 @@ import (
"strings"
"testing"
"github.com/minio/minio/pkg/rpc"
"github.com/minio/minio/contrib/pkg/rpc"
)
// ResponseRecorder is an implementation of http.ResponseWriter that

View File

@ -3,11 +3,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Copyright 2021 MinIO, Inc. All rights reserved.
// forked from https://github.com/gorilla/rpc/v2
// modified to be used with MinIO under GNU Affero General
// Public License 3.0 license that can be found in
// the LICENSE file.
// Modified to be used with MinIO, uses jsoniter and
// supports tracing JSON-rpc calls.
package json2
@ -15,7 +12,7 @@ import (
"net/http"
jsoniter "github.com/json-iterator/go"
"github.com/minio/minio/pkg/rpc"
"github.com/minio/minio/contrib/pkg/rpc"
)
var null = jsoniter.RawMessage([]byte("null"))

View File

@ -3,11 +3,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Copyright 2021 MinIO, Inc. All rights reserved.
// forked from https://github.com/gorilla/rpc/v2
// modified to be used with MinIO under GNU Affero General
// Public License 3.0 license that can be found in
// the LICENSE file.
// Modified to be used with MinIO, uses jsoniter and
// supports tracing JSON-rpc calls.
package rpc

View File

@ -3,11 +3,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Copyright 2021 MinIO, Inc. All rights reserved.
// forked from https://github.com/gorilla/rpc/v2
// modified to be used with MinIO under GNU Affero General
// Public License 3.0 license that can be found in
// the LICENSE file.
// Modified to be used with MinIO, uses jsoniter and
// supports tracing JSON-rpc calls.
package rpc

View File

@ -3,11 +3,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Copyright 2021 MinIO, Inc. All rights reserved.
// forked from https://github.com/gorilla/rpc/v2
// modified to be used with MinIO under GNU Affero General
// Public License 3.0 license that can be found in
// the LICENSE file.
// Modified to be used with MinIO, uses jsoniter and
// supports tracing JSON-rpc calls.
package rpc

View File

@ -24,7 +24,7 @@ import (
"io"
"io/ioutil"
"github.com/minio/minio/pkg/argon2"
"github.com/minio/minio/contrib/pkg/argon2"
"github.com/minio/minio/pkg/fips"
"github.com/secure-io/sio-go"
"github.com/secure-io/sio-go/sioutil"

View File

@ -26,7 +26,7 @@ import (
"sync"
"unicode/utf8"
csv "github.com/minio/minio/pkg/csvparser"
csv "github.com/minio/minio/contrib/pkg/csvparser"
"github.com/minio/minio/pkg/s3select/sql"
)

View File

@ -24,7 +24,7 @@ import (
"io"
"github.com/bcicen/jstream"
csv "github.com/minio/minio/pkg/csvparser"
csv "github.com/minio/minio/contrib/pkg/csvparser"
"github.com/minio/minio/pkg/s3select/sql"
)

View File

@ -27,7 +27,7 @@ import (
"strings"
"github.com/bcicen/jstream"
csv "github.com/minio/minio/pkg/csvparser"
csv "github.com/minio/minio/contrib/pkg/csvparser"
"github.com/minio/minio/pkg/s3select/sql"
)

View File

@ -21,9 +21,8 @@ import (
"fmt"
"io"
csv "github.com/minio/minio/pkg/csvparser"
"github.com/bcicen/jstream"
csv "github.com/minio/minio/contrib/pkg/csvparser"
"github.com/minio/minio/pkg/s3select/json"
"github.com/minio/minio/pkg/s3select/sql"
"github.com/minio/simdjson-go"