Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsNotFound ¶
IsNotFound returns true if err resembles an HTTP NotFound error.
func IsPipelineAlreadyExists ¶
IsPipelineAlreadyExists returns true if the error indicates that a pipeline already exists.
Types ¶
type ResponseError ¶
type ResponseError struct {
// contains filtered or unexported fields
}
ResponseError wraps a (potentially nil) *http.Response and an error.
func NewResponseError ¶
func NewResponseError(resp *http.Response, err error) *ResponseError
NewResponseError creates a new *ResponseError.
func (*ResponseError) Code ¶
func (e *ResponseError) Code() int
Code returns the HTTP status code if the error includes an *http.Response. Otherwise returns 0.
func (*ResponseError) Error ¶
func (e *ResponseError) Error() string
Error implements the error interface.
Click to show internal directories.
Click to hide internal directories.