Documentation
¶
Index ¶
- Constants
- func OnSnapshotGroupDelete(sg *snapshotgroup.SnapshotGroup) error
- func ParseInterval(str string) (time.Duration, error)
- func ReconcileBackupsForSnapshotGroup(sg *snapshotgroup.SnapshotGroup) error
- func RestoreSnapshotGroup(sg *snapshotgroup.SnapshotGroup, waitForRestoreSeconds int) error
- type GeminiSnapshot
Constants ¶
const GroupNameAnnotation = "gemini.fairwinds.com/group"
GroupNameAnnotation contains the name of the SnapshotGroup associated with this VolumeSnapshot
const IntervalsAnnotation = "gemini.fairwinds.com/intervals"
IntervalsAnnotation contains the intervals that the VolumeSnapshot represents
const RestoreAnnotation = "gemini.fairwinds.com/restore"
RestoreAnnotation contains the restore point of the SnapshotGroup
const TimestampAnnotation = "gemini.fairwinds.com/timestamp"
TimestampAnnotation contains the timestamp of the VolumeSnapshot
Variables ¶
This section is empty.
Functions ¶
func OnSnapshotGroupDelete ¶
func OnSnapshotGroupDelete(sg *snapshotgroup.SnapshotGroup) error
OnSnapshotGroupDelete is called when a SnapshotGroup is removed
func ParseInterval ¶
ParseInterval parses an interval string as defined by gemini
func ReconcileBackupsForSnapshotGroup ¶
func ReconcileBackupsForSnapshotGroup(sg *snapshotgroup.SnapshotGroup) error
ReconcileBackupsForSnapshotGroup handles any changes to SnapshotGroups
func RestoreSnapshotGroup ¶
func RestoreSnapshotGroup(sg *snapshotgroup.SnapshotGroup, waitForRestoreSeconds int) error
RestoreSnapshotGroup restores the PV to a particular snapshot
Types ¶
type GeminiSnapshot ¶
type GeminiSnapshot struct { Namespace string Name string Intervals []string Timestamp time.Time Restore string VolumeSnapshot *snapshotsv1.VolumeSnapshot }
GeminiSnapshot represents a VolumeSnapshot created by Gemini
func GetSnapshot ¶
func GetSnapshot(namespace, name string) (*GeminiSnapshot, error)
GetSnapshot returns a VolumeSnapshot
func ListSnapshots ¶
func ListSnapshots(sg *snapshotgroup.SnapshotGroup) ([]*GeminiSnapshot, error)
ListSnapshots returns all snapshots associated with a particular SnapshotGroup