@@ -9,54 +9,63 @@ import (
9
9
"net/url"
10
10
)
11
11
12
- // NullNotifier implements a blank downloader
12
+ // NullDownloader implements a blank downloader
13
13
type NullDownloader struct {
14
14
}
15
15
16
16
var (
17
17
_ Downloader = & NullDownloader {}
18
18
)
19
19
20
- func (n NullDownloader ) SetContext (_ context.Context ) {
21
- return
22
- }
20
+ // SetContext set context
21
+ func (n NullDownloader ) SetContext (_ context.Context ) {}
23
22
23
+ // GetRepoInfo returns a repository information
24
24
func (n NullDownloader ) GetRepoInfo () (* Repository , error ) {
25
25
return nil , & ErrNotSupported {}
26
26
}
27
27
28
+ // GetTopics return gitlab topics
28
29
func (n NullDownloader ) GetTopics () ([]string , error ) {
29
30
return nil , & ErrNotSupported {}
30
31
}
31
32
33
+ // GetMilestones returns milestones
32
34
func (n NullDownloader ) GetMilestones () ([]* Milestone , error ) {
33
35
return nil , & ErrNotSupported {}
34
36
}
35
37
38
+ // GetReleases returns releases
36
39
func (n NullDownloader ) GetReleases () ([]* Release , error ) {
37
40
return nil , & ErrNotSupported {}
38
41
}
39
42
43
+ // GetLabels returns labels
40
44
func (n NullDownloader ) GetLabels () ([]* Label , error ) {
41
45
return nil , & ErrNotSupported {}
42
46
}
43
47
48
+ // GetIssues returns issues according start and limit
44
49
func (n NullDownloader ) GetIssues (page , perPage int ) ([]* Issue , bool , error ) {
45
50
return nil , false , & ErrNotSupported {}
46
51
}
47
52
53
+ // GetComments returns comments according issueNumber
48
54
func (n NullDownloader ) GetComments (issueNumber int64 ) ([]* Comment , error ) {
49
55
return nil , & ErrNotSupported {}
50
56
}
51
57
58
+ // GetPullRequests returns pull requests according page and perPage
52
59
func (n NullDownloader ) GetPullRequests (page , perPage int ) ([]* PullRequest , bool , error ) {
53
60
return nil , false , & ErrNotSupported {}
54
61
}
55
62
63
+ // GetReviews returns pull requests review
56
64
func (n NullDownloader ) GetReviews (pullRequestNumber int64 ) ([]* Review , error ) {
57
65
return nil , & ErrNotSupported {}
58
66
}
59
67
68
+ // FormatGitURL return func to add authentification into remote URLs
60
69
func (n NullDownloader ) FormatGitURL () func (opts MigrateOptions , remoteAddr string ) (string , error ) {
61
70
return func (opts MigrateOptions , remoteAddr string ) (string , error ) {
62
71
if len (opts .AuthToken ) > 0 || len (opts .AuthUsername ) > 0 {
0 commit comments