Documentation ¶
Index ¶
- func SupportedClients() []string
- type Bitbucket
- type Client
- type Gitea
- type Github
- type Gitlab
- func (c Gitlab) GetGroupRepos(targetGroup string) ([]Repo, error)
- func (c Gitlab) GetOrgRepos(targetOrg string) ([]Repo, error)
- func (c Gitlab) GetTopLevelGroups() ([]string, error)
- func (_ Gitlab) GetType() string
- func (c Gitlab) GetUserRepos(targetUsername string) ([]Repo, error)
- func (_ Gitlab) NewClient() (Client, error)
- type Repo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SupportedClients ¶
func SupportedClients() []string
SupportedClients return list of all supported clients
Types ¶
type Bitbucket ¶
type Bitbucket struct {
// extend the bitbucket client
*bitbucket.Client
}
func (Bitbucket) GetOrgRepos ¶
GetOrgRepos gets org repos
func (Bitbucket) GetUserRepos ¶
GetUserRepos gets user repos from bitbucket
type Client ¶
type Client interface { NewClient() (Client, error) GetUserRepos(targetUsername string) ([]Repo, error) GetOrgRepos(targetOrg string) ([]Repo, error) GetType() string }
Client define the interface a scm client has to have
type Gitea ¶
type Gitea struct { // extend the gitea client *gitea.Client // contains filtered or unexported fields }
func (Gitea) GetOrgRepos ¶
GetOrgRepos fetches repo data from a specific group
func (Gitea) GetUserRepos ¶
GetUserRepos gets all of a users gitlab repos
type Github ¶
type Github struct { // extend the github client *github.Client // contains filtered or unexported fields }
func (Github) GetOrgRepos ¶
GetOrgRepos gets org repos
func (Github) GetUserRepos ¶
GetUserRepos gets user repos
type Gitlab ¶
func (Gitlab) GetGroupRepos ¶ added in v1.7.1
GetGroupRepos fetches repo data from a specific group
func (Gitlab) GetOrgRepos ¶
GetOrgRepos fetches repo data from a specific group
func (Gitlab) GetTopLevelGroups ¶ added in v1.7.1
GetTopLevelGroups all top level org groups
func (Gitlab) GetUserRepos ¶
GetUserRepos gets all of a users gitlab repos
Click to show internal directories.
Click to hide internal directories.