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

Function DefaultVariableConverter

coderd/rbac/regosql/configs.go:161–173  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

159}
160
161func DefaultVariableConverter() *sqltypes.VariableConverter {
162 matcher := sqltypes.NewVariableConverter().RegisterMatcher(
163 resourceIDMatcher(),
164 organizationOwnerMatcher(),
165 userOwnerMatcher(),
166 )
167 matcher.RegisterMatcher(
168 groupACLMatcher(matcher),
169 userACLMatcher(matcher),
170 )
171
172 return matcher
173}

Callers 2

ConfigWithACLFunction · 0.92
TestRegoQueriesFunction · 0.92

Calls 7

NewVariableConverterFunction · 0.92
resourceIDMatcherFunction · 0.85
organizationOwnerMatcherFunction · 0.85
userOwnerMatcherFunction · 0.85
groupACLMatcherFunction · 0.85
userACLMatcherFunction · 0.85
RegisterMatcherMethod · 0.80

Tested by 1

TestRegoQueriesFunction · 0.74