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.73 to 7.0.74 (#3125)
Bumps [github.com/minio/minio-go/v7](https://github.com/minio/minio-go) from 7.0.73 to 7.0.74. - [Release notes](https://github.com/minio/minio-go/releases) - [Commits](https://github.com/minio/minio-go/compare/v7.0.73...v7.0.74) --- 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> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
		
					parent
					
						
							
								c635080a0b
							
						
					
				
			
			
				commit
				
					
						5338825d2b
					
				
			
		
					 9 changed files with 54 additions and 13 deletions
				
			
		
							
								
								
									
										2
									
								
								go.mod
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								go.mod
									
										
									
									
									
								
							|  | @ -42,7 +42,7 @@ require ( | ||||||
| 	github.com/jackc/pgx/v5 v5.6.0 | 	github.com/jackc/pgx/v5 v5.6.0 | ||||||
| 	github.com/microcosm-cc/bluemonday v1.0.27 | 	github.com/microcosm-cc/bluemonday v1.0.27 | ||||||
| 	github.com/miekg/dns v1.1.61 | 	github.com/miekg/dns v1.1.61 | ||||||
| 	github.com/minio/minio-go/v7 v7.0.73 | 	github.com/minio/minio-go/v7 v7.0.74 | ||||||
| 	github.com/mitchellh/mapstructure v1.5.0 | 	github.com/mitchellh/mapstructure v1.5.0 | ||||||
| 	github.com/ncruces/go-sqlite3 v0.17.1 | 	github.com/ncruces/go-sqlite3 v0.17.1 | ||||||
| 	github.com/oklog/ulid v1.3.1 | 	github.com/oklog/ulid v1.3.1 | ||||||
|  |  | ||||||
							
								
								
									
										4
									
								
								go.sum
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								go.sum
									
										
									
									
									
								
							|  | @ -391,8 +391,8 @@ github.com/miekg/dns v1.1.61 h1:nLxbwF3XxhwVSm8g9Dghm9MHPaUZuqhPiGL+675ZmEs= | ||||||
| github.com/miekg/dns v1.1.61/go.mod h1:mnAarhS3nWaW+NVP2wTkYVIZyHNJ098SJZUki3eykwQ= | github.com/miekg/dns v1.1.61/go.mod h1:mnAarhS3nWaW+NVP2wTkYVIZyHNJ098SJZUki3eykwQ= | ||||||
| github.com/minio/md5-simd v1.1.2 h1:Gdi1DZK69+ZVMoNHRXJyNcxrMA4dSxoYHZSQbirFg34= | 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/md5-simd v1.1.2/go.mod h1:MzdKDxYpY2BT9XQFocsiZf/NKVtR7nkE4RoEpN+20RM= | ||||||
| github.com/minio/minio-go/v7 v7.0.73 h1:qr2vi96Qm7kZ4v7LLebjte+MQh621fFWnv93p12htEo= | github.com/minio/minio-go/v7 v7.0.74 h1:fTo/XlPBTSpo3BAMshlwKL5RspXRv9us5UeHEGYCFe0= | ||||||
| github.com/minio/minio-go/v7 v7.0.73/go.mod h1:qydcVzV8Hqtj1VtEocfxbmVFa2siu6HGa+LDEPogjD8= | github.com/minio/minio-go/v7 v7.0.74/go.mod h1:qydcVzV8Hqtj1VtEocfxbmVFa2siu6HGa+LDEPogjD8= | ||||||
| github.com/mitchellh/copystructure v1.0.0/go.mod h1:SNtv71yrdKgLRyLFxmLdkAbkKEFWgYaq1OVrnRcwhnw= | 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 h1:vpKXTN4ewci03Vljg/q9QvCGUDttBOGBIa15WveJJGw= | ||||||
| github.com/mitchellh/copystructure v1.2.0/go.mod h1:qLl+cE2AmVv+CoeAwDPye/v+N2HKCj9FbZEVFJRxO9s= | github.com/mitchellh/copystructure v1.2.0/go.mod h1:qLl+cE2AmVv+CoeAwDPye/v+N2HKCj9FbZEVFJRxO9s= | ||||||
|  |  | ||||||
							
								
								
									
										24
									
								
								vendor/github.com/minio/minio-go/v7/api-get-object.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										24
									
								
								vendor/github.com/minio/minio-go/v7/api-get-object.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -32,10 +32,18 @@ import ( | ||||||
| func (c *Client) GetObject(ctx context.Context, bucketName, objectName string, opts GetObjectOptions) (*Object, error) { | func (c *Client) GetObject(ctx context.Context, bucketName, objectName string, opts GetObjectOptions) (*Object, error) { | ||||||
| 	// Input validation. | 	// Input validation. | ||||||
| 	if err := s3utils.CheckValidBucketName(bucketName); err != nil { | 	if err := s3utils.CheckValidBucketName(bucketName); err != nil { | ||||||
| 		return nil, err | 		return nil, ErrorResponse{ | ||||||
|  | 			StatusCode: http.StatusBadRequest, | ||||||
|  | 			Code:       "InvalidBucketName", | ||||||
|  | 			Message:    err.Error(), | ||||||
|  | 		} | ||||||
| 	} | 	} | ||||||
| 	if err := s3utils.CheckValidObjectName(objectName); err != nil { | 	if err := s3utils.CheckValidObjectName(objectName); err != nil { | ||||||
| 		return nil, err | 		return nil, ErrorResponse{ | ||||||
|  | 			StatusCode: http.StatusBadRequest, | ||||||
|  | 			Code:       "XMinioInvalidObjectName", | ||||||
|  | 			Message:    err.Error(), | ||||||
|  | 		} | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	gctx, cancel := context.WithCancel(ctx) | 	gctx, cancel := context.WithCancel(ctx) | ||||||
|  | @ -649,10 +657,18 @@ func newObject(ctx context.Context, cancel context.CancelFunc, reqCh chan<- getR | ||||||
| func (c *Client) getObject(ctx context.Context, bucketName, objectName string, opts GetObjectOptions) (io.ReadCloser, ObjectInfo, http.Header, error) { | func (c *Client) getObject(ctx context.Context, bucketName, objectName string, opts GetObjectOptions) (io.ReadCloser, ObjectInfo, http.Header, error) { | ||||||
| 	// Validate input arguments. | 	// Validate input arguments. | ||||||
| 	if err := s3utils.CheckValidBucketName(bucketName); err != nil { | 	if err := s3utils.CheckValidBucketName(bucketName); err != nil { | ||||||
| 		return nil, ObjectInfo{}, nil, err | 		return nil, ObjectInfo{}, nil, ErrorResponse{ | ||||||
|  | 			StatusCode: http.StatusBadRequest, | ||||||
|  | 			Code:       "InvalidBucketName", | ||||||
|  | 			Message:    err.Error(), | ||||||
|  | 		} | ||||||
| 	} | 	} | ||||||
| 	if err := s3utils.CheckValidObjectName(objectName); err != nil { | 	if err := s3utils.CheckValidObjectName(objectName); err != nil { | ||||||
| 		return nil, ObjectInfo{}, nil, err | 		return nil, ObjectInfo{}, nil, ErrorResponse{ | ||||||
|  | 			StatusCode: http.StatusBadRequest, | ||||||
|  | 			Code:       "XMinioInvalidObjectName", | ||||||
|  | 			Message:    err.Error(), | ||||||
|  | 		} | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	// Execute GET on objectName. | 	// Execute GET on objectName. | ||||||
|  |  | ||||||
							
								
								
									
										12
									
								
								vendor/github.com/minio/minio-go/v7/api-stat.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										12
									
								
								vendor/github.com/minio/minio-go/v7/api-stat.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -61,10 +61,18 @@ func (c *Client) BucketExists(ctx context.Context, bucketName string) (bool, err | ||||||
| func (c *Client) StatObject(ctx context.Context, bucketName, objectName string, opts StatObjectOptions) (ObjectInfo, error) { | func (c *Client) StatObject(ctx context.Context, bucketName, objectName string, opts StatObjectOptions) (ObjectInfo, error) { | ||||||
| 	// Input validation. | 	// Input validation. | ||||||
| 	if err := s3utils.CheckValidBucketName(bucketName); err != nil { | 	if err := s3utils.CheckValidBucketName(bucketName); err != nil { | ||||||
| 		return ObjectInfo{}, err | 		return ObjectInfo{}, ErrorResponse{ | ||||||
|  | 			StatusCode: http.StatusBadRequest, | ||||||
|  | 			Code:       "InvalidBucketName", | ||||||
|  | 			Message:    err.Error(), | ||||||
|  | 		} | ||||||
| 	} | 	} | ||||||
| 	if err := s3utils.CheckValidObjectName(objectName); err != nil { | 	if err := s3utils.CheckValidObjectName(objectName); err != nil { | ||||||
| 		return ObjectInfo{}, err | 		return ObjectInfo{}, ErrorResponse{ | ||||||
|  | 			StatusCode: http.StatusBadRequest, | ||||||
|  | 			Code:       "XMinioInvalidObjectName", | ||||||
|  | 			Message:    err.Error(), | ||||||
|  | 		} | ||||||
| 	} | 	} | ||||||
| 	headers := opts.Header() | 	headers := opts.Header() | ||||||
| 	if opts.Internal.ReplicationDeleteMarker { | 	if opts.Internal.ReplicationDeleteMarker { | ||||||
|  |  | ||||||
							
								
								
									
										2
									
								
								vendor/github.com/minio/minio-go/v7/api.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								vendor/github.com/minio/minio-go/v7/api.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -129,7 +129,7 @@ type Options struct { | ||||||
| // Global constants. | // Global constants. | ||||||
| const ( | const ( | ||||||
| 	libraryName    = "minio-go" | 	libraryName    = "minio-go" | ||||||
| 	libraryVersion = "v7.0.73" | 	libraryVersion = "v7.0.74" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| // User Agent should always following the below style. | // User Agent should always following the below style. | ||||||
|  |  | ||||||
							
								
								
									
										2
									
								
								vendor/github.com/minio/minio-go/v7/pkg/credentials/file_minio_client.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								vendor/github.com/minio/minio-go/v7/pkg/credentials/file_minio_client.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -39,7 +39,7 @@ type FileMinioClient struct { | ||||||
| 	Filename string | 	Filename string | ||||||
| 
 | 
 | ||||||
| 	// MinIO Alias to extract credentials from the shared credentials file. If empty | 	// MinIO Alias to extract credentials from the shared credentials file. If empty | ||||||
| 	// will default to environment variable "MINIO_ALIAS" or "default" if | 	// will default to environment variable "MINIO_ALIAS" or "s3" if | ||||||
| 	// environment variable is also not set. | 	// environment variable is also not set. | ||||||
| 	Alias string | 	Alias string | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
							
								
								
									
										2
									
								
								vendor/github.com/minio/minio-go/v7/pkg/s3utils/utils.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								vendor/github.com/minio/minio-go/v7/pkg/s3utils/utils.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -226,7 +226,7 @@ func IsGoogleEndpoint(endpointURL url.URL) bool { | ||||||
| 	if endpointURL == sentinelURL { | 	if endpointURL == sentinelURL { | ||||||
| 		return false | 		return false | ||||||
| 	} | 	} | ||||||
| 	return endpointURL.Host == "storage.googleapis.com" | 	return endpointURL.Hostname() == "storage.googleapis.com" | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // Expects ascii encoded strings - from output of urlEncodePath | // Expects ascii encoded strings - from output of urlEncodePath | ||||||
|  |  | ||||||
							
								
								
									
										17
									
								
								vendor/github.com/minio/minio-go/v7/post-policy.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										17
									
								
								vendor/github.com/minio/minio-go/v7/post-policy.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -209,6 +209,23 @@ func (p *PostPolicy) SetContentTypeStartsWith(contentTypeStartsWith string) erro | ||||||
| 	return nil | 	return nil | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | // SetContentDisposition - Sets content-disposition of the object for this policy | ||||||
|  | func (p *PostPolicy) SetContentDisposition(contentDisposition string) error { | ||||||
|  | 	if strings.TrimSpace(contentDisposition) == "" || contentDisposition == "" { | ||||||
|  | 		return errInvalidArgument("No content disposition specified.") | ||||||
|  | 	} | ||||||
|  | 	policyCond := policyCondition{ | ||||||
|  | 		matchType: "eq", | ||||||
|  | 		condition: "$Content-Disposition", | ||||||
|  | 		value:     contentDisposition, | ||||||
|  | 	} | ||||||
|  | 	if err := p.addNewPolicy(policyCond); err != nil { | ||||||
|  | 		return err | ||||||
|  | 	} | ||||||
|  | 	p.formData["Content-Disposition"] = contentDisposition | ||||||
|  | 	return nil | ||||||
|  | } | ||||||
|  | 
 | ||||||
| // SetContentLengthRange - Set new min and max content length | // SetContentLengthRange - Set new min and max content length | ||||||
| // condition for all incoming uploads. | // condition for all incoming uploads. | ||||||
| func (p *PostPolicy) SetContentLengthRange(min, max int64) error { | func (p *PostPolicy) SetContentLengthRange(min, max int64) error { | ||||||
|  |  | ||||||
							
								
								
									
										2
									
								
								vendor/modules.txt
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								vendor/modules.txt
									
										
									
									
										vendored
									
									
								
							|  | @ -454,7 +454,7 @@ github.com/miekg/dns | ||||||
| # github.com/minio/md5-simd v1.1.2 | # github.com/minio/md5-simd v1.1.2 | ||||||
| ## explicit; go 1.14 | ## explicit; go 1.14 | ||||||
| github.com/minio/md5-simd | github.com/minio/md5-simd | ||||||
| # github.com/minio/minio-go/v7 v7.0.73 | # github.com/minio/minio-go/v7 v7.0.74 | ||||||
| ## explicit; go 1.21 | ## explicit; go 1.21 | ||||||
| github.com/minio/minio-go/v7 | github.com/minio/minio-go/v7 | ||||||
| github.com/minio/minio-go/v7/pkg/credentials | github.com/minio/minio-go/v7/pkg/credentials | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue