multistore-path-mapping
Hierarchical path mapping for the multistore S3 proxy gateway.
Overview
Translates hierarchical URL paths into flat internal bucket names while configuring list rewrite rules so S3 XML responses display the expected key structure.
For example, with bucket_segments: 2 and separator: "--":
- Request to
/acme/data/file.parquetresolves to internal bucketacme--datawith keyfile.parquet - LIST responses rewrite keys to show the hierarchical structure
Usage
use ;
let mapping = PathMapping ;
// Wrap any BucketRegistry to add path-based routing:
let registry = new;