utils

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: 2 Imported by: 4

Documentation

Index

Constants

View Source
const (
	TimeFormat = "2006-01-02_15-04-05_-0700"

	XtrabackupFullArtifact = "base.tar.gz"
	XtrabackupIncArtifact  = "inc.xb.gz"
	MysqldumpArtifact      = "dump.sql.gz"
)

Variables

View Source
var (
	TimeFormatByteLen = len([]byte(TimeFormat))
)

Functions

func EnvOrDefaultString added in v0.6.0

func EnvOrDefaultString(name string, value string) string

EnvOrDefaultString returns the value set by the specified environment variable, if any, otherwise the specified default value.

func MkdirAllWithLog added in v0.6.0

func MkdirAllWithLog(path string) error

MkdirAllWithLog creates path as a directory. When creating the directory is failed, the path is logged.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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