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

Struct RBACAsserter

coderd/coderdtest/authorize.go:32–36  ·  view source on GitHub ↗

RBACAsserter is a helper for asserting that the correct RBAC checks are performed. This struct is tied to a given user, and only authorizes calls for this user are checked.

Source from the content-addressed store, hash-verified

30// performed. This struct is tied to a given user, and only authorizes calls
31// for this user are checked.
32type RBACAsserter struct {
33 Subject rbac.Subject
34
35 Recorder *RecordingAuthorizer
36}
37
38// AssertRBAC returns an RBACAsserter for the given user. This asserter will
39// allow asserting that the correct RBAC checks are performed for the given user.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected