diff options
author | Sebastiaan van Stijn <github@gone.nl> | 2022-08-23 22:48:02 +0200 |
---|---|---|
committer | Sebastiaan van Stijn <github@gone.nl> | 2022-08-23 23:21:19 +0200 |
commit | c3f0cd7457457f75b32b83b74e291c049194ab37 (patch) | |
tree | 0b61cca3d03c598fd2eca1315d34e516edaa659b | |
parent | 6b7974cf1662d56a9aadc2b5c2ad12a80b448671 (diff) |
client: remove deprecated IsErrUnauthorized, IsErrNotImplemented
These were deprecated in ee230d8fdda6a1901c2adc394b5fb8471ec7aa51,
which is in the 22.06 branch, so we can safely remove it from
master to have them removed in the release after that.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
-rw-r--r-- | client/errors.go | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/client/errors.go b/client/errors.go index e5a8a865f9..67a6babda7 100644 --- a/client/errors.go +++ b/client/errors.go @@ -58,14 +58,6 @@ func (e objectNotFoundError) Error() string { 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 { name string } @@ -74,15 +66,6 @@ func (e pluginPermissionDenied) Error() string { 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 // if less than the current supported version func (cli *Client) NewVersionError(APIrequired, feature string) error { |