2022-05-15 00:43:37 -07:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
|
|
package messaging_pb;
|
|
|
|
|
|
2022-07-29 00:17:28 -07:00
|
|
|
option go_package = "github.com/seaweedfs/seaweedfs/weed/pb/s3_pb";
|
2022-05-15 00:43:37 -07:00
|
|
|
option java_package = "seaweedfs.client";
|
|
|
|
|
option java_outer_classname = "S3Proto";
|
|
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
service SeaweedS3 {
|
|
|
|
|
|
2022-05-15 21:31:29 -07:00
|
|
|
rpc Configure (S3ConfigureRequest) returns (S3ConfigureResponse) {
|
2022-05-15 00:43:37 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////
|
|
|
|
|
|
2022-05-15 21:31:29 -07:00
|
|
|
message S3ConfigureRequest {
|
|
|
|
|
bytes s3_configuration_file_content = 1;
|
2022-05-15 00:43:37 -07:00
|
|
|
}
|
|
|
|
|
|
2022-05-15 21:31:29 -07:00
|
|
|
message S3ConfigureResponse {
|
2022-05-15 00:43:37 -07:00
|
|
|
}
|
2022-06-15 21:07:55 +08:00
|
|
|
|
|
|
|
|
message S3CircuitBreakerConfig {
|
2022-06-17 19:07:39 +08:00
|
|
|
S3CircuitBreakerOptions global=1;
|
|
|
|
|
map<string, S3CircuitBreakerOptions> buckets= 2;
|
2022-06-15 21:07:55 +08:00
|
|
|
}
|
|
|
|
|
|
2022-06-17 19:07:39 +08:00
|
|
|
message S3CircuitBreakerOptions {
|
2022-06-15 21:07:55 +08:00
|
|
|
bool enabled=1;
|
|
|
|
|
map<string, int64> actions = 2;
|
|
|
|
|
}
|
2025-07-22 01:07:15 -07:00
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////
|
|
|
|
|
// 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;
|
|
|
|
|
}
|