Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

s3tables: add isAuthError helper to handler.go

Chris Lu2f4cee953896
diff --git a/weed/s3api/s3tables/handler.go b/weed/s3api/s3tables/handler.go
index ccff1fe7c9..57a2cd16e1 100644
--- a/weed/s3api/s3tables/handler.go
+++ b/weed/s3api/s3tables/handler.go
@@ -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)
+}