From efe4eac79e0948788b583df5dd0926da5d0db8d4 Mon Sep 17 00:00:00 2001 From: ajanikow <12255597+ajanikow@users.noreply.github.com> Date: Thu, 10 Jun 2021 14:48:12 +0200 Subject: [PATCH] Add DelegationToken resource type --- acl_types.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/acl_types.go b/acl_types.go index 16a21fc3f..c3ba8ddcf 100644 --- a/acl_types.go +++ b/acl_types.go @@ -141,6 +141,7 @@ const ( AclResourceGroup AclResourceCluster AclResourceTransactionalID + AclResourceDelegationToken ) func (a *AclResourceType) String() string { @@ -151,6 +152,7 @@ func (a *AclResourceType) String() string { AclResourceGroup: "Group", AclResourceCluster: "Cluster", AclResourceTransactionalID: "TransactionalID", + AclResourceDelegationToken: "DelegationToken", } s, ok := mapping[*a] if !ok { @@ -174,6 +176,7 @@ func (a *AclResourceType) UnmarshalText(text []byte) error { "group": AclResourceGroup, "cluster": AclResourceCluster, "transactionalid": AclResourceTransactionalID, + "delegationtoken": AclResourceDelegationToken, } art, ok := mapping[normalized]