Method
SetBinding
(_ context.Context, platform, userID, principal string)
Source from the content-addressed store, hash-verified
| 78 | } |
| 79 | |
| 80 | func (f *fakeHubClient) SetBinding(_ context.Context, platform, userID, principal string) error { |
| 81 | f.mu.Lock() |
| 82 | defer f.mu.Unlock() |
| 83 | f.bindings = append(f.bindings, models.HubBinding{Platform: platform, UserID: userID, Principal: principal}) |
| 84 | return nil |
| 85 | } |
| 86 | |
| 87 | func (f *fakeHubClient) ListBindings(_ context.Context, _ string) ([]models.HubBinding, error) { |
| 88 | f.mu.Lock() |
Callers
nothing calls this directly
Tested by
no test coverage detected