Documentation
¶
Index ¶
Constants ¶
View Source
const (
// MySQLDumpProvider denotes the mysqldump utility backup and restore provider.
MySQLDumpProvider = "mysqldump"
)
Variables ¶
View Source
var ExecutorProviders = [...]string{MySQLDumpProvider}
ExecutorProviders denotes the list of available ExecutorProviders.
Functions ¶
func DefaultCreds ¶
DefaultCreds return the default MySQL credentials for the local instance.
Types ¶
type Interface ¶
type Interface interface {
// Backup runs a backup operation using the given credentials, returning the content.
// TODO: default backupDir to allow streaming...
Backup(backupDir string, clusterName string) (io.ReadCloser, string, error)
// Restore restores the given content to the mysql node.
Restore(content io.ReadCloser) error
}
Interface will execute backup operations via a tool such as mysqlbackup or mysqldump.
Click to show internal directories.
Click to hide internal directories.