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

Method Prepare

coderd/rbac/authz.go:803–805  ·  view source on GitHub ↗

Prepare returns the underlying PreparedAuthorized. The cache does not apply to prepared authorizations. These should be using a SQL filter, and therefore the cache is not needed.

(ctx context.Context, subject Subject, action policy.Action, objectType string)

Source from the content-addressed store, hash-verified

801// to prepared authorizations. These should be using a SQL filter, and
802// therefore the cache is not needed.
803func (c *authCache) Prepare(ctx context.Context, subject Subject, action policy.Action, objectType string) (PreparedAuthorized, error) {
804 return c.authz.Prepare(ctx, subject, action, objectType)
805}
806
807// rbacTraceAttributes are the attributes that are added to all spans created by
808// the rbac package. These attributes should help to debug slow spans.

Callers

nothing calls this directly

Calls 1

PrepareMethod · 0.65

Tested by

no test coverage detected