reconciler

package
v15.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2022 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 logrus.FieldLogger, 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)

nolint: revive,stylecheck // This is unintentionally missing documentation.

func (*Reconciler) Describe

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

nolint: revive,stylecheck // This is unintentionally missing documentation.

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