diff options
Diffstat (limited to 'weed/s3api/s3_config/s3_config.go')
| -rw-r--r-- | weed/s3api/s3_config/s3_config.go | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/weed/s3api/s3_config/s3_config.go b/weed/s3api/s3_config/s3_config.go new file mode 100644 index 000000000..c9ae7c1f6 --- /dev/null +++ b/weed/s3api/s3_config/s3_config.go @@ -0,0 +1,19 @@ +package s3_config + +import ( + "github.com/chrislusf/seaweedfs/weed/s3api/s3_constants" + "strings" +) + +var ( + CircuitBreakerConfigDir = "/etc/s3" + CircuitBreakerConfigFile = "circuit_breaker.json" + AllowedActions = []string{s3_constants.ACTION_READ, s3_constants.ACTION_WRITE, s3_constants.ACTION_LIST, s3_constants.ACTION_TAGGING, s3_constants.ACTION_ADMIN} + LimitTypeCount = "count" + LimitTypeBytes = "bytes" + Separator = ":" +) + +func Concat(elements ...string) string { + return strings.Join(elements, Separator) +} |
