1package gitlab
2
3import (
4 "github.com/MichaelMure/git-bug/bridge/core"
5 "github.com/xanzy/go-gitlab"
6)
7
8func init() {
9 core.Register(&Gitlab{})
10}
11
12type Gitlab struct{}
13
14func (*Gitlab) Target() string {
15 return target
16}
17
18func (*Gitlab) NewImporter() core.Importer {
19 return &gitlabImporter{}
20}
21
22func (*Gitlab) NewExporter() core.Exporter {
23 return &gitlabExporter{}
24}
25
26func buildClient(token string) *gitlab.Client {
27 return gitlab.NewClient(nil, token)
28}