backup

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupOpts

type BackupOpts struct {
	command.CommandOpts
	BackupFile string
	BasePath   string
	DumpOpts   []string
}

type Commander

type Commander interface {
	BackupCommand(backup *mariadbv1alpha1.Backup, mariadb *mariadbv1alpha1.MariaDB) *command.Command
	RestoreCommand(mariadb *mariadbv1alpha1.MariaDB) *command.Command
}

func New

func New(userOpts ...Option) (Commander, error)

type Option

type Option func(*BackupOpts)

func WithBasePath

func WithBasePath(p string) Option

func WithDumpOpts added in v0.0.18

func WithDumpOpts(opts []string) Option

func WithFile

func WithFile(f string) Option

func WithPasswordEnv

func WithPasswordEnv(p string) Option

func WithUserEnv

func WithUserEnv(u string) Option

Jump to

Keyboard shortcuts

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