mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[chore]: Bump github.com/minio/minio-go/v7 from 7.0.67 to 7.0.69 (#2748)
This commit is contained in:
23
vendor/github.com/minio/minio-go/v7/api.go
generated
vendored
23
vendor/github.com/minio/minio-go/v7/api.go
generated
vendored
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* MinIO Go Library for Amazon S3 Compatible Cloud Storage
|
||||
* Copyright 2015-2023 MinIO, Inc.
|
||||
* Copyright 2015-2024 MinIO, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@ -80,6 +80,8 @@ type Client struct {
|
||||
|
||||
// S3 specific accelerated endpoint.
|
||||
s3AccelerateEndpoint string
|
||||
// S3 dual-stack endpoints are enabled by default.
|
||||
s3DualstackEnabled bool
|
||||
|
||||
// Region endpoint
|
||||
region string
|
||||
@ -127,7 +129,7 @@ type Options struct {
|
||||
// Global constants.
|
||||
const (
|
||||
libraryName = "minio-go"
|
||||
libraryVersion = "v7.0.67"
|
||||
libraryVersion = "v7.0.69"
|
||||
)
|
||||
|
||||
// User Agent should always following the below style.
|
||||
@ -158,9 +160,12 @@ func New(endpoint string, opts *Options) (*Client, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
// If Amazon S3 set to signature v4.
|
||||
if s3utils.IsAmazonEndpoint(*clnt.endpointURL) {
|
||||
// If Amazon S3 set to signature v4.
|
||||
clnt.overrideSignerType = credentials.SignatureV4
|
||||
// Amazon S3 endpoints are resolved into dual-stack endpoints by default
|
||||
// for backwards compatibility.
|
||||
clnt.s3DualstackEnabled = true
|
||||
}
|
||||
|
||||
return clnt, nil
|
||||
@ -330,6 +335,16 @@ func (c *Client) SetS3TransferAccelerate(accelerateEndpoint string) {
|
||||
}
|
||||
}
|
||||
|
||||
// SetS3EnableDualstack turns s3 dual-stack endpoints on or off for all requests.
|
||||
// The feature is only specific to S3 and is on by default. To read more about
|
||||
// Amazon S3 dual-stack endpoints visit -
|
||||
// https://docs.aws.amazon.com/AmazonS3/latest/userguide/dual-stack-endpoints.html
|
||||
func (c *Client) SetS3EnableDualstack(enabled bool) {
|
||||
if s3utils.IsAmazonEndpoint(*c.endpointURL) {
|
||||
c.s3DualstackEnabled = enabled
|
||||
}
|
||||
}
|
||||
|
||||
// Hash materials provides relevant initialized hash algo writers
|
||||
// based on the expected signature type.
|
||||
//
|
||||
@ -926,7 +941,7 @@ func (c *Client) makeTargetURL(bucketName, objectName, bucketLocation string, is
|
||||
// Do not change the host if the endpoint URL is a FIPS S3 endpoint or a S3 PrivateLink interface endpoint
|
||||
if !s3utils.IsAmazonFIPSEndpoint(*c.endpointURL) && !s3utils.IsAmazonPrivateLinkEndpoint(*c.endpointURL) {
|
||||
// Fetch new host based on the bucket location.
|
||||
host = getS3Endpoint(bucketLocation)
|
||||
host = getS3Endpoint(bucketLocation, c.s3DualstackEnabled)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user