package
0.0.0-20230928123041-2caf503550cc
Repository: https://github.com/giantswarm/gsctl.git
Documentation: pkg.go.dev

# Functions

IsAccessForbiddenError checks whether the error is an HTTP 403 error.
IsBadRequestError checks whether the error is an HTTP 400 error.
IsCertificateHostnameError checks whether the error represents a x509.HostnameError.
IsCertificateInvalidError checks whether the error represents a x509.UnknownAuthorityError.
IsCertificateSignedByUnknownAuthorityError checks whether the error represents a x509.UnknownAuthorityError.
IsConflictError checks whether the error is an HTTP 409 error.
IsInternalServerError checks whether the error is an HTTP 500 error.
IsMalformedResponse checks whether the error is "Malformed response", which can mean several things.
IsNotFoundError checks whether the error is an HTTP 404 error.
IsServiceUnavailableError checks whether the error is an HTTP 503 error.
IsUnauthorizedError checks whether the error is an HTTP 401 error.
New creates a new APIError based on all the incoming error details.

# Structs

APIError is our structure to carry all error information we care about from the api client to the CLI.