github

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

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