Skip to content

Commit

Permalink
Merge pull request #1964 from ajanikow/add_delegation_token_resource_…
Browse files Browse the repository at this point in the history
…type

Add DelegationToken ResourceType
  • Loading branch information
dnwe committed Jun 14, 2021
2 parents 03b4a4f + efe4eac commit d01b344
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions acl_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ const (
AclResourceGroup
AclResourceCluster
AclResourceTransactionalID
AclResourceDelegationToken
)

func (a *AclResourceType) String() string {
Expand All @@ -151,6 +152,7 @@ func (a *AclResourceType) String() string {
AclResourceGroup: "Group",
AclResourceCluster: "Cluster",
AclResourceTransactionalID: "TransactionalID",
AclResourceDelegationToken: "DelegationToken",
}
s, ok := mapping[*a]
if !ok {
Expand All @@ -174,6 +176,7 @@ func (a *AclResourceType) UnmarshalText(text []byte) error {
"group": AclResourceGroup,
"cluster": AclResourceCluster,
"transactionalid": AclResourceTransactionalID,
"delegationtoken": AclResourceDelegationToken,
}

art, ok := mapping[normalized]
Expand Down

0 comments on commit d01b344

Please sign in to comment.