diff options
Diffstat (limited to 'weed/pb/s3.proto')
| -rw-r--r-- | weed/pb/s3.proto | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/weed/pb/s3.proto b/weed/pb/s3.proto index 0367d3168..4c9e52c24 100644 --- a/weed/pb/s3.proto +++ b/weed/pb/s3.proto @@ -33,3 +33,24 @@ message S3CircuitBreakerOptions { bool enabled=1; map<string, int64> actions = 2; } + +////////////////////////////////////////////////// +// Bucket Metadata + +message CORSRule { + repeated string allowed_headers = 1; + repeated string allowed_methods = 2; + repeated string allowed_origins = 3; + repeated string expose_headers = 4; + int32 max_age_seconds = 5; + string id = 6; +} + +message CORSConfiguration { + repeated CORSRule cors_rules = 1; +} + +message BucketMetadata { + map<string, string> tags = 1; + CORSConfiguration cors = 2; +} |
