branches

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: Apache-2.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BranchesProvider

type BranchesProvider interface {
	ListBranches(
		ctx context.Context,
		owner, repo string,
		settings krci.GitServerSettings,
		opts models.ListOptions,
	) ([]models.Branch, error)
}

type BranchesService

type BranchesService struct {
	// contains filtered or unexported fields
}

func NewBranchesService

func NewBranchesService(
	branchesProvider *MultiProviderBranchesService,
	gitServerService *krci.GitServerService,
) *BranchesService

func (*BranchesService) GetProvider

GetProvider returns the underlying multi-provider service for direct access to its cache.

func (*BranchesService) ListBranches

func (s *BranchesService) ListBranches(
	ctx context.Context,
	gitServerName, owner, repoName string,
	opts models.ListOptions,
) ([]models.Branch, error)

type MultiProviderBranchesService

type MultiProviderBranchesService struct {
	// contains filtered or unexported fields
}

func NewMultiProviderBranchesService

func NewMultiProviderBranchesService() *MultiProviderBranchesService

func (*MultiProviderBranchesService) CheckListBranches added in v0.8.0

func (m *MultiProviderBranchesService) CheckListBranches(gitProvider string) error

CheckListBranches reports whether the provider implements listBranches.

func (*MultiProviderBranchesService) GetCache

GetCache returns the branch cache instance for cache management.

func (*MultiProviderBranchesService) ListBranches

func (m *MultiProviderBranchesService) ListBranches(
	ctx context.Context,
	owner, repo string,
	settings krci.GitServerSettings,
	opts models.ListOptions,
) ([]models.Branch, error)

Jump to

Keyboard shortcuts

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