Documentation
¶
Overview ¶
Copyright 2020 New Relic Corporation. All rights reserved. SPDX-License-Identifier: Apache-2.0
Index ¶
Constants ¶
View Source
const ( // ExitCodeSuccess is returned when the process has finished successfully. ExitCodeSuccess = 0 // ExitCodeError is returned when the process has failed. ExitCodeError = 1 // ExitCodeRestart is a request from the process to be restarted. ExitCodeRestart = 3 )
Variables ¶
This section is empty.
Functions ¶
func CheckExitCode ¶
CheckExitCode checks the error for the status code.
Types ¶
type ExitCodeErr ¶
type ExitCodeErr struct {
// contains filtered or unexported fields
}
ExitCodeErr error representing a CLI exit status code.
func NewExitCodeErr ¶
func NewExitCodeErr(exitCode int) *ExitCodeErr
func (*ExitCodeErr) Error ¶
func (e *ExitCodeErr) Error() string
func (*ExitCodeErr) ExitCode ¶
func (e *ExitCodeErr) ExitCode() int
Click to show internal directories.
Click to hide internal directories.