Documentation
¶
Index ¶
- type GitHubProvider
- func (g *GitHubProvider) GetRepository(ctx context.Context, owner, repo string, settings krci.GitServerSettings) (*models.Repository, error)
- func (g *GitHubProvider) ListBranches(ctx context.Context, owner, repo string, settings krci.GitServerSettings, ...) ([]models.Branch, error)
- func (g *GitHubProvider) ListRepositories(ctx context.Context, owner string, settings krci.GitServerSettings, ...) ([]models.Repository, error)
- func (g *GitHubProvider) ListUserOrganizations(ctx context.Context, settings krci.GitServerSettings) ([]models.Organization, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitHubProvider ¶
type GitHubProvider struct{}
func NewGitHubProvider ¶
func NewGitHubProvider() *GitHubProvider
func (*GitHubProvider) GetRepository ¶
func (g *GitHubProvider) GetRepository( ctx context.Context, owner, repo string, settings krci.GitServerSettings, ) (*models.Repository, error)
func (*GitHubProvider) ListBranches ¶
func (g *GitHubProvider) ListBranches( ctx context.Context, owner, repo string, settings krci.GitServerSettings, _ models.ListOptions, ) ([]models.Branch, error)
ListBranches implements BranchesProvider for GitHubService. Returns all branches for the given repository. Pagination fields in the response reflect the full result.
func (*GitHubProvider) ListRepositories ¶
func (g *GitHubProvider) ListRepositories( ctx context.Context, owner string, settings krci.GitServerSettings, listOptions models.ListOptions, ) ([]models.Repository, error)
func (*GitHubProvider) ListUserOrganizations ¶
func (g *GitHubProvider) ListUserOrganizations( ctx context.Context, settings krci.GitServerSettings, ) ([]models.Organization, error)
ListUserOrganizations returns organizations for the authenticated user. Also it adds the current user as an organization.
Click to show internal directories.
Click to hide internal directories.