MCPcopy Index your code
hub / github.com/coder/coder / APIAllowListTarget

Function APIAllowListTarget

coderd/database/db2sdk/db2sdk.go:39–44  ·  view source on GitHub ↗
(entry rbac.AllowListElement)

Source from the content-addressed store, hash-verified

37)
38
39func 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

Callers

nothing calls this directly

Calls 1

RBACResourceTypeAlias · 0.92

Tested by

no test coverage detected