method

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Host          string
	Port          int
	User          string
	Password      string
	BackupOptions string
	BackupBinary  string
	ClientBinary  string
}

type Method

type Method interface {
	// Backup executes the backup tool, writing output files into tempdir.
	Backup(ctx context.Context, tempdir string, logger logging.Logger) error

	// Prepare runs any post-backup preparation step.
	// Physical backups require mariadb-backup --prepare; logical backups return nil.
	Prepare(ctx context.Context, tempdir string, logger logging.Logger) error

	// MethodName returns the identifier stored in registry metadata
	// (e.g. "mariadb-backup" or "mariadb-dump").
	MethodName() string
}

Method defines the interface for backup tool implementations. Physical (mariadb-backup) and logical (mariadb-dump) methods both produce files in a temp directory that the caller compresses, encrypts, and uploads through a shared pipeline.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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