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

Method SetReject

coderd/parameters_test.go:466–470  ·  view source on GitHub ↗

SetReject toggles whether GetGitSSHKey should return an error or passthrough to the underlying store.

(reject bool)

Source from the content-addressed store, hash-verified

464
465// SetReject toggles whether GetGitSSHKey should return an error or passthrough to the underlying store.
466func (d *dbRejectGitSSHKey) SetReject(reject bool) {
467 d.rejectMu.Lock()
468 defer d.rejectMu.Unlock()
469 d.reject = reject
470}
471
472func (d *dbRejectGitSSHKey) GetGitSSHKey(ctx context.Context, userID uuid.UUID) (database.GitSSHKey, error) {
473 if d.hook != nil {

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected