mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-02-10 14:50:17 +00:00
[chore]: Bump github.com/minio/minio-go/v7 from 7.0.84 to 7.0.85
Bumps [github.com/minio/minio-go/v7](https://github.com/minio/minio-go) from 7.0.84 to 7.0.85. - [Release notes](https://github.com/minio/minio-go/releases) - [Commits](https://github.com/minio/minio-go/compare/v7.0.84...v7.0.85) --- updated-dependencies: - dependency-name: github.com/minio/minio-go/v7 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
parent
ce7ba8f498
commit
08ea872860
4
go.mod
4
go.mod
|
@ -46,7 +46,7 @@ require (
|
|||
github.com/k3a/html2text v1.2.1
|
||||
github.com/microcosm-cc/bluemonday v1.0.27
|
||||
github.com/miekg/dns v1.1.63
|
||||
github.com/minio/minio-go/v7 v7.0.84
|
||||
github.com/minio/minio-go/v7 v7.0.85
|
||||
github.com/mitchellh/mapstructure v1.5.0
|
||||
github.com/ncruces/go-sqlite3 v0.22.0
|
||||
github.com/oklog/ulid v1.3.1
|
||||
|
@ -82,6 +82,7 @@ require (
|
|||
golang.org/x/image v0.23.0
|
||||
golang.org/x/net v0.34.0
|
||||
golang.org/x/oauth2 v0.25.0
|
||||
golang.org/x/sys v0.29.0
|
||||
golang.org/x/text v0.21.0
|
||||
gopkg.in/mcuadros/go-syslog.v2 v2.3.0
|
||||
gopkg.in/yaml.v3 v3.0.1
|
||||
|
@ -212,7 +213,6 @@ require (
|
|||
golang.org/x/exp v0.0.0-20240222234643-814bf88cf225 // indirect
|
||||
golang.org/x/mod v0.22.0 // indirect
|
||||
golang.org/x/sync v0.10.0 // indirect
|
||||
golang.org/x/sys v0.29.0 // indirect
|
||||
golang.org/x/tools v0.28.0 // indirect
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20250115164207-1a7da9e5054f // indirect
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20250115164207-1a7da9e5054f // indirect
|
||||
|
|
4
go.sum
generated
4
go.sum
generated
|
@ -403,8 +403,8 @@ github.com/miekg/dns v1.1.63 h1:8M5aAw6OMZfFXTT7K5V0Eu5YiiL8l7nUAkyN6C9YwaY=
|
|||
github.com/miekg/dns v1.1.63/go.mod h1:6NGHfjhpmr5lt3XPLuyfDJi5AXbNIPM9PY6H6sF1Nfs=
|
||||
github.com/minio/md5-simd v1.1.2 h1:Gdi1DZK69+ZVMoNHRXJyNcxrMA4dSxoYHZSQbirFg34=
|
||||
github.com/minio/md5-simd v1.1.2/go.mod h1:MzdKDxYpY2BT9XQFocsiZf/NKVtR7nkE4RoEpN+20RM=
|
||||
github.com/minio/minio-go/v7 v7.0.84 h1:D1HVmAF8JF8Bpi6IU4V9vIEj+8pc+xU88EWMs2yed0E=
|
||||
github.com/minio/minio-go/v7 v7.0.84/go.mod h1:57YXpvc5l3rjPdhqNrDsvVlY0qPI6UTk1bflAe+9doY=
|
||||
github.com/minio/minio-go/v7 v7.0.85 h1:9psTLS/NTvC3MWoyjhjXpwcKoNbkongaCSF3PNpSuXo=
|
||||
github.com/minio/minio-go/v7 v7.0.85/go.mod h1:57YXpvc5l3rjPdhqNrDsvVlY0qPI6UTk1bflAe+9doY=
|
||||
github.com/mitchellh/copystructure v1.0.0/go.mod h1:SNtv71yrdKgLRyLFxmLdkAbkKEFWgYaq1OVrnRcwhnw=
|
||||
github.com/mitchellh/copystructure v1.2.0 h1:vpKXTN4ewci03Vljg/q9QvCGUDttBOGBIa15WveJJGw=
|
||||
github.com/mitchellh/copystructure v1.2.0/go.mod h1:qLl+cE2AmVv+CoeAwDPye/v+N2HKCj9FbZEVFJRxO9s=
|
||||
|
|
8
vendor/github.com/minio/minio-go/v7/api-remove.go
generated
vendored
8
vendor/github.com/minio/minio-go/v7/api-remove.go
generated
vendored
|
@ -213,6 +213,14 @@ type RemoveObjectError struct {
|
|||
Err error
|
||||
}
|
||||
|
||||
func (err *RemoveObjectError) Error() string {
|
||||
// This should never happen as we will have a non-nil error with no underlying error.
|
||||
if err.Err == nil {
|
||||
return "unexpected remove object error result"
|
||||
}
|
||||
return err.Err.Error()
|
||||
}
|
||||
|
||||
// RemoveObjectResult - container of Multi Delete S3 API result
|
||||
type RemoveObjectResult struct {
|
||||
ObjectName string
|
||||
|
|
40
vendor/github.com/minio/minio-go/v7/api.go
generated
vendored
40
vendor/github.com/minio/minio-go/v7/api.go
generated
vendored
|
@ -92,6 +92,9 @@ type Client struct {
|
|||
// default to Auto.
|
||||
lookup BucketLookupType
|
||||
|
||||
// lookupFn is a custom function to return URL lookup type supported by the server.
|
||||
lookupFn func(u url.URL, bucketName string) BucketLookupType
|
||||
|
||||
// Factory for MD5 hash functions.
|
||||
md5Hasher func() md5simd.Hasher
|
||||
sha256Hasher func() md5simd.Hasher
|
||||
|
@ -117,6 +120,25 @@ type Options struct {
|
|||
// function to perform region lookups appropriately.
|
||||
CustomRegionViaURL func(u url.URL) string
|
||||
|
||||
// Provide a custom function that returns BucketLookupType based
|
||||
// on the input URL, this is just like s3utils.IsVirtualHostSupported()
|
||||
// function but allows users to provide their own implementation.
|
||||
// Once this is set it overrides all settings for opts.BucketLookup
|
||||
// if this function returns BucketLookupAuto then default detection
|
||||
// via s3utils.IsVirtualHostSupported() is used, otherwise the
|
||||
// function is expected to return appropriate value as expected for
|
||||
// the URL the user wishes to honor.
|
||||
//
|
||||
// BucketName is passed additionally for the caller to ensure
|
||||
// handle situations where `bucketNames` have multiple `.` separators
|
||||
// in such case HTTPs certs will not work properly for *.<domain>
|
||||
// wildcards, so you need to specifically handle these situations
|
||||
// and not return bucket as part of DNS since those requests may fail.
|
||||
//
|
||||
// For better understanding look at s3utils.IsVirtualHostSupported()
|
||||
// implementation.
|
||||
BucketLookupViaURL func(u url.URL, bucketName string) BucketLookupType
|
||||
|
||||
// TrailingHeaders indicates server support of trailing headers.
|
||||
// Only supported for v4 signatures.
|
||||
TrailingHeaders bool
|
||||
|
@ -133,7 +155,7 @@ type Options struct {
|
|||
// Global constants.
|
||||
const (
|
||||
libraryName = "minio-go"
|
||||
libraryVersion = "v7.0.84"
|
||||
libraryVersion = "v7.0.85"
|
||||
)
|
||||
|
||||
// User Agent should always following the below style.
|
||||
|
@ -279,6 +301,7 @@ func privateNew(endpoint string, opts *Options) (*Client, error) {
|
|||
// Sets bucket lookup style, whether server accepts DNS or Path lookup. Default is Auto - determined
|
||||
// by the SDK. When Auto is specified, DNS lookup is used for Amazon/Google cloud endpoints and Path for all other endpoints.
|
||||
clnt.lookup = opts.BucketLookup
|
||||
clnt.lookupFn = opts.BucketLookupViaURL
|
||||
|
||||
// healthcheck is not initialized
|
||||
clnt.healthStatus = unknown
|
||||
|
@ -1003,6 +1026,18 @@ func (c *Client) makeTargetURL(bucketName, objectName, bucketLocation string, is
|
|||
|
||||
// returns true if virtual hosted style requests are to be used.
|
||||
func (c *Client) isVirtualHostStyleRequest(url url.URL, bucketName string) bool {
|
||||
if c.lookupFn != nil {
|
||||
lookup := c.lookupFn(url, bucketName)
|
||||
switch lookup {
|
||||
case BucketLookupDNS:
|
||||
return true
|
||||
case BucketLookupPath:
|
||||
return false
|
||||
}
|
||||
// if its auto then we fallback to default detection.
|
||||
return s3utils.IsVirtualHostSupported(url, bucketName)
|
||||
}
|
||||
|
||||
if bucketName == "" {
|
||||
return false
|
||||
}
|
||||
|
@ -1010,11 +1045,12 @@ func (c *Client) isVirtualHostStyleRequest(url url.URL, bucketName string) bool
|
|||
if c.lookup == BucketLookupDNS {
|
||||
return true
|
||||
}
|
||||
|
||||
if c.lookup == BucketLookupPath {
|
||||
return false
|
||||
}
|
||||
|
||||
// default to virtual only for Amazon/Google storage. In all other cases use
|
||||
// default to virtual only for Amazon/Google storage. In all other cases use
|
||||
// path style requests
|
||||
return s3utils.IsVirtualHostSupported(url, bucketName)
|
||||
}
|
||||
|
|
12
vendor/github.com/minio/minio-go/v7/s3-endpoints.go
generated
vendored
12
vendor/github.com/minio/minio-go/v7/s3-endpoints.go
generated
vendored
|
@ -32,6 +32,18 @@ type awsS3Endpoint struct {
|
|||
"s3.us-east-2.amazonaws.com",
|
||||
"s3.dualstack.us-east-2.amazonaws.com",
|
||||
},
|
||||
"us-iso-east-1": {
|
||||
"s3.us-iso-east-1.c2s.ic.gov",
|
||||
"s3.dualstack.us-iso-east-1.c2s.ic.gov",
|
||||
},
|
||||
"us-isob-east-1": {
|
||||
"s3.us-isob-east-1.sc2s.sgov.gov",
|
||||
"s3.dualstack.us-isob-east-1.sc2s.sgov.gov",
|
||||
},
|
||||
"us-iso-west-1": {
|
||||
"s3.us-iso-west-1.c2s.ic.gov",
|
||||
"s3.dualstack.us-iso-west-1.c2s.ic.gov",
|
||||
},
|
||||
"us-west-2": {
|
||||
"s3.us-west-2.amazonaws.com",
|
||||
"s3.dualstack.us-west-2.amazonaws.com",
|
||||
|
|
2
vendor/modules.txt
vendored
2
vendor/modules.txt
vendored
|
@ -469,7 +469,7 @@ github.com/miekg/dns
|
|||
# github.com/minio/md5-simd v1.1.2
|
||||
## explicit; go 1.14
|
||||
github.com/minio/md5-simd
|
||||
# github.com/minio/minio-go/v7 v7.0.84
|
||||
# github.com/minio/minio-go/v7 v7.0.85
|
||||
## explicit; go 1.22
|
||||
github.com/minio/minio-go/v7
|
||||
github.com/minio/minio-go/v7/pkg/cors
|
||||
|
|
Loading…
Reference in a new issue