Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct { LastBackupDate prometheus.Gauge LastBackupStatus prometheus.Gauge OldestBackupDate prometheus.Gauge }
Metrics are used to fill the Prometheus endpoint TODO: Merge LastBackupDate and LastBackupStatus
type MountedVolume ¶
type MountedVolume struct { PodID string ContainerID string HostID string Volume *Volume Path string }
MountedVolume stores mounted volumes inside a container
type Volume ¶
type Volume struct { ID string Name string BackupDir string Mount string Mountpoint string Driver string Labels map[string]string ReadOnly bool HostBind string Hostname string Namespace string RepoName string SubPath string BackingUp bool LastBackupDate string LastBackupStatus string LastBackupStartDate string Logs map[string]string Metrics *Metrics `json:"-"` Mux sync.Mutex }
Volume provides backup methods for a single volume
func (*Volume) CleanupMetrics ¶
func (v *Volume) CleanupMetrics()
CleanupMetrics cleans up volume's metrics
func (*Volume) SetupMetrics ¶
func (v *Volume) SetupMetrics()
SetupMetrics initializes the volume's metrics
Click to show internal directories.
Click to hide internal directories.