pipeline

package
v0.1.0-beta.4 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2025 License: MIT Imports: 10 Imported by: ? 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 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

func (p *Pipeline) GetCacheStats() map[string]interface{}

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

Jump to

Keyboard shortcuts

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