khenaidoo | ac63710 | 2019-01-14 15:44:34 -0500 | [diff] [blame] | 1 | package sarama |
| 2 | |
Scott Baker | beb3cfa | 2019-10-01 14:44:30 -0700 | [diff] [blame] | 3 | type ( |
| 4 | AclOperation int |
| 5 | |
| 6 | AclPermissionType int |
| 7 | |
| 8 | AclResourceType int |
| 9 | |
| 10 | AclResourcePatternType int |
| 11 | ) |
khenaidoo | ac63710 | 2019-01-14 15:44:34 -0500 | [diff] [blame] | 12 | |
| 13 | // ref: https://github.com/apache/kafka/blob/trunk/clients/src/main/java/org/apache/kafka/common/acl/AclOperation.java |
| 14 | const ( |
Scott Baker | beb3cfa | 2019-10-01 14:44:30 -0700 | [diff] [blame] | 15 | AclOperationUnknown AclOperation = iota |
| 16 | AclOperationAny |
| 17 | AclOperationAll |
| 18 | AclOperationRead |
| 19 | AclOperationWrite |
| 20 | AclOperationCreate |
| 21 | AclOperationDelete |
| 22 | AclOperationAlter |
| 23 | AclOperationDescribe |
| 24 | AclOperationClusterAction |
| 25 | AclOperationDescribeConfigs |
| 26 | AclOperationAlterConfigs |
| 27 | AclOperationIdempotentWrite |
khenaidoo | ac63710 | 2019-01-14 15:44:34 -0500 | [diff] [blame] | 28 | ) |
| 29 | |
khenaidoo | ac63710 | 2019-01-14 15:44:34 -0500 | [diff] [blame] | 30 | // ref: https://github.com/apache/kafka/blob/trunk/clients/src/main/java/org/apache/kafka/common/acl/AclPermissionType.java |
| 31 | const ( |
Scott Baker | beb3cfa | 2019-10-01 14:44:30 -0700 | [diff] [blame] | 32 | AclPermissionUnknown AclPermissionType = iota |
| 33 | AclPermissionAny |
| 34 | AclPermissionDeny |
| 35 | AclPermissionAllow |
khenaidoo | ac63710 | 2019-01-14 15:44:34 -0500 | [diff] [blame] | 36 | ) |
| 37 | |
khenaidoo | ac63710 | 2019-01-14 15:44:34 -0500 | [diff] [blame] | 38 | // ref: https://github.com/apache/kafka/blob/trunk/clients/src/main/java/org/apache/kafka/common/resource/ResourceType.java |
| 39 | const ( |
Scott Baker | beb3cfa | 2019-10-01 14:44:30 -0700 | [diff] [blame] | 40 | AclResourceUnknown AclResourceType = iota |
| 41 | AclResourceAny |
| 42 | AclResourceTopic |
| 43 | AclResourceGroup |
| 44 | AclResourceCluster |
| 45 | AclResourceTransactionalID |
khenaidoo | ac63710 | 2019-01-14 15:44:34 -0500 | [diff] [blame] | 46 | ) |
William Kurkian | daa6bb2 | 2019-03-07 12:26:28 -0500 | [diff] [blame] | 47 | |
William Kurkian | daa6bb2 | 2019-03-07 12:26:28 -0500 | [diff] [blame] | 48 | // ref: https://github.com/apache/kafka/blob/trunk/clients/src/main/java/org/apache/kafka/common/resource/PatternType.java |
William Kurkian | daa6bb2 | 2019-03-07 12:26:28 -0500 | [diff] [blame] | 49 | const ( |
| 50 | AclPatternUnknown AclResourcePatternType = iota |
| 51 | AclPatternAny |
| 52 | AclPatternMatch |
| 53 | AclPatternLiteral |
| 54 | AclPatternPrefixed |
| 55 | ) |