{"modulePath":"github.com/cloudnative-pg/plugin-pvc-backup","version":"v0.0.0-20240215115252-5245d4281c03","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package executor\n\nPackage executor contains the logic of taking a backup\n\n## Types\n\n```go\ntype Executor struct {\n\t// contains filtered or unexported fields\n}\n```\nExecutor manages the execution of a backup\n\n```go\nfunc NewLocalExecutor(cluster *apiv1.Cluster, backup *apiv1.Backup, repo *Repository) *Executor\n```\nNewLocalExecutor creates a new backup Executor\n\n```go\nfunc (executor *Executor) GetBeginWal() string\n```\nGetBeginWal returns the beginWal value, panics if the executor was not executed\n\n```go\nfunc (executor *Executor) GetEndWal() string\n```\nGetEndWal returns the endWal value, panics if the executor was not executed\n\n```go\nfunc (executor *Executor) TakeBackup(ctx context.Context) (*webserver.BackupResultData, error)\n```\nTakeBackup executes a backup. Returns the result and any error encountered\n\n```go\ntype Repository struct {\n\t// contains filtered or unexported fields\n}\n```\nRepository represents a backup repository where base directories are stored\n\n```go\nfunc NewRepository(ctx context.Context, path string, configFile string, cacheDirectory string) (*Repository, error)\n```\nNewRepository creates a new repository in a certain path, ensuring that the repository is initialized and ready to accept backups\n\n","path":"github.com/cloudnative-pg/plugin-pvc-backup/internal/backup/executor","name":"executor","synopsis":"Package executor contains the logic of taking a backup","isRedistributable":true}
