mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-10 16:27:47 +02:00
s3tables: add isAuthError helper to handler.go
This commit is contained in:
1 parent
090d473822
commit
2f4cee9538
1 file changed
+5
@@ -229,3 +229,8 @@ func (h *S3TablesHandler) generateTableBucketARN(r *http.Request, bucketName str
|
||||
func (h *S3TablesHandler) generateTableARN(r *http.Request, bucketName, tableID string) string {
|
||||
return fmt.Sprintf("arn:aws:s3tables:%s:%s:bucket/%s/table/%s", h.region, h.getAccountID(r), bucketName, tableID)
|
||||
}
|
||||
|
||||
func isAuthError(err error) bool {
|
||||
var authErr *AuthError
|
||||
return errors.As(err, &authErr)
|
||||
}
|
||||
Reference in new issue
Block a user