errors

package
v0.0.0-...-45beecc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUnexpectedStatusErr

func NewUnexpectedStatusErr(resp *http.Response) error

NewUnexpectedStatusErr creates an ErrUnexpectedStatus from HTTP response

Types

type ErrUnexpectedStatus

type ErrUnexpectedStatus struct {
	Status                    string
	StatusCode                int
	Body                      []byte
	RequestURL, RequestMethod string
}

ErrUnexpectedStatus is returned if a registry API request returned with unexpected HTTP status

func (ErrUnexpectedStatus) Error

func (e ErrUnexpectedStatus) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL