pgbackrest

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoValidBackups = errors.New("no valid backups")

Functions

func SetAnnotationsToBackup

func SetAnnotationsToBackup(ctx context.Context, pod *corev1.Pod, stanza string, backupSet string, repoName string, annotations map[string]string) error

Types

type InfoBackup

type InfoBackup struct {
	Annotation map[string]string `json:"annotation,omitempty"`
	Label      string            `json:"label,omitempty"`
	Type       v2.PGBackupType   `json:"type,omitempty"`
	Timestamp  struct {
		Start int64 `json:"start,omitempty"`
		Stop  int64 `json:"stop,omitempty"`
	} `json:"timestamp,omitempty"`
}

type InfoOutput

type InfoOutput []InfoStanza

func GetInfo

func GetInfo(ctx context.Context, pod *corev1.Pod, repoName string) (InfoOutput, error)

type InfoStanza

type InfoStanza struct {
	Name   string       `json:"name,omitempty"`
	Backup []InfoBackup `json:"backup,omitempty"`
	Status struct {
		Message string  `json:"message,omitempty"`
		Code    float64 `json:"code,omitempty"`
		Lock    struct {
			Backup struct {
				Held bool `json:"held,omitempty"`
			} `json:"backup,omitempty"`
		} `json:"lock,omitempty"`
	} `json:"status,omitempty"`
}

Jump to

Keyboard shortcuts

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