|
@@ -58,14 +58,6 @@ func (e objectNotFoundError) Error() string {
|
|
return fmt.Sprintf("Error: No such %s: %s", e.object, e.id)
|
|
return fmt.Sprintf("Error: No such %s: %s", e.object, e.id)
|
|
}
|
|
}
|
|
|
|
|
|
-// IsErrUnauthorized returns true if the error is caused
|
|
|
|
-// when a remote registry authentication fails
|
|
|
|
-//
|
|
|
|
-// Deprecated: use errdefs.IsUnauthorized
|
|
|
|
-func IsErrUnauthorized(err error) bool {
|
|
|
|
- return errdefs.IsUnauthorized(err)
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
type pluginPermissionDenied struct {
|
|
type pluginPermissionDenied struct {
|
|
name string
|
|
name string
|
|
}
|
|
}
|
|
@@ -74,15 +66,6 @@ func (e pluginPermissionDenied) Error() string {
|
|
return "Permission denied while installing plugin " + e.name
|
|
return "Permission denied while installing plugin " + e.name
|
|
}
|
|
}
|
|
|
|
|
|
-// IsErrNotImplemented returns true if the error is a NotImplemented error.
|
|
|
|
-// This is returned by the API when a requested feature has not been
|
|
|
|
-// implemented.
|
|
|
|
-//
|
|
|
|
-// Deprecated: use errdefs.IsNotImplemented
|
|
|
|
-func IsErrNotImplemented(err error) bool {
|
|
|
|
- return errdefs.IsNotImplemented(err)
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
// NewVersionError returns an error if the APIVersion required
|
|
// NewVersionError returns an error if the APIVersion required
|
|
// if less than the current supported version
|
|
// if less than the current supported version
|
|
func (cli *Client) NewVersionError(APIrequired, feature string) error {
|
|
func (cli *Client) NewVersionError(APIrequired, feature string) error {
|