backupcmd

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Command []string
	Args    []string
}

type CommandOpts

type CommandOpts struct {
	BackupPhysical bool
	BackupFile     string
	BasePath       string
	UserEnv        string
	PasswordEnv    string
}

type Commander

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

func New

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

type Option

type Option func(*CommandOpts)

func WithBackupPhysical

func WithBackupPhysical(p bool) Option

func WithBasePath

func WithBasePath(p 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