Documentation ¶
Index ¶
- Constants
- func AddFlags(cmd *cobra.Command)
- func GetDefaultContext() context.Context
- func HasLogFile() bool
- func Init(cmd *cobra.Command) (err error)
- func NewBackupCommand() *cobra.Command
- func NewDebugCommand() *cobra.Command
- func NewRestoreCommand() *cobra.Command
- func SetDefaultContext(ctx context.Context)
Constants ¶
View Source
const ( // FlagLogLevel is the name of log-level flag. FlagLogLevel = "log-level" // FlagLogFile is the name of log-file flag. FlagLogFile = "log-file" // FlagLogFormat is the name of log-format flag. FlagLogFormat = "log-format" // FlagStatusAddr is the name of status-addr flag. FlagStatusAddr = "status-addr" // FlagSlowLogFile is the name of slow-log-file flag. FlagSlowLogFile = "slow-log-file" // FlagRedactLog is whether to redact sensitive information in log, already deprecated by FlagRedactInfoLog FlagRedactLog = "redact-log" // FlagRedactInfoLog is whether to redact sensitive information in log. FlagRedactInfoLog = "redact-info-log" )
Variables ¶
This section is empty.
Functions ¶
func GetDefaultContext ¶
GetDefaultContext returns the default context for command line usage.
func NewBackupCommand ¶
NewBackupCommand return a full backup subcommand.
func NewDebugCommand ¶
NewDebugCommand return a debug subcommand.
func NewRestoreCommand ¶
NewRestoreCommand returns a restore subcommand.
func SetDefaultContext ¶
SetDefaultContext sets the default context for command line usage.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.