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

Function AllowResourceTarget

codersdk/allowlist.go:29–31  ·  view source on GitHub ↗
(r RBACResource, id uuid.UUID)

Source from the content-addressed store, hash-verified

27}
28
29func 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.
34func (t APIAllowListTarget) String() string {

Callers 1

Calls 1

StringMethod · 0.45

Tested by 1