clean

package
v0.0.0-...-d125d34 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Batch int `yaml:"batch"`
	// TimeToRun is a cron expression with seconds precision
	TimeToRun string `yaml:"timeToRun"`

	WebhookLogCleanRules []WebhookLogCleanRule `yaml:"webhookLogCleanRules"`
	EventCleanRules      []EventCleanRule      `yaml:"eventCleanRules"`
}

type EventCleanRule

type EventCleanRule struct {
	EventType string        `yaml:"eventType"`
	TTL       time.Duration `yaml:"ttl"`

	// APIVersion only take effect when EventType is "clusters_kubernetes_event"
	APIVersion string `yaml:"apiVersion"`
	// Kind only take effect when EventType is "clusters_kubernetes_event"
	Kind string `yaml:"kind"`
	// Name only take effect when EventType is "clusters_kubernetes_event"
	Name string `yaml:"name"`
	// Namespace only take effect when EventType is "clusters_kubernetes_event"
	Namespace string `yaml:"namespace"`
	// Reason only take effect when EventType is "clusters_kubernetes_event"
	Reason string `yaml:"reason"`
}

type WebhookLogCleanRule

type WebhookLogCleanRule struct {
	RelatedEventType string        `yaml:"relatedEventType"`
	TTL              time.Duration `yaml:"ttl"`
}

Jump to

Keyboard shortcuts

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