Documentation
¶
Index ¶
Constants ¶
This section is empty.
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 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
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
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.