Documentation
¶
Index ¶
Constants ¶
View Source
const ( ExitOK = iota ExitGeneral ExitUsage ExitNotFound ExitPerm ExitConflict ExitNetwork ExitValid ExitCanceled ExitPartial )
Variables ¶
View Source
var ErrPartialSuccess = stderrors.New("partial success")
Functions ¶
Types ¶
type Error ¶
type Error struct {
Code string `json:"code"`
Message string `json:"message"`
Retryable bool `json:"retryable"`
Remediation string `json:"remediation,omitempty"`
Resource string `json:"resource,omitempty"`
Exit int `json:"exit_code,omitempty"`
Rendered bool `json:"-"`
// contains filtered or unexported fields
}
type Option ¶
type Option func(*Error)
func WithMessage ¶
func WithRemediation ¶
func WithRendered ¶
func WithResource ¶
func WithRetryable ¶
Click to show internal directories.
Click to hide internal directories.