getIdentityClient return a gitlab v4 API client configured with the access token of the given identity.
(userId entity.Id)
| 95 | |
| 96 | // getIdentityClient return a gitlab v4 API client configured with the access token of the given identity. |
| 97 | func (ge *gitlabExporter) getIdentityClient(userId entity.Id) (*gitlab.Client, error) { |
| 98 | client, ok := ge.identityClient[userId] |
| 99 | if ok { |
| 100 | return client, nil |
| 101 | } |
| 102 | |
| 103 | return nil, ErrMissingIdentityToken |
| 104 | } |
| 105 | |
| 106 | // ExportAll export all event made by the current user to Gitlab |
| 107 | func (ge *gitlabExporter) ExportAll(ctx context.Context, repo *cache.RepoCache, since time.Time) (<-chan core.ExportResult, error) { |