MCPcopy
hub / github.com/minio/minio-go / SetS3EnableDualstack

Method SetS3EnableDualstack

api.go:418–422  ·  view source on GitHub ↗

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

(enabled bool)

Source from the content-addressed store, hash-verified

416// Amazon S3 dual-stack endpoints visit -
417// https://docs.aws.amazon.com/AmazonS3/latest/userguide/dual-stack-endpoints.html
418func (c *Client) SetS3EnableDualstack(enabled bool) {
419 if s3utils.IsAmazonEndpoint(*c.endpointURL) {
420 c.s3DualstackEnabled = enabled
421 }
422}
423
424// Hash materials provides relevant initialized hash algo writers
425// based on the expected signature type.

Callers

nothing calls this directly

Calls 1

IsAmazonEndpointFunction · 0.92

Tested by

no test coverage detected