[chore]: Bump github.com/minio/minio-go/v7 from 7.0.69 to 7.0.70 (#2877)

This commit is contained in:
dependabot[bot] 2024-04-29 10:44:11 +00:00 committed by GitHub
commit d3bac8bbec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
27 changed files with 81 additions and 3574 deletions

View file

@ -22,7 +22,7 @@ import (
"path/filepath"
"runtime"
jsoniter "github.com/json-iterator/go"
"github.com/goccy/go-json"
)
// A FileMinioClient retrieves credentials from the current user's home
@ -121,8 +121,6 @@ type config struct {
// returned if it fails to read from the file.
func loadAlias(filename, alias string) (hostConfig, error) {
cfg := &config{}
json := jsoniter.ConfigCompatibleWithStandardLibrary
configBytes, err := os.ReadFile(filename)
if err != nil {
return hostConfig{}, err

View file

@ -31,7 +31,7 @@ import (
"strings"
"time"
jsoniter "github.com/json-iterator/go"
"github.com/goccy/go-json"
)
// DefaultExpiryWindow - Default expiry window.
@ -308,7 +308,7 @@ func getEcsTaskCredentials(client *http.Client, endpoint, token string) (ec2Role
}
respCreds := ec2RoleCredRespBody{}
if err := jsoniter.NewDecoder(resp.Body).Decode(&respCreds); err != nil {
if err := json.NewDecoder(resp.Body).Decode(&respCreds); err != nil {
return ec2RoleCredRespBody{}, err
}
@ -418,7 +418,7 @@ func getCredentials(client *http.Client, endpoint string) (ec2RoleCredRespBody,
}
respCreds := ec2RoleCredRespBody{}
if err := jsoniter.NewDecoder(resp.Body).Decode(&respCreds); err != nil {
if err := json.NewDecoder(resp.Body).Decode(&respCreds); err != nil {
return ec2RoleCredRespBody{}, err
}

View file

@ -23,7 +23,7 @@ import (
"errors"
"net/http"
jsoniter "github.com/json-iterator/go"
"github.com/goccy/go-json"
"golang.org/x/crypto/argon2"
)
@ -101,7 +101,6 @@ func NewSSEKMS(keyID string, context interface{}) (ServerSide, error) {
if context == nil {
return kms{key: keyID, hasContext: false}, nil
}
json := jsoniter.ConfigCompatibleWithStandardLibrary
serializedContext, err := json.Marshal(context)
if err != nil {
return nil, err

View file

@ -21,14 +21,12 @@ import (
"fmt"
"sort"
jsoniter "github.com/json-iterator/go"
"github.com/goccy/go-json"
)
// StringSet - uses map as set of strings.
type StringSet map[string]struct{}
var json = jsoniter.ConfigCompatibleWithStandardLibrary
// ToSlice - returns StringSet as string slice.
func (set StringSet) ToSlice() []string {
keys := make([]string, 0, len(set))