watcher

package
v2.7.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	LatestCommitTimestampFile = "/pgdata/latest_commit_timestamp.txt"
)

Variables

View Source
var (
	LatestTimestampFileNotFound        = errors.Errorf("%s not found in container", LatestCommitTimestampFile)
	PrimaryPodNotFound                 = errors.New("primary pod not found")
	LatestTimestampIsBeforeBackupStart = errors.New("latest commit timestamp is before backup start timestamp")
)

Functions

func GetLatestCommitTimestamp

func GetLatestCommitTimestamp(ctx context.Context, cli client.Client, execCli *clientcmd.Client, cr *pgv2.PerconaPGCluster, backup *pgv2.PerconaPGBackup) (*metav1.Time, error)

GetLatestCommitTimestamp gets the timestamp of the latest commit.

func WatchCommitTimestamps

func WatchCommitTimestamps(ctx context.Context, cli client.Client, eventChan chan event.GenericEvent, stopChan chan event.DeleteEvent, cr *pgv2.PerconaPGCluster)

Types

Jump to

Keyboard shortcuts

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