Documentation ¶
Index ¶
- Variables
- func Close(closer io.Closer, onErrorMessage string)
- func Errorf(msg string, args ...interface{}) error
- func FatalOnError(err error, reason string, args ...interface{})
- func OpenWriter(name string) (io.Writer, error)
- func PanicOnError(err error, msg string, args ...interface{})
- func Panicf(msg string, args ...interface{})
- type BaseOptions
- type StartupError
Constants ¶
This section is empty.
Variables ¶
View Source
var BuildGitHash string
View Source
var BuildPackage string
View Source
var BuildUnixTimestamp string
View Source
var BuildVersion string
Functions ¶
func FatalOnError ¶
func PanicOnError ¶
Types ¶
type BaseOptions ¶
type BaseOptions struct { Logfile string `long:"log-file" description:"Write logs to a different file. Defaults to stdout."` ForceColor bool `long:"log-color" description:"Forces colored output even on non TTYs."` JSONFormatter bool `long:"log-json" description:"Log using the logrus json formatter."` Verbose bool `long:"verbose" description:"Show verbose logging output."` Version bool `long:"version" description:"Prints the build information about this application if available."` }
func (*BaseOptions) Initialize ¶
func (opts *BaseOptions) Initialize()
type StartupError ¶
type StartupError error
Click to show internal directories.
Click to hide internal directories.