staleness

package
v0.0.0-...-91256e5 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Querier

type Querier struct {
	Spec *QuerierSpec `yaml:"spec"`
	// contains filtered or unexported fields
}

Querier defines the query and set of checks.

func NewQuerier

func NewQuerier(spec *QuerierSpec) (Querier, error)

NewQuerier returns a new configured Querier.

func (*Querier) AddtoRunner

func (querier *Querier) AddtoRunner(runner *internal.Runner)

AddtoRunner configures a runner with the Querier for this check.

func (Querier) Start

func (q Querier) Start(cfg *internal.QuerierConfig)

Start runs the Querier.

type QuerierSpec

type QuerierSpec struct {
	BackupNamespace string        `yaml:"backup_namespace"`
	MaxAge          time.Duration `yaml:"max_age"`
}

QuerierSpec defines the Specification for a Querier.

Jump to

Keyboard shortcuts

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