Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ExitCodes = map[int]string{
0: "Success",
1: "User/Application error (invalid arguments, missing resources, permission denied)",
2: "System/Network error (connection failed, timeout, server error)",
}
ExitCodes documents the exit codes used by the CLI
View Source
var (
// Version is set at build time via ldflags
Version = "dev"
)
Functions ¶
func BannerWithVersion ¶
func BannerWithVersion() string
BannerWithVersion returns the banner with version info
Types ¶
type JSONError ¶ added in v0.4.0
type JSONError struct {
Error string `json:"error"`
Code string `json:"code,omitempty"`
Category string `json:"category,omitempty"`
Operation string `json:"operation,omitempty"`
Hint string `json:"hint,omitempty"`
}
JSONError represents an error in JSON format for --json-errors output
Click to show internal directories.
Click to hide internal directories.