MCPcopy Index your code
hub / github.com/devopsctl/gitlabctl / newClient

Function newClient

cmd/gitlab_client.go:24–30  ·  view source on GitHub ↗
(privateToken, apihttpURL string)

Source from the content-addressed store, hash-verified

22}
23
24func newClient(privateToken, apihttpURL string) (*gitlab.Client, error) {
25 gitlabClient := gitlab.NewClient(nil, privateToken)
26 if err := gitlabClient.SetBaseURL(apihttpURL); err != nil {
27 return nil, err
28 }
29 return gitlabClient, nil
30}
31
32func newOAuthClient(oAuthToken, apihttpURL string) (*gitlab.Client, error) {
33 gitlabClient := gitlab.NewOAuthClient(nil, oAuthToken)

Callers 1

newGitlabClientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected