Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrRegistry = "distribution: registry returned error"
ErrRegistry is the string returned by and ErrorResponse error.
Functions ¶
This section is empty.
Types ¶
type ErrorInfo ¶
type ErrorInfo struct { Code string `json:"code"` Message string `json:"message"` Detail string `json:"detail"` }
ErrorInfo describes a server error returned from a registry.
type ErrorResponse ¶
type ErrorResponse struct {
Errors []ErrorInfo `json:"errors"`
}
ErrorResponse is returned by a registry on an invalid request.
func (*ErrorResponse) Detail ¶
func (er *ErrorResponse) Detail() []ErrorInfo
Detail returns an ErrorInfo
func (*ErrorResponse) Error ¶
func (er *ErrorResponse) Error() string
Error implements the Error interface.
type RepositoryList ¶
type RepositoryList struct {
Repositories []string `json:"repositories"`
}
RepositoryList returns a catalog of repositories maintained on the registry.
Click to show internal directories.
Click to hide internal directories.