kafkajs
Version:
A modern Apache Kafka client for node.js
30 lines (28 loc) • 585 B
JavaScript
// From:
// https://github.com/apache/kafka/blob/trunk/clients/src/main/java/org/apache/kafka/common/acl/AclPermissionType.java/#L31
/**
* @typedef {number} ACLPermissionTypes
*
* Enum for Permission Types
* @readonly
* @enum {ACLPermissionTypes}
*/
module.exports = {
/**
* Represents any AclPermissionType which this client cannot understand,
* perhaps because this client is too old.
*/
UNKNOWN: 0,
/**
* In a filter, matches any AclPermissionType.
*/
ANY: 1,
/**
* Disallows access.
*/
DENY: 2,
/**
* Grants access.
*/
ALLOW: 3,
}