Documentation
¶
Index ¶
- func ConnectionFlags(co *CommandOpts, mariadb *mariadbv1alpha1.MariaDB) string
- type BackupCommand
- func (b *BackupCommand) MariadbDump(backup *mariadbv1alpha1.Backup, mariadb *mariadbv1alpha1.MariaDB) *Command
- func (b *BackupCommand) MariadbOperatorBackup() *Command
- func (b *BackupCommand) MariadbOperatorRestore() *Command
- func (b *BackupCommand) MariadbRestore(mariadb *mariadbv1alpha1.MariaDB) *Command
- type BackupOpt
- func WithBackup(path string, targetFilePath string) BackupOpt
- func WithBackupDatabase(d string) BackupOpt
- func WithBackupDumpOpts(opts []string) BackupOpt
- func WithBackupLogLevel(l string) BackupOpt
- func WithBackupMaxRetention(d time.Duration) BackupOpt
- func WithBackupPasswordEnv(p string) BackupOpt
- func WithBackupTargetTime(t time.Time) BackupOpt
- func WithBackupUserEnv(u string) BackupOpt
- func WithS3(bucket, endpoint, region string) BackupOpt
- func WithS3TLS(caCertPath string) BackupOpt
- type BackupOpts
- type Command
- type CommandOpts
- type SqlCommand
- type SqlOpt
- type SqlOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectionFlags ¶
func ConnectionFlags(co *CommandOpts, mariadb *mariadbv1alpha1.MariaDB) string
Types ¶
type BackupCommand ¶ added in v0.0.24
type BackupCommand struct {
*BackupOpts
}
func NewBackupCommand ¶ added in v0.0.24
func NewBackupCommand(userOpts ...BackupOpt) (*BackupCommand, error)
func (*BackupCommand) MariadbDump ¶ added in v0.0.24
func (b *BackupCommand) MariadbDump(backup *mariadbv1alpha1.Backup, mariadb *mariadbv1alpha1.MariaDB) *Command
func (*BackupCommand) MariadbOperatorBackup ¶ added in v0.0.24
func (b *BackupCommand) MariadbOperatorBackup() *Command
func (*BackupCommand) MariadbOperatorRestore ¶ added in v0.0.24
func (b *BackupCommand) MariadbOperatorRestore() *Command
func (*BackupCommand) MariadbRestore ¶ added in v0.0.24
func (b *BackupCommand) MariadbRestore(mariadb *mariadbv1alpha1.MariaDB) *Command
type BackupOpt ¶ added in v0.0.24
type BackupOpt func(*BackupOpts)
func WithBackup ¶ added in v0.0.24
func WithBackupDatabase ¶ added in v0.0.24
func WithBackupDumpOpts ¶ added in v0.0.24
func WithBackupLogLevel ¶ added in v0.0.24
func WithBackupMaxRetention ¶ added in v0.0.24
func WithBackupPasswordEnv ¶ added in v0.0.24
func WithBackupTargetTime ¶ added in v0.0.24
func WithBackupUserEnv ¶ added in v0.0.24
type BackupOpts ¶ added in v0.0.24
type CommandOpts ¶
type SqlCommand ¶ added in v0.0.24
type SqlCommand struct {
*SqlOpts
}
func NewSqlCommand ¶ added in v0.0.24
func NewSqlCommand(userOpts ...SqlOpt) (*SqlCommand, error)
func (*SqlCommand) ExecCommand ¶ added in v0.0.24
func (s *SqlCommand) ExecCommand(mariadb *mariadbv1alpha1.MariaDB) *Command
type SqlOpt ¶ added in v0.0.24
type SqlOpt func(*SqlOpts)
func WithSqlDatabase ¶ added in v0.0.24
func WithSqlFile ¶ added in v0.0.24
func WithSqlPasswordEnv ¶ added in v0.0.24
func WithSqlUserEnv ¶ added in v0.0.24
type SqlOpts ¶ added in v0.0.24
type SqlOpts struct { CommandOpts SqlFile string }
Click to show internal directories.
Click to hide internal directories.