retention

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ResultsRetentionPolicyAgent is the name of the logger for the retention policy agent cmd
	ResultsRetentionPolicyAgent = "results-retention-policy-agent"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	config.RetentionPolicy

	Logger *zap.SugaredLogger
	// contains filtered or unexported fields
}

Agent have all the information needed to run retention job

func NewAgent

func NewAgent(db *gorm.DB) (*Agent, error)

NewAgent returns the Retention Policy Agent

func (*Agent) AgentOnStore

func (a *Agent) AgentOnStore(logger *zap.SugaredLogger) func(name string,
	value interface{})

AgentOnStore returns a function that checks if agent are configured for a config.Store, and registers it if so

Jump to

Keyboard shortcuts

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