Documentation
¶
Index ¶
Constants ¶
View Source
const ( NotFoundBackup BackupState = iota PreparingBackup ProvisingBackup ValidatingBackup FinishBackup DefaultNamespaceToLocateBackupJob = "default" DefaultRsyncImageForBackup = "alpinelinux/rsyncd" DefaultHeaderOfBackupHook = "#!/bin/sh" DefaultMountPointOfBackupScript = "/data/exec" DefaultCommandToBackupVolumes = "" DefaultPreHookForBackup = "" DefaultPostHookForaBackup = "" )
Variables ¶
View Source
var (
DefaultExecuterToProvisionBackup = []string{"/bin/sh", "-c", "/data/exec"}
)
Functions ¶
This section is empty.
Types ¶
type Backup ¶
func NewBackup ¶
func NewBackup( client kubernetes.Kubernetes, ) Backup
func NewCustomBackup ¶
func NewCustomBackup( client kubernetes.Kubernetes, hook kubernetes.Hook, ) Backup
type BackupFullSetup ¶
type BackupFullSetup interface { Backup GetStatus() (map[string]BackupState, error) SetStatus(uuid string, status BackupState) error SetClient(client kubernetes.Kubernetes) SetNamespace(namespace string) SetVolumes(volumes []corev1.PersistentVolumeClaim) SetCommand(command string) SetService(service string) }
type BackupModel ¶
type BackupState ¶
type BackupState int
type Elasticsearch ¶
type Elasticsearch interface { }
type Maintenance ¶
type Pg ¶
type Pg interface { Monitor Backup Maintenance }
func GetPgFromPodList ¶
func GetPgFromPodList( client kubernetes.Kubernetes, podList ...*corev1.PodList, ) ([]Pg, error)
func NewPg ¶
func NewPg(client kubernetes.Kubernetes, pod corev1.Pod) (Pg, error)
type VersionModel ¶
Click to show internal directories.
Click to hide internal directories.