Support multiple sync tokens
Currently, gib accepts only one token to sync the namespaces under the data/
folder. This works only if there's an account with sufficient rights in all these namespaces. There are cases where having multiple tokens will be needed.
Implementation plan
TBC:
- One general token can still provided, and will be used as default if no specific token is specified.
- Additional tokens can be provided in groups by using a
properties.yml
file (these files are only for projects currently, so check edge cases). - Group properties include a
sync_token
property that will be used to instantiate a newGitLabClient
for the time of the sync of this branch of the data tree. Once synced, the client is destroyed. -
sync_token
points to variable name containing the value of the dedicated token.
Edited by Philippe Lafoucrière