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
func (Github) SetTokensUsername ¶ added in v1.9.4
func (c Github) SetTokensUsername()
Sets the GitHub username tied to the github token to the package variable tokenUsername Then if https clone method is used the clone url will be https://username:token@github.com/org/repo.git The username is now needed when using the new fine-grained tokens for github
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