s3_config.go 471 B

123456789101112131415161718
  1. package s3_constants
  2. import (
  3. "strings"
  4. )
  5. var (
  6. CircuitBreakerConfigDir = "/etc/s3"
  7. CircuitBreakerConfigFile = "circuit_breaker.json"
  8. AllowedActions = []string{ACTION_READ, ACTION_READ_ACP, ACTION_WRITE, ACTION_WRITE_ACP, ACTION_LIST, ACTION_TAGGING, ACTION_ADMIN}
  9. LimitTypeCount = "Count"
  10. LimitTypeBytes = "MB"
  11. Separator = ":"
  12. )
  13. func Concat(elements ...string) string {
  14. return strings.Join(elements, Separator)
  15. }