Documentation ¶
Index ¶
- func LogCommand(cmd *exec.Cmd, asDebug bool)
- func RandStringBytes(n int) string
- func ReaderWithProgress(r io.Reader, total int64) io.Reader
- func Redact(str, substr string) string
- func Retry(retries int, sleep time.Duration, action func() error) error
- func UnikTmpDir() string
- type AddTraceHook
- type RawVolume
- type RedactedTextFormatter
- type TeeHook
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogCommand ¶
func RandStringBytes ¶
func UnikTmpDir ¶
func UnikTmpDir() string
fix issue with docker needing mounted files to exist within home dir
Types ¶
type AddTraceHook ¶
type AddTraceHook struct {
Full bool
}
func (*AddTraceHook) Levels ¶
func (h *AddTraceHook) Levels() []logrus.Level
type RedactedTextFormatter ¶
type RedactedTextFormatter struct { // Set to true to bypass checking for a TTY before outputting colors. ForceColors bool // Force disabling colors. DisableColors bool // Disable timestamp logging. useful when output is redirected to logging // system that already adds timestamps. DisableTimestamp bool // Enable logging the full timestamp when a TTY is attached instead of just // the time passed since beginning of execution. FullTimestamp bool // TimestampFormat to use for display when a full timestamp is printed TimestampFormat string // The fields are sorted by default for a consistent output. For applications // that log extremely frequently and don't use the JSON formatter this may not // be desired. DisableSorting bool // Redactions specifies sensitive strings that should be redacted (replaced // with *'s) in all outputs. Redactions []string }
Click to show internal directories.
Click to hide internal directories.