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 ¶
func (s *BranchesService) GetProvider() *MultiProviderBranchesService
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 ¶
func (m *MultiProviderBranchesService) GetCache() *sturdyc.Client[[]models.Branch]
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)
Click to show internal directories.
Click to hide internal directories.