api

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

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

func CheckExitCode(err error) int

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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