acl_types.go 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. package sarama
  2. type (
  3. AclOperation int
  4. AclPermissionType int
  5. AclResourceType int
  6. AclResourcePatternType int
  7. )
  8. // ref: https://github.com/apache/kafka/blob/trunk/clients/src/main/java/org/apache/kafka/common/acl/AclOperation.java
  9. const (
  10. AclOperationUnknown AclOperation = iota
  11. AclOperationAny
  12. AclOperationAll
  13. AclOperationRead
  14. AclOperationWrite
  15. AclOperationCreate
  16. AclOperationDelete
  17. AclOperationAlter
  18. AclOperationDescribe
  19. AclOperationClusterAction
  20. AclOperationDescribeConfigs
  21. AclOperationAlterConfigs
  22. AclOperationIdempotentWrite
  23. )
  24. // ref: https://github.com/apache/kafka/blob/trunk/clients/src/main/java/org/apache/kafka/common/acl/AclPermissionType.java
  25. const (
  26. AclPermissionUnknown AclPermissionType = iota
  27. AclPermissionAny
  28. AclPermissionDeny
  29. AclPermissionAllow
  30. )
  31. // ref: https://github.com/apache/kafka/blob/trunk/clients/src/main/java/org/apache/kafka/common/resource/ResourceType.java
  32. const (
  33. AclResourceUnknown AclResourceType = iota
  34. AclResourceAny
  35. AclResourceTopic
  36. AclResourceGroup
  37. AclResourceCluster
  38. AclResourceTransactionalID
  39. )
  40. // ref: https://github.com/apache/kafka/blob/trunk/clients/src/main/java/org/apache/kafka/common/resource/PatternType.java
  41. const (
  42. AclPatternUnknown AclResourcePatternType = iota
  43. AclPatternAny
  44. AclPatternMatch
  45. AclPatternLiteral
  46. AclPatternPrefixed
  47. )