s3balancer

package
v0.4.4-alpha25 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Invariant: Buckets created after this date PHYSICALLY CANNOT use PathStyle.
	// S3 returns 403 Forbidden for path-style requests on these buckets.
	PathStyleCutoff = time.Date(2020, time.September, 30, 0, 0, 0, 0, time.UTC)
)

Functions

This section is empty.

Types

type S3Addressing

type S3Addressing int

S3Addressing represents the forced invariant for the request URL structure.

const (
	VirtualHost S3Addressing = iota
	PathStyle
)

func DecideAddressing

func DecideAddressing(bucketName string, created time.Time, forcePathStyle bool) S3Addressing

DecideAddressing strictly determines the required S3 addressing style. entropy is zero; logic is dictated by AWS infrastructure invariants.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL