error

package
v0.11.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(c *command.StevedoreCommand, p Consoler, l Logger, debug *bool) *command.StevedoreCommand

NewCommand is a middleware that manages errors output on commands

Types

type Consoler

type Consoler interface {
	Info(msg ...interface{})
	Warn(msg ...interface{})
	Error(msg ...interface{})
}

Consoler interface to show messages through console

type ErrorManagement

type ErrorManagement struct {
	// contains filtered or unexported fields
}

type Logger

type Logger interface {
	Info(msg ...interface{})
	Warn(msg ...interface{})
	Error(msg ...interface{})
	Debug(msg ...interface{})
	Fatal(msg ...interface{})
	Panic(msg ...interface{})
}

Logger interface to log errors

Jump to

Keyboard shortcuts

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