(r RBACResource, id uuid.UUID)
| 27 | } |
| 28 | |
| 29 | func AllowResourceTarget(r RBACResource, id uuid.UUID) APIAllowListTarget { |
| 30 | return APIAllowListTarget{Type: r, ID: id.String()} |
| 31 | } |
| 32 | |
| 33 | // String returns the canonical string representation "<type>:<id>" with "*" wildcards. |
| 34 | func (t APIAllowListTarget) String() string { |