Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileSystem ¶
type FileSystem interface { TempDir(dir, prefix string) (string, error) MkdirAll(path string, perm os.FileMode) error Create(name string) (io.WriteCloser, error) RemoveAll(path string) error ReadDir(dirname string) ([]os.FileInfo, error) ReadFile(filename string) ([]byte, error) DirExists(path string) (bool, error) }
FileSystem defines methods for interacting with an underlying file system.
type Restorer ¶
type Restorer interface { // Restore restores the backup data from backupReader, returning warnings and errors. Restore(restore *api.Restore, backup *api.Backup, backupReader io.Reader, logFile io.Writer) (api.RestoreResult, api.RestoreResult) }
Restorer knows how to restore a backup.
func NewKubernetesRestorer ¶
func NewKubernetesRestorer( discoveryHelper discovery.Helper, dynamicFactory client.DynamicFactory, customRestorers map[string]restorers.ResourceRestorer, backupService cloudprovider.BackupService, resourcePriorities []string, backupClient arkv1client.BackupsGetter, namespaceClient corev1.NamespaceInterface, logger *logrus.Logger, ) (Restorer, error)
NewKubernetesRestorer creates a new kubernetesRestorer.
Click to show internal directories.
Click to hide internal directories.