github.com/projecteru2/core@v0.0.0-20240321043226-06bcc1c23f58/source/gitlab/cesium.go (about) 1 package gitlab 2 3 import ( 4 "github.com/projecteru2/core/source/common" 5 "github.com/projecteru2/core/types" 6 ) 7 8 // New new a gitlab obj 9 func New(config types.Config) (*common.GitScm, error) { 10 gitConfig := config.Git 11 authHeaders := map[string]string{"PRIVATE-TOKEN": gitConfig.Token} 12 return common.NewGitScm(gitConfig, authHeaders) 13 }