backup

package
v0.0.0-...-540bb61 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2023 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// StateChange name of the event send when state changed
	StateChange = "StateChange"

	// FinalizerChange name of the event send when finalizer removed entry
	FinalizerChange = "FinalizerChange"
)

Variables

This section is empty.

Functions

func RegisterInformer

func RegisterInformer(operator operator.Operator, recorder event.Recorder, client arangoClientSet.Interface, kubeClient kubernetes.Interface, informer arangoInformer.SharedInformerFactory) error

RegisterInformer into operator

Types

type ArangoBackupClient

type ArangoBackupClient interface {
	Create() (ArangoBackupCreateResponse, error)
	Get(driver.BackupID) (driver.BackupMeta, error)

	Upload(driver.BackupID) (driver.BackupTransferJobID, error)
	Download(driver.BackupID) (driver.BackupTransferJobID, error)

	Progress(driver.BackupTransferJobID) (ArangoBackupProgress, error)
	Abort(driver.BackupTransferJobID) error

	Exists(driver.BackupID) (bool, error)
	Delete(driver.BackupID) error

	List() (map[driver.BackupID]driver.BackupMeta, error)
}

ArangoBackupClient interface with backup functionality for database

type ArangoBackupCreateResponse

type ArangoBackupCreateResponse struct {
	driver.BackupMeta
	PotentiallyInconsistent bool
}

ArangoBackupCreateResponse create response

type ArangoBackupProgress

type ArangoBackupProgress struct {
	Progress          int
	Failed, Completed bool
	FailMessage       string
}

ArangoBackupProgress progress info

type ArangoClientFactory

type ArangoClientFactory func(deployment *database.ArangoDeployment, backup *backupApi.ArangoBackup) (ArangoBackupClient, error)

ArangoClientFactory factory type for creating clients

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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