Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRepositories ¶
func GetRepositories( ctx context.Context, cfg *viper.Viper, rm hub.RepositoryManager, ) ([]*hub.Repository, error)
GetRepositories gets the repositories the tracker will process based on the configuration provided:
- If a list of repositories names, those will be the repositories returned provided they are found.
- If a list of repositories kinds is provided, all repositories of those kinds will be returned.
- Otherwise, all the repositories will be returned.
NOTE: disabled repositories will be filtered out.
func SetupSource ¶ added in v0.14.0
func SetupSource(i *hub.TrackerSourceInput) hub.TrackerSource
SetupSource returns the tracker source that should be used for the repository provided.
Types ¶
type Tracker ¶ added in v0.4.0
type Tracker struct {
// contains filtered or unexported fields
}
Tracker is in charge of tracking the packages available in the repository provided, registering and unregistering them as needed.
func New ¶ added in v0.4.0
func New(svc *hub.TrackerServices, r *hub.Repository, logger zerolog.Logger) *Tracker
New creates a new Tracker instance.
Click to show internal directories.
Click to hide internal directories.