seaweedfs/weed/s3api/s3_constants/s3_config.go

19 lines
436 B
Go
Raw Normal View History

2022-06-17 11:07:39 +00:00
package s3_constants
import (
"strings"
)
var (
CircuitBreakerConfigDir = "/etc/s3"
CircuitBreakerConfigFile = "circuit_breaker.json"
2022-06-17 11:07:39 +00:00
AllowedActions = []string{ACTION_READ, ACTION_WRITE, ACTION_LIST, ACTION_TAGGING, ACTION_ADMIN}
2022-06-20 04:35:29 +00:00
LimitTypeCount = "Count"
LimitTypeBytes = "MB"
Separator = ":"
)
func Concat(elements ...string) string {
return strings.Join(elements, Separator)
}