You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
471 B

  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. }