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(restore *mariadbv1alpha1.Restore, mariadb *mariadbv1alpha1.MariaDB) *Command
- type BackupOpt
- func WithBackup(path string, targetFilePath string) BackupOpt
- func WithBackupCompression(c mariadbv1alpha1.CompressAlgorithm) 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, prefix string) BackupOpt
- func WithS3CACertPath(caCertPath string) BackupOpt
- func WithS3TLS(tls bool) 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(restore *mariadbv1alpha1.Restore, mariadb *mariadbv1alpha1.MariaDB) *Command
type BackupOpt ¶ added in v0.0.24
type BackupOpt func(*BackupOpts)
func WithBackup ¶ added in v0.0.24
func WithBackupCompression ¶ added in v0.34.0
func WithBackupCompression(c mariadbv1alpha1.CompressAlgorithm) BackupOpt
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
func WithS3CACertPath ¶ added in v0.0.27
type BackupOpts ¶ added in v0.0.24
type BackupOpts struct {
CommandOpts
Path string
TargetFilePath string
MaxRetentionDuration time.Duration
TargetTime time.Time
Compression mariadbv1alpha1.CompressAlgorithm
S3 bool
S3Bucket string
S3Endpoint string
S3Region string
S3TLS bool
S3CACertPath string
S3Prefix string
LogLevel string
DumpOpts []string
}
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.