MCPcopy Index your code
hub / github.com/git-bug/git-bug / Init

Method Init

bridge/gitlab/export.go:42–57  ·  view source on GitHub ↗

Init .

(_ context.Context, repo *cache.RepoCache, conf core.Configuration)

Source from the content-addressed store, hash-verified

40
41// Init .
42func (ge *gitlabExporter) Init(_ context.Context, repo *cache.RepoCache, conf core.Configuration) error {
43 ge.conf = conf
44 ge.identityClient = make(map[entity.Id]*gitlab.Client)
45 ge.cachedOperationIDs = make(map[string]string)
46
47 // get repository node id
48 ge.repositoryID = ge.conf[confKeyProjectID]
49
50 // preload all clients
51 err := ge.cacheAllClient(repo, ge.conf[confKeyGitlabBaseUrl])
52 if err != nil {
53 return err
54 }
55
56 return nil
57}
58
59func (ge *gitlabExporter) cacheAllClient(repo *cache.RepoCache, baseURL string) error {
60 creds, err := auth.List(repo,

Callers 1

TestGitlabPushPullFunction · 0.95

Calls 1

cacheAllClientMethod · 0.95

Tested by 1

TestGitlabPushPullFunction · 0.76