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

Method String

coderd/rbac/authz.go:920–933  ·  view source on GitHub ↗

String serializes all of the checks recorded, using the following syntax:

()

Source from the content-addressed store, hash-verified

918
919// String serializes all of the checks recorded, using the following syntax:
920func (r *AuthzCheckRecorder) String() string {
921 r.lock.Lock()
922 defer r.lock.Unlock()
923
924 if len(r.checks) == 0 {
925 return "nil"
926 }
927
928 checks := make([]string, 0, len(r.checks))
929 for _, check := range r.checks {
930 checks = append(checks, fmt.Sprintf("%v=%v", check.name, check.result))
931 }
932 return strings.Join(checks, "; ")
933}

Callers 5

SafeScopeNameMethod · 0.45
newPartialAuthorizerMethod · 0.45
rbacTraceAttributesFunction · 0.45
recordAuthzCheckFunction · 0.45

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected