Skip to content

Commit

Permalink
add new acl operation types
Browse files Browse the repository at this point in the history
Signed-off-by: Chris <[email protected]>
  • Loading branch information
Chrisss93 authored and dnwe committed Dec 18, 2023
1 parent d40ca6d commit 4c9da50
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions acl_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ const (
AclOperationDescribeConfigs
AclOperationAlterConfigs
AclOperationIdempotentWrite
AclOperationCreateTokens
AclOperationDescribeTokens
)

func (a *AclOperation) String() string {
Expand All @@ -47,6 +49,8 @@ func (a *AclOperation) String() string {
AclOperationDescribeConfigs: "DescribeConfigs",
AclOperationAlterConfigs: "AlterConfigs",
AclOperationIdempotentWrite: "IdempotentWrite",
AclOperationCreateTokens: "CreateTokens",
AclOperationDescribeTokens: "DescribeTokens",
}
s, ok := mapping[*a]
if !ok {
Expand Down Expand Up @@ -77,6 +81,8 @@ func (a *AclOperation) UnmarshalText(text []byte) error {
"describeconfigs": AclOperationDescribeConfigs,
"alterconfigs": AclOperationAlterConfigs,
"idempotentwrite": AclOperationIdempotentWrite,
"createtokens": AclOperationCreateTokens,
"describetokens": AclOperationDescribeTokens,
}
ao, ok := mapping[normalized]
if !ok {
Expand Down

0 comments on commit 4c9da50

Please sign in to comment.