Documentation
¶
Index ¶
- Variables
- func ExecCmd(ctx context.Context, timeout time.Duration, cmd string, args ...string) error
- func ExecCmdOut(ctx context.Context, timeout time.Duration, cmd string, args ...string) (string, error)
- func FormatBytes(i uint64) string
- func HumanizeDuration(d time.Duration) string
- func NewTLSConfig(caPath, certPath, keyPath string, skipVerify, loadSystemCAs bool) (*tls.Config, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var CleanBackupNameRE = regexp.MustCompile(`[\t\r\n ]+|\.{2,}|[\\/]+`)
Functions ¶
func ExecCmdOut ¶
func FormatBytes ¶
FormatBytes - Convert bytes to human-readable string
func HumanizeDuration ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.