externalapi

package
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

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

type IGithubTokenProvider interface {
	GetAuthToken() (string, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL