(entry rbac.AllowListElement)
| 37 | ) |
| 38 | |
| 39 | func APIAllowListTarget(entry rbac.AllowListElement) codersdk.APIAllowListTarget { |
| 40 | return codersdk.APIAllowListTarget{ |
| 41 | Type: codersdk.RBACResource(entry.Type), |
| 42 | ID: entry.ID, |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | // AIProvider converts a database row plus its API keys into the |
| 47 | // codersdk shape. The caller is responsible for ensuring the row and |
nothing calls this directly
no test coverage detected