Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMyDotfiles ¶
func GetMyDotfiles(tokenProvider githubAuthTokenProvider, ghProvider githubClientProvider) (repositories []github.Repository, err error)
GetMyDotfiles gets dotfile repos from my github
Types ¶
type GithubAuthTokenProvider ¶
type GithubAuthTokenProvider struct{}
GithubAuthTokenProvider providers a way to get the GH auth token
func (*GithubAuthTokenProvider) GetAuthToken ¶
func (provider *GithubAuthTokenProvider) GetAuthToken() (authToken string, err error)
GetAuthToken gets github auth token
type GithubClient ¶
type GithubClient struct {
Users githubUsersService
Search githubSearchService
}
GithubClient is this program's facade of github API client
type GithubClientProvider ¶
type GithubClientProvider struct{}
GithubClientProvider allows consumer to get a GithubClient
func (*GithubClientProvider) GetGithubClient ¶
func (provider *GithubClientProvider) GetGithubClient(accessToken string) (client GithubClient, err error)
GetGithubClient implements providing GithubClient
Click to show internal directories.
Click to hide internal directories.