Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GithubAuthTokenEnvVar = "GITHUB_TOKEN"
GithubAuthTokenEnvVar https://cli.github.com/manual/gh_help_environment default environment variables: GH_TOKEN, GITHUB_TOKEN
Functions ¶
func GetMyDotfiles ¶
func GetMyDotfiles() (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
type IGithubClientProvider ¶ added in v0.0.9
type IGithubClientProvider interface {
GetGithubClient(accessToken string) (client GithubClient, err error)
}
type IGithubTokenProvider ¶ added in v0.0.9
Click to show internal directories.
Click to hide internal directories.