Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTracker ¶
func NewTracker( svc *tracker.Services, r *hub.Repository, opts ...func(t tracker.Tracker), ) tracker.Tracker
NewTracker creates a new Tracker instance.
func WithIndexLoader ¶
func WithIndexLoader(il hub.HelmIndexLoader) func(t tracker.Tracker)
WithIndexLoader allows providing a specific Helm repository index loader for a Tracker instance.
func WithNumWorkers ¶
WithNumWorkers allows providing a specific number of workers for a Tracker instance.
Types ¶
type Job ¶
type Job struct { Kind JobKind ChartVersion *helmrepo.ChartVersion StoreLogo bool }
Job represents a job for registering or unregistering a Helm package version available in the provided Helm repository. Jobs are created by the dispatcher and will eventually be handled by a worker.
type JobKind ¶
type JobKind int
JobKind represents the kind of a job, which can be register or unregister.
type Tracker ¶
type Tracker struct {
// contains filtered or unexported fields
}
Tracker is in charge of tracking the packages available in a Helm repository, registering and unregistering them as needed.
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
Worker is in charge of handling Helm packages register and unregister jobs generated by the tracker.