Documentation ¶
Index ¶
- type GitHubClient
- func (c GitHubClient) GetRepository(ctx context.Context, repoName string) (*github.Repository, error)
- func (c GitHubClient) GetRepositoryContents(ctx context.Context, path string, repository *github.Repository) ([]string, error)
- func (c GitHubClient) ListRepositories(ctx context.Context, org string) ([]*github.Repository, error)
- func (c GitHubClient) ListRepositories2(ctx context.Context, org string) ([]*github.Repository, error)
- type GitHubService
- type Options
- type Repository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitHubClient ¶
func (GitHubClient) GetRepository ¶
func (c GitHubClient) GetRepository(ctx context.Context, repoName string) (*github.Repository, error)
func (GitHubClient) GetRepositoryContents ¶
func (c GitHubClient) GetRepositoryContents(ctx context.Context, path string, repository *github.Repository) ([]string, error)
func (GitHubClient) ListRepositories ¶
func (c GitHubClient) ListRepositories(ctx context.Context, org string) ([]*github.Repository, error)
func (GitHubClient) ListRepositories2 ¶
func (c GitHubClient) ListRepositories2(ctx context.Context, org string) ([]*github.Repository, error)
type GitHubService ¶
type GitHubService interface { GetRepository(ctx context.Context, name string) (*github.Repository, error) ListRepositories(ctx context.Context, org string) ([]*github.Repository, error) ListRepositories2(ctx context.Context, org string) ([]*github.Repository, error) GetRepositoryContents(ctx context.Context, filepath string, repository *github.Repository) ([]string, error) }
func NewGitHubClient ¶
func NewGitHubClient(opts ...Options) GitHubService
type Repository ¶
Click to show internal directories.
Click to hide internal directories.