Documentation ¶
Overview ¶
Package client implements the access to the github API package via interface and own wrapper client
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Repositories RepoService Issues IssuesService PullRequests PullRequestsService }
Client wraps the github.Client with interfaces we are using
type IssuesService ¶
type IssuesService interface { ListByRepo( ctx context.Context, owner string, repo string, opt *github.IssueListByRepoOptions) ([]*github.Issue, *github.Response, error) }
IssuesService describes the methods we use from github.IssuesService
type PullRequestsService ¶
type PullRequestsService interface { List( ctx context.Context, owner string, repo string, opt *github.PullRequestListOptions) ([]*github.PullRequest, *github.Response, error) }
PullRequestsService describes the methods we use from github.PullRequestsService
type RepoService ¶
type RepoService interface { ListTags( ctx context.Context, owner, repo string, opt *github.ListOptions) ([]*github.RepositoryTag, *github.Response, error) GetCommit( ctx context.Context, owner, repo, sha string) (*github.RepositoryCommit, *github.Response, error) GetReleaseByTag( ctx context.Context, owner, repo, tag string) (*github.RepositoryRelease, *github.Response, error) Get( ctx context.Context, owner, repo string) (*github.Repository, *github.Response, error) }
RepoService describes the methods we use from github.RepositoriesService
Click to show internal directories.
Click to hide internal directories.