Documentation ¶
Index ¶
Constants ¶
View Source
const ( OK = Category(iota) User // User made an error Config // Errors in config.yml, extensions, or kubeconfig NoDaemonLogs // Other error generated in the CLI process, so no use pointing the user to logs Unknown // Something else. Consult the logs )
Variables ¶
This section is empty.
Functions ¶
func FromResult ¶ added in v2.7.2
Types ¶
type Category ¶
type Category int
The Category is used for categorizing errors so that we can know when to point the user to the logs or not.
func GetCategory ¶
GetCategory returns the error category for a categorized error, OK for nil, and Unknown for other errors.
Click to show internal directories.
Click to hide internal directories.