reconciler

package
v16.10.4 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reconciler

type Reconciler struct {
	// contains filtered or unexported fields
}

Reconciler implements reconciliation logic for repairing outdated repository replicas.

func NewReconciler

func NewReconciler(log log.Logger, db glsql.Querier, hc praefect.HealthChecker, storages map[string][]string, buckets []float64) *Reconciler

NewReconciler returns a new Reconciler for repairing outdated repositories.

func (*Reconciler) Collect

func (r *Reconciler) Collect(ch chan<- prometheus.Metric)

func (*Reconciler) Describe

func (r *Reconciler) Describe(ch chan<- *prometheus.Desc)

func (*Reconciler) Run

func (r *Reconciler) Run(ctx context.Context, ticker helper.Ticker) error

Run reconciles on each tick the Ticker emits. Run returns when the context is canceled, returning the error from the context.

Jump to

Keyboard shortcuts

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