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