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

Struct objectBomb

coderd/rbac/authz_internal_test.go:39–42  ·  view source on GitHub ↗

objectBomb is a wrapper around an Objecter that calls a function when RBACObject is called.

Source from the content-addressed store, hash-verified

37// objectBomb is a wrapper around an Objecter that calls a function when
38// RBACObject is called.
39type objectBomb struct {
40 Objecter
41 bomb func()
42}
43
44func (o *objectBomb) RBACObject() Object {
45 o.bomb()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected