mirror of
https://github.com/minio/minio.git
synced 2025-04-01 10:13:42 -04:00
move pkg/rpc, pkg/csvparser, pkg/argon2 to contrib
Signed-off-by: Harshavardhana <harsha@minio.io>
This commit is contained in:
parent
4be0f92067
commit
edda244066
@ -32,8 +32,8 @@ import (
|
|||||||
|
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
"github.com/minio/minio/cmd/logger"
|
"github.com/minio/minio/cmd/logger"
|
||||||
|
jsonrpc "github.com/minio/minio/contrib/pkg/rpc"
|
||||||
"github.com/minio/minio/pkg/handlers"
|
"github.com/minio/minio/pkg/handlers"
|
||||||
jsonrpc "github.com/minio/minio/pkg/rpc"
|
|
||||||
trace "github.com/minio/minio/pkg/trace"
|
trace "github.com/minio/minio/pkg/trace"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -46,6 +46,7 @@ import (
|
|||||||
"github.com/minio/minio/cmd/crypto"
|
"github.com/minio/minio/cmd/crypto"
|
||||||
xhttp "github.com/minio/minio/cmd/http"
|
xhttp "github.com/minio/minio/cmd/http"
|
||||||
"github.com/minio/minio/cmd/logger"
|
"github.com/minio/minio/cmd/logger"
|
||||||
|
"github.com/minio/minio/contrib/pkg/rpc/json2"
|
||||||
"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"
|
||||||
@ -56,7 +57,6 @@ import (
|
|||||||
"github.com/minio/minio/pkg/hash"
|
"github.com/minio/minio/pkg/hash"
|
||||||
iampolicy "github.com/minio/minio/pkg/iam/policy"
|
iampolicy "github.com/minio/minio/pkg/iam/policy"
|
||||||
"github.com/minio/minio/pkg/ioutil"
|
"github.com/minio/minio/pkg/ioutil"
|
||||||
"github.com/minio/minio/pkg/rpc/json2"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func extractBucketObject(args reflect.Value) (bucketName, objectName string) {
|
func extractBucketObject(args reflect.Value) (bucketName, objectName string) {
|
||||||
|
@ -27,8 +27,8 @@ import (
|
|||||||
|
|
||||||
"github.com/minio/minio/browser"
|
"github.com/minio/minio/browser"
|
||||||
"github.com/minio/minio/cmd/logger"
|
"github.com/minio/minio/cmd/logger"
|
||||||
jsonrpc "github.com/minio/minio/pkg/rpc"
|
jsonrpc "github.com/minio/minio/contrib/pkg/rpc"
|
||||||
"github.com/minio/minio/pkg/rpc/json2"
|
"github.com/minio/minio/contrib/pkg/rpc/json2"
|
||||||
)
|
)
|
||||||
|
|
||||||
// webAPI container for Web API.
|
// webAPI container for Web API.
|
||||||
|
@ -35,14 +35,8 @@
|
|||||||
// [1] https://github.com/P-H-C/phc-winner-argon2/blob/master/argon2-specs.pdf
|
// [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
|
// [2] https://tools.ietf.org/html/draft-irtf-cfrg-argon2-03#section-9.3
|
||||||
//
|
//
|
||||||
// Copyright 2021 MinIO, Inc. All rights reserved.
|
// Modified to be used with MinIO. Modification here specifically adds
|
||||||
// forked from https://golang.org/x/crypto/argon2
|
// sync.Pool reusable buffers to avoid large memory build up with frequent
|
||||||
// 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
|
|
||||||
// allocations done by memory hard PBKDF.
|
// allocations done by memory hard PBKDF.
|
||||||
package argon2
|
package argon2
|
||||||
|
|
@ -50,13 +50,7 @@
|
|||||||
// {`Multi-line
|
// {`Multi-line
|
||||||
// field`, `comma is ,`}
|
// field`, `comma is ,`}
|
||||||
//
|
//
|
||||||
// Copyright 2021 MinIO, Inc. All rights reserved.
|
// Modified to be used with MinIO. Main modifications include
|
||||||
// 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
|
|
||||||
// - Configurable 'quote' parameter
|
// - Configurable 'quote' parameter
|
||||||
// - Performance improvements
|
// - Performance improvements
|
||||||
// benchmark old ns/op new ns/op delta
|
// benchmark old ns/op new ns/op delta
|
@ -2,13 +2,9 @@
|
|||||||
// Copyright 2012 The Gorilla Authors. All rights reserved.
|
// Copyright 2012 The Gorilla Authors. All rights reserved.
|
||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE.ORIG file.
|
// license that can be found in the LICENSE.ORIG file.
|
||||||
//
|
|
||||||
|
|
||||||
// Copyright 2021 MinIO, Inc. All rights reserved.
|
// Modified to be used with MinIO, uses jsoniter and
|
||||||
// forked from https://github.com/gorilla/rpc/v2
|
// supports tracing JSON-rpc calls.
|
||||||
// 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
|
package rpc
|
||||||
|
|
@ -3,11 +3,8 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// 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
|
// 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
|
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 (
|
import (
|
||||||
"http"
|
"http"
|
||||||
"github.com/minio/minio/pkg/rpc/"
|
"github.com/minio/minio/contrib/pkg/rpc/"
|
||||||
"github.com/minio/minio/pkg/rpc/json2"
|
"github.com/minio/minio/contrib/pkg/rpc/json2"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
@ -3,11 +3,8 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// Copyright 2020 MinIO, Inc. All rights reserved.
|
// Modified to be used with MinIO, uses jsoniter and
|
||||||
// forked from https://github.com/gorilla/rpc/v2
|
// supports tracing JSON-rpc calls.
|
||||||
// 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
|
package rpc
|
||||||
|
|
@ -3,11 +3,8 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// Copyright 2021 MinIO, Inc. All rights reserved.
|
// Modified to be used with MinIO, uses jsoniter and
|
||||||
// forked from https://github.com/gorilla/rpc/v2
|
// supports tracing JSON-rpc calls.
|
||||||
// modified to be used with MinIO under GNU Affero General
|
|
||||||
// Public License 3.0 license that can be found in
|
|
||||||
// the LICENSE file.
|
|
||||||
|
|
||||||
package json2
|
package json2
|
||||||
|
|
@ -3,11 +3,8 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// Copyright 2021 MinIO, Inc. All rights reserved.
|
// Modified to be used with MinIO, uses jsoniter and
|
||||||
// forked from https://github.com/gorilla/rpc/v2
|
// supports tracing JSON-rpc calls.
|
||||||
// modified to be used with MinIO under GNU Affero General
|
|
||||||
// Public License 3.0 license that can be found in
|
|
||||||
// the LICENSE file.
|
|
||||||
|
|
||||||
package json2
|
package json2
|
||||||
|
|
@ -3,11 +3,8 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// Copyright 2021 MinIO, Inc. All rights reserved.
|
// Modified to be used with MinIO, uses jsoniter and
|
||||||
// forked from https://github.com/gorilla/rpc/v2
|
// supports tracing JSON-rpc calls.
|
||||||
// modified to be used with MinIO under GNU Affero General
|
|
||||||
// Public License 3.0 license that can be found in
|
|
||||||
// the LICENSE file.
|
|
||||||
|
|
||||||
package json2
|
package json2
|
||||||
|
|
||||||
@ -19,7 +16,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/minio/minio/pkg/rpc"
|
"github.com/minio/minio/contrib/pkg/rpc"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ResponseRecorder is an implementation of http.ResponseWriter that
|
// ResponseRecorder is an implementation of http.ResponseWriter that
|
@ -3,11 +3,8 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// Copyright 2021 MinIO, Inc. All rights reserved.
|
// Modified to be used with MinIO, uses jsoniter and
|
||||||
// forked from https://github.com/gorilla/rpc/v2
|
// supports tracing JSON-rpc calls.
|
||||||
// modified to be used with MinIO under GNU Affero General
|
|
||||||
// Public License 3.0 license that can be found in
|
|
||||||
// the LICENSE file.
|
|
||||||
|
|
||||||
package json2
|
package json2
|
||||||
|
|
||||||
@ -15,7 +12,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
jsoniter "github.com/json-iterator/go"
|
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"))
|
var null = jsoniter.RawMessage([]byte("null"))
|
@ -3,11 +3,8 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// Copyright 2021 MinIO, Inc. All rights reserved.
|
// Modified to be used with MinIO, uses jsoniter and
|
||||||
// forked from https://github.com/gorilla/rpc/v2
|
// supports tracing JSON-rpc calls.
|
||||||
// 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
|
package rpc
|
||||||
|
|
@ -3,11 +3,8 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// Copyright 2021 MinIO, Inc. All rights reserved.
|
// Modified to be used with MinIO, uses jsoniter and
|
||||||
// forked from https://github.com/gorilla/rpc/v2
|
// supports tracing JSON-rpc calls.
|
||||||
// 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
|
package rpc
|
||||||
|
|
@ -3,11 +3,8 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// Copyright 2021 MinIO, Inc. All rights reserved.
|
// Modified to be used with MinIO, uses jsoniter and
|
||||||
// forked from https://github.com/gorilla/rpc/v2
|
// supports tracing JSON-rpc calls.
|
||||||
// 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
|
package rpc
|
||||||
|
|
@ -24,7 +24,7 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
|
|
||||||
"github.com/minio/minio/pkg/argon2"
|
"github.com/minio/minio/contrib/pkg/argon2"
|
||||||
"github.com/minio/minio/pkg/fips"
|
"github.com/minio/minio/pkg/fips"
|
||||||
"github.com/secure-io/sio-go"
|
"github.com/secure-io/sio-go"
|
||||||
"github.com/secure-io/sio-go/sioutil"
|
"github.com/secure-io/sio-go/sioutil"
|
||||||
|
@ -26,7 +26,7 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"unicode/utf8"
|
"unicode/utf8"
|
||||||
|
|
||||||
csv "github.com/minio/minio/pkg/csvparser"
|
csv "github.com/minio/minio/contrib/pkg/csvparser"
|
||||||
"github.com/minio/minio/pkg/s3select/sql"
|
"github.com/minio/minio/pkg/s3select/sql"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
|
|
||||||
"github.com/bcicen/jstream"
|
"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"
|
"github.com/minio/minio/pkg/s3select/sql"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/bcicen/jstream"
|
"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"
|
"github.com/minio/minio/pkg/s3select/sql"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -21,9 +21,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
|
|
||||||
csv "github.com/minio/minio/pkg/csvparser"
|
|
||||||
|
|
||||||
"github.com/bcicen/jstream"
|
"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/json"
|
||||||
"github.com/minio/minio/pkg/s3select/sql"
|
"github.com/minio/minio/pkg/s3select/sql"
|
||||||
"github.com/minio/simdjson-go"
|
"github.com/minio/simdjson-go"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user