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

Function buildClient

bridge/gitlab/gitlab.go:49–58  ·  view source on GitHub ↗
(baseURL string, token *auth.Token)

Source from the content-addressed store, hash-verified

47}
48
49func buildClient(baseURL string, token *auth.Token) (*gitlab.Client, error) {
50 gitlabClient, err := gitlab.NewClient(token.Value,
51 gitlab.WithBaseURL(baseURL),
52 )
53 if err != nil {
54 return nil, err
55 }
56
57 return gitlabClient, nil
58}

Callers 6

cacheAllClientMethod · 0.70
InitMethod · 0.70
createRepositoryFunction · 0.70
deleteRepositoryFunction · 0.70
validateProjectURLFunction · 0.70
getLoginFromTokenFunction · 0.70

Calls

no outgoing calls

Tested by 2

createRepositoryFunction · 0.56
deleteRepositoryFunction · 0.56