Documentation
¶
Overview ¶
Package apierror provides the CLI's own error type for UpCloud API errors, independent of the SDK version.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromResponse ¶
FromResponse converts an unsuccessful API response into a *Problem. It accepts problem+json and legacy error bodies.
func IsNotFound ¶
Types ¶
type InvalidParam ¶
type Problem ¶
type Problem struct {
Type string `json:"type"`
Title string `json:"title"`
InvalidParams []InvalidParam `json:"invalid_params,omitempty"`
CorrelationID string `json:"correlation_id,omitempty"`
Status int `json:"status"`
}
Problem is an UpCloud API error. Its Error and ErrorCode output match the v8 SDK's upcloud.Problem.
Click to show internal directories.
Click to hide internal directories.