Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnrichedComponent ¶
type EnrichedComponent struct {
providers.RegistryComponent
PackageData *providers.PackageMetadata
}
EnrichedComponent represents a component enriched with package manager data
type Pipeline ¶
type Pipeline struct {
// contains filtered or unexported fields
}
Pipeline represents the knowledge base update pipeline
func NewPipeline ¶
func NewPipeline(providerFactory providers.ProviderFactory, logger logger.Logger, githubToken string, storageClient *storage.Storage) *Pipeline
NewPipeline creates a new pipeline with a custom logger and GitHub token
func (*Pipeline) GetCacheStats ¶
GetCacheStats returns statistics about the repository releases cache
func (*Pipeline) UpdateKnowledgeBase ¶
func (p *Pipeline) UpdateKnowledgeBase(languages []types.ComponentLanguage) error
UpdateKnowledgeBase updates the knowledge base with fresh data for the specified language(s)
type RepositoryReleasesCache ¶
type RepositoryReleasesCache struct {
// contains filtered or unexported fields
}
RepositoryReleasesCache caches GitHub releases for repositories to avoid duplicate API calls
func NewRepositoryReleasesCache ¶
func NewRepositoryReleasesCache() *RepositoryReleasesCache
NewRepositoryReleasesCache creates a new repository releases cache
func (*RepositoryReleasesCache) Get ¶
func (c *RepositoryReleasesCache) Get(repositoryURL string) ([]providers.GitHubRelease, bool)
Get retrieves cached releases for a repository
func (*RepositoryReleasesCache) Set ¶
func (c *RepositoryReleasesCache) Set(repositoryURL string, releases []providers.GitHubRelease)
Set stores releases for a repository in the cache
Click to show internal directories.
Click to hide internal directories.