Skip to content

Commit

Permalink
Add DelegationToken resource type
Browse files Browse the repository at this point in the history
  • Loading branch information
ajanikow committed Jun 10, 2021
1 parent 03b4a4f commit efe4eac
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 efe4eac

Please sign in to comment.