Documentation
¶
Index ¶
- Variables
- func CleanupNULLValues(doc json.RawMessage) json.RawMessage
- func Contains(l []string, s string) bool
- func DockerShowProgress(reader io.Reader) error
- func Error(err error, msg string, args ...interface{}) error
- func ExecFileTemplate(fn string, tmpl string, vars any)
- func ExecTemplate(w io.Writer, tmpl string, vars interface{})
- func Fatal(err error, msg string, args ...interface{})
- func GetContext(ctx context.Context) (context.Context, context.CancelFunc)
- func GetTimeout() time.Duration
- func Infof(format string, args ...interface{})
- func InternalError(err error, msg string, args ...interface{})
- func IsTTY(f *os.File) bool
- func ListDir(root string) map[string]bool
- func LogConfigure(cfg *config.Log)
- func PrettyJSON(s any) error
- func PrintError(err error)
- func Stderrf(format string, args ...interface{})
- func Stdoutf(format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version string DefaultTimeout = 5 * time.Second Quiet bool )
Functions ¶
func CleanupNULLValues ¶
func CleanupNULLValues(doc json.RawMessage) json.RawMessage
CleanupNULLValues cleans up NULL values and empty arrays from the document.
func DockerShowProgress ¶
DockerShowProgress shows docker like progress output on terminal.
func ExecFileTemplate ¶
func ExecTemplate ¶
func GetContext ¶
func GetTimeout ¶
func InternalError ¶
func LogConfigure ¶
func PrettyJSON ¶
func PrintError ¶
func PrintError(err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.