branches

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: 10 Imported by: 0

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) 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