restore

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager handles the restore operations.

func NewManager

func NewManager(k8sClient *kubernetes.Client, logger logger.LoggerInterface) *Manager

NewManager creates a new restore Manager.

func (*Manager) PerformRestore

func (m *Manager) PerformRestore(restoreDir string, dryRun bool) error

PerformRestore performs the restore operation by reading resource files from the specified directory and applying them to the Kubernetes cluster. If dryRun is true, no changes will be made.

func (*Manager) RestoreResource

func (m *Manager) RestoreResource(filename string, dryRun bool) error

RestoreResource restores a single resource from the specified file. If dryRun is true, no changes will be made.

Jump to

Keyboard shortcuts

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