cmdexec

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildFullBackupCmd

func BuildFullBackupCmd(ctx context.Context, cfg *base.BackupConfig) (*exec.Cmd, error)

BuildFullBackupCmd constructs a command to create a full backup.

func BuildIncBackupCmd

func BuildIncBackupCmd(ctx context.Context, cfg *base.BackupConfig) (*exec.Cmd, error)

BuildIncBackupCmd constructs a command to create a incremental backup.

func BuildMysqldumpCmd

func BuildMysqldumpCmd(
	ctx context.Context,
	cfg *base.BackupConfig,
) (*exec.Cmd, error)

func PrepareBaseBackup

func PrepareBaseBackup(
	ctx context.Context,
	isLast bool,
	cfg *base.BackupConfig,
) (*exec.Cmd, error)

PrepareBaseBackup constructs a command to restore a base backup.

func PrepareIncBackup

func PrepareIncBackup(
	ctx context.Context,
	inc int,
	isLast bool,
	cfg *base.BackupConfig,
) (*exec.Cmd, error)

PrepareIncBackup constructs a command to restore a incremental backup.

func StringWithMaskPassword

func StringWithMaskPassword(cmd *exec.Cmd) string

StringWithMaskPassword outputs a string masked password.

Types

This section is empty.

Jump to

Keyboard shortcuts

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