Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrorCodeBlobUnknown = "BLOB_UNKNOWN" ErrorCodeBlobUploadInvalid = "BLOB_UPLOAD_INVALID" ErrorCodeBlobUploadUnknown = "BLOB_UPLOAD_UNKNOWN" ErrorCodeDigestInvalid = "DIGEST_INVALID" ErrorCodeManifestBlobUnknown = "MANIFEST_BLOB_UNKNOWN" ErrorCodeManifestInvalid = "MANIFEST_INVALID" ErrorCodeManifestUnknown = "MANIFEST_UNKNOWN" ErrorCodeNameInvalid = "NAME_INVALID" ErrorCodeNameUnknown = "NAME_UNKNOWN" ErrorCodeSizeInvalid = "SIZE_INVALID" ErrorCodeDenied = "DENIED" ErrorCodeUnsupported = "UNSUPPORTED" )
References:
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct { Code string `json:"code"` Message string `json:"message"` Detail any `json:"detail,omitempty"` }
Error represents a response inner error returned by the remote registry. References:
type ErrorResponse ¶
ErrorResponse represents an error response.
func (*ErrorResponse) Error ¶
func (err *ErrorResponse) Error() string
Error returns a error string describing the error.
func (*ErrorResponse) Unwrap ¶
func (err *ErrorResponse) Unwrap() error
Unwrap returns the internal errors of err if any.
type Errors ¶
type Errors []Error
Errors represents a list of response inner errors returned by the remote server. References:
Click to show internal directories.
Click to hide internal directories.