Documentation
¶
Index ¶
Constants ¶
View Source
const (
TagFork = "[fork]"
)
View Source
const (
TagGitlab = "[gitlab]"
)
View Source
const (
TagSync = "[sync]"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fork ¶ added in v1.4.0
type Fork struct {
Api RepoFork
ForkConfigs []*ForkConfig
TaskRunner dd.TaskRunner
Logger dd.LevelLogger
}
Fork
type ForkConfig ¶
type GitlabApi ¶ added in v1.4.3
type GitlabApi interface {
// Api - Returen the |gitlab| api instance for gitlab api access
Api() *gitlabapi.Client
// Logger - Return the current logger for logging
Logger() dd.LevelLogger
}
func NewGitlabApi ¶ added in v1.4.3
func NewGitlabApi(token, host *string, logger dd.LevelLogger) (GitlabApi, error)
type GitlabConfig ¶ added in v1.4.2
type GitlabConfig struct {
Host *string
Token *string
FilterArchived bool
Logger dd.LevelLogger
}
type RepoFork ¶ added in v1.4.0
type RepoFork interface {
RepoList
Fork(r *Repo, group *string) (*Repo, error)
Rename(r *Repo, name *string) (*Repo, error)
Transfer(r *Repo, group *string) (*Repo, error)
DeleteForkRelationship(r *Repo) (bool, error)
}
RepoFork - represent a set of fork operations to fork any repositories
func NewGitlabFork ¶ added in v1.4.2
func NewGitlabFork(config *GitlabConfig) (RepoFork, error)
NewGitlabFork Helper function to create |RepoFork| gitlab implement
type RepoList ¶ added in v1.4.0
type RepoList interface {
Projects() []*Repo
// ProjectsByGroup - List project by group name prefix match
ProjectsByGroup(group *string) ([]*Repo, error)
// Project - Filter target project by specific group and name
Project(group, name *string) (*Repo, error)
}
RepoList - represent a set of list operations of all repositories
func NewGitlabList ¶ added in v1.4.2
func NewGitlabList(config *GitlabConfig) (RepoList, error)
NewGitlabList Helper function to create |RepoList| gitlab implement
type Sync ¶ added in v1.4.0
type Sync struct {
Api RepoList
SyncConfig *SyncConfig
Cwd *string
TaskRunner dd.TaskRunner
Logger dd.LevelLogger
}
Sync
type SyncConfig ¶
Click to show internal directories.
Click to hide internal directories.