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

Function newOAuthClient

cmd/gitlab_client.go:32–38  ·  view source on GitHub ↗
(oAuthToken, apihttpURL string)

Source from the content-addressed store, hash-verified

30}
31
32func newOAuthClient(oAuthToken, apihttpURL string) (*gitlab.Client, error) {
33 gitlabClient := gitlab.NewOAuthClient(nil, oAuthToken)
34 if err := gitlabClient.SetBaseURL(apihttpURL); err != nil {
35 return nil, err
36 }
37 return gitlabClient, nil
38}
39
40func newGitlabClient() (*gitlab.Client, error) {
41 switch {

Callers 1

newGitlabClientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected