mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 02:12:24 -05:00 
			
		
		
		
	[chore]: Bump github.com/minio/minio-go/v7 from 7.0.43 to 7.0.44 (#1107)
Bumps [github.com/minio/minio-go/v7](https://github.com/minio/minio-go) from 7.0.43 to 7.0.44. - [Release notes](https://github.com/minio/minio-go/releases) - [Commits](https://github.com/minio/minio-go/compare/v7.0.43...v7.0.44) --- 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> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
		
					parent
					
						
							
								4a9538593c
							
						
					
				
			
			
				commit
				
					
						274626ab5e
					
				
			
		
					 8 changed files with 37 additions and 14 deletions
				
			
		
							
								
								
									
										2
									
								
								vendor/github.com/minio/minio-go/v7/api.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								vendor/github.com/minio/minio-go/v7/api.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -119,7 +119,7 @@ type Options struct { | |||
| // Global constants. | ||||
| const ( | ||||
| 	libraryName    = "minio-go" | ||||
| 	libraryVersion = "v7.0.43" | ||||
| 	libraryVersion = "v7.0.44" | ||||
| ) | ||||
| 
 | ||||
| // User Agent should always following the below style. | ||||
|  |  | |||
							
								
								
									
										4
									
								
								vendor/github.com/minio/minio-go/v7/functional_tests.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								vendor/github.com/minio/minio-go/v7/functional_tests.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -4204,10 +4204,6 @@ func testPresignedPostPolicy() { | |||
| 		logError(testName, function, args, startTime, "", "SetKey did not fail for invalid conditions", err) | ||||
| 		return | ||||
| 	} | ||||
| 	if err := policy.SetKeyStartsWith(""); err == nil { | ||||
| 		logError(testName, function, args, startTime, "", "SetKeyStartsWith did not fail for invalid conditions", err) | ||||
| 		return | ||||
| 	} | ||||
| 	if err := policy.SetExpires(time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC)); err == nil { | ||||
| 		logError(testName, function, args, startTime, "", "SetExpires did not fail for invalid conditions", err) | ||||
| 		return | ||||
|  |  | |||
							
								
								
									
										22
									
								
								vendor/github.com/minio/minio-go/v7/pkg/notification/notification.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										22
									
								
								vendor/github.com/minio/minio-go/v7/pkg/notification/notification.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -21,6 +21,7 @@ import ( | |||
| 	"encoding/xml" | ||||
| 	"errors" | ||||
| 	"fmt" | ||||
| 	"strings" | ||||
| 
 | ||||
| 	"github.com/minio/minio-go/v7/pkg/set" | ||||
| ) | ||||
|  | @ -88,6 +89,27 @@ func NewArn(partition, service, region, accountID, resource string) Arn { | |||
| 	} | ||||
| } | ||||
| 
 | ||||
| var ( | ||||
| 	// ErrInvalidArnPrefix is returned when ARN string format does not start with 'arn' | ||||
| 	ErrInvalidArnPrefix = errors.New("invalid ARN format, must start with 'arn:'") | ||||
| 	// ErrInvalidArnFormat is returned when ARN string format is not valid | ||||
| 	ErrInvalidArnFormat = errors.New("invalid ARN format, must be 'arn:<partition>:<service>:<region>:<accountID>:<resource>'") | ||||
| ) | ||||
| 
 | ||||
| // NewArnFromString parses string representation of ARN into Arn object. | ||||
| // Returns an error if the string format is incorrect. | ||||
| func NewArnFromString(arn string) (Arn, error) { | ||||
| 	parts := strings.Split(arn, ":") | ||||
| 	if len(parts) != 6 { | ||||
| 		return Arn{}, ErrInvalidArnFormat | ||||
| 	} | ||||
| 	if parts[0] != "arn" { | ||||
| 		return Arn{}, ErrInvalidArnPrefix | ||||
| 	} | ||||
| 
 | ||||
| 	return NewArn(parts[1], parts[2], parts[3], parts[4], parts[5]), nil | ||||
| } | ||||
| 
 | ||||
| // String returns the string format of the ARN | ||||
| func (arn Arn) String() string { | ||||
| 	return "arn:" + arn.Partition + ":" + arn.Service + ":" + arn.Region + ":" + arn.AccountID + ":" + arn.Resource | ||||
|  |  | |||
							
								
								
									
										12
									
								
								vendor/github.com/minio/minio-go/v7/post-policy.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										12
									
								
								vendor/github.com/minio/minio-go/v7/post-policy.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -97,10 +97,8 @@ func (p *PostPolicy) SetKey(key string) error { | |||
| 
 | ||||
| // SetKeyStartsWith - Sets an object name that an policy based upload | ||||
| // can start with. | ||||
| // Can use an empty value ("") to allow any key. | ||||
| func (p *PostPolicy) SetKeyStartsWith(keyStartsWith string) error { | ||||
| 	if strings.TrimSpace(keyStartsWith) == "" || keyStartsWith == "" { | ||||
| 		return errInvalidArgument("Object prefix is empty.") | ||||
| 	} | ||||
| 	policyCond := policyCondition{ | ||||
| 		matchType: "starts-with", | ||||
| 		condition: "$key", | ||||
|  | @ -171,7 +169,7 @@ func (p *PostPolicy) SetContentType(contentType string) error { | |||
| 
 | ||||
| // SetContentTypeStartsWith - Sets what content-type of the object for this policy | ||||
| // based upload can start with. | ||||
| // If "" is provided it allows all content-types. | ||||
| // Can use an empty value ("") to allow any content-type. | ||||
| func (p *PostPolicy) SetContentTypeStartsWith(contentTypeStartsWith string) error { | ||||
| 	policyCond := policyCondition{ | ||||
| 		matchType: "starts-with", | ||||
|  | @ -283,10 +281,14 @@ func (p *PostPolicy) SetUserData(key string, value string) error { | |||
| } | ||||
| 
 | ||||
| // addNewPolicy - internal helper to validate adding new policies. | ||||
| // Can use starts-with with an empty value ("") to allow any content within a form field. | ||||
| func (p *PostPolicy) addNewPolicy(policyCond policyCondition) error { | ||||
| 	if policyCond.matchType == "" || policyCond.condition == "" || policyCond.value == "" { | ||||
| 	if policyCond.matchType == "" || policyCond.condition == "" { | ||||
| 		return errInvalidArgument("Policy fields are empty.") | ||||
| 	} | ||||
| 	if policyCond.matchType != "starts-with" && policyCond.value == "" { | ||||
| 		return errInvalidArgument("Policy value is empty.") | ||||
| 	} | ||||
| 	p.conditions = append(p.conditions, policyCond) | ||||
| 	return nil | ||||
| } | ||||
|  |  | |||
							
								
								
									
										3
									
								
								vendor/github.com/minio/minio-go/v7/s3-endpoints.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								vendor/github.com/minio/minio-go/v7/s3-endpoints.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -28,8 +28,10 @@ var awsS3EndpointMap = map[string]string{ | |||
| 	"eu-west-2":      "s3.dualstack.eu-west-2.amazonaws.com", | ||||
| 	"eu-west-3":      "s3.dualstack.eu-west-3.amazonaws.com", | ||||
| 	"eu-central-1":   "s3.dualstack.eu-central-1.amazonaws.com", | ||||
| 	"eu-central-2":   "s3.dualstack.eu-central-2.amazonaws.com", | ||||
| 	"eu-north-1":     "s3.dualstack.eu-north-1.amazonaws.com", | ||||
| 	"eu-south-1":     "s3.dualstack.eu-south-1.amazonaws.com", | ||||
| 	"eu-south-2":     "s3.dualstack.eu-south-2.amazonaws.com", | ||||
| 	"ap-east-1":      "s3.dualstack.ap-east-1.amazonaws.com", | ||||
| 	"ap-south-1":     "s3.dualstack.ap-south-1.amazonaws.com", | ||||
| 	"ap-southeast-1": "s3.dualstack.ap-southeast-1.amazonaws.com", | ||||
|  | @ -38,6 +40,7 @@ var awsS3EndpointMap = map[string]string{ | |||
| 	"ap-northeast-2": "s3.dualstack.ap-northeast-2.amazonaws.com", | ||||
| 	"ap-northeast-3": "s3.dualstack.ap-northeast-3.amazonaws.com", | ||||
| 	"af-south-1":     "s3.dualstack.af-south-1.amazonaws.com", | ||||
| 	"me-central-1":   "s3.dualstack.me-central-1.amazonaws.com", | ||||
| 	"me-south-1":     "s3.dualstack.me-south-1.amazonaws.com", | ||||
| 	"sa-east-1":      "s3.dualstack.sa-east-1.amazonaws.com", | ||||
| 	"us-gov-west-1":  "s3.dualstack.us-gov-west-1.amazonaws.com", | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue