Help us shape the future of Go! Take the 2026 Go Developer Survey

retention

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package retention provides data retention policy management.

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