snapshots

package
v0.0.0-...-efe54fd Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const GroupNameAnnotation = "gemini.fairwinds.com/group"

GroupNameAnnotation contains the name of the SnapshotGroup associated with this VolumeSnapshot

View Source
const IntervalsAnnotation = "gemini.fairwinds.com/intervals"

IntervalsAnnotation contains the intervals that the VolumeSnapshot represents

View Source
const RestoreAnnotation = "gemini.fairwinds.com/restore"

RestoreAnnotation contains the restore point of the SnapshotGroup

View Source
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

func ParseInterval(str string) (time.Duration, error)

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

Jump to

Keyboard shortcuts

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