freshness

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const ValidatorName = "built-in:freshness"

Variables

This section is empty.

Functions

func NewFreshnessValidator

func NewFreshnessValidator(ctx context.Context, freshnessThresholdInHours int32) (common.Validator, error)

Types

type FreshnessValidator

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

func (*FreshnessValidator) GetName

func (v *FreshnessValidator) GetName() string

func (*FreshnessValidator) Validate

func (v *FreshnessValidator) Validate(resources []unstructured.Unstructured) (violations []common.Violation, err error)

*

Jump to

Keyboard shortcuts

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