Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| ... | ... |
@@ -71,38 +71,6 @@ func wrapResponseError(err error, resp serverResponse, object, id string) error |
| 71 | 71 |
} |
| 72 | 72 |
} |
| 73 | 73 |
|
| 74 |
-// IsErrImageNotFound returns true if the error is caused |
|
| 75 |
-// when an image is not found in the docker host. |
|
| 76 |
-// |
|
| 77 |
-// Deprecated: Use IsErrNotFound |
|
| 78 |
-func IsErrImageNotFound(err error) bool {
|
|
| 79 |
- return IsErrNotFound(err) |
|
| 80 |
-} |
|
| 81 |
- |
|
| 82 |
-// IsErrContainerNotFound returns true if the error is caused |
|
| 83 |
-// when a container is not found in the docker host. |
|
| 84 |
-// |
|
| 85 |
-// Deprecated: Use IsErrNotFound |
|
| 86 |
-func IsErrContainerNotFound(err error) bool {
|
|
| 87 |
- return IsErrNotFound(err) |
|
| 88 |
-} |
|
| 89 |
- |
|
| 90 |
-// IsErrNetworkNotFound returns true if the error is caused |
|
| 91 |
-// when a network is not found in the docker host. |
|
| 92 |
-// |
|
| 93 |
-// Deprecated: Use IsErrNotFound |
|
| 94 |
-func IsErrNetworkNotFound(err error) bool {
|
|
| 95 |
- return IsErrNotFound(err) |
|
| 96 |
-} |
|
| 97 |
- |
|
| 98 |
-// IsErrVolumeNotFound returns true if the error is caused |
|
| 99 |
-// when a volume is not found in the docker host. |
|
| 100 |
-// |
|
| 101 |
-// Deprecated: Use IsErrNotFound |
|
| 102 |
-func IsErrVolumeNotFound(err error) bool {
|
|
| 103 |
- return IsErrNotFound(err) |
|
| 104 |
-} |
|
| 105 |
- |
|
| 106 | 74 |
// unauthorizedError represents an authorization error in a remote registry. |
| 107 | 75 |
type unauthorizedError struct {
|
| 108 | 76 |
cause error |
| ... | ... |
@@ -120,30 +88,6 @@ func IsErrUnauthorized(err error) bool {
|
| 120 | 120 |
return ok |
| 121 | 121 |
} |
| 122 | 122 |
|
| 123 |
-// IsErrNodeNotFound returns true if the error is caused |
|
| 124 |
-// when a node is not found. |
|
| 125 |
-// |
|
| 126 |
-// Deprecated: Use IsErrNotFound |
|
| 127 |
-func IsErrNodeNotFound(err error) bool {
|
|
| 128 |
- return IsErrNotFound(err) |
|
| 129 |
-} |
|
| 130 |
- |
|
| 131 |
-// IsErrServiceNotFound returns true if the error is caused |
|
| 132 |
-// when a service is not found. |
|
| 133 |
-// |
|
| 134 |
-// Deprecated: Use IsErrNotFound |
|
| 135 |
-func IsErrServiceNotFound(err error) bool {
|
|
| 136 |
- return IsErrNotFound(err) |
|
| 137 |
-} |
|
| 138 |
- |
|
| 139 |
-// IsErrTaskNotFound returns true if the error is caused |
|
| 140 |
-// when a task is not found. |
|
| 141 |
-// |
|
| 142 |
-// Deprecated: Use IsErrNotFound |
|
| 143 |
-func IsErrTaskNotFound(err error) bool {
|
|
| 144 |
- return IsErrNotFound(err) |
|
| 145 |
-} |
|
| 146 |
- |
|
| 147 | 123 |
type pluginPermissionDenied struct {
|
| 148 | 124 |
name string |
| 149 | 125 |
} |
| ... | ... |
@@ -187,27 +131,3 @@ func (cli *Client) NewVersionError(APIrequired, feature string) error {
|
| 187 | 187 |
} |
| 188 | 188 |
return nil |
| 189 | 189 |
} |
| 190 |
- |
|
| 191 |
-// IsErrSecretNotFound returns true if the error is caused |
|
| 192 |
-// when a secret is not found. |
|
| 193 |
-// |
|
| 194 |
-// Deprecated: Use IsErrNotFound |
|
| 195 |
-func IsErrSecretNotFound(err error) bool {
|
|
| 196 |
- return IsErrNotFound(err) |
|
| 197 |
-} |
|
| 198 |
- |
|
| 199 |
-// IsErrConfigNotFound returns true if the error is caused |
|
| 200 |
-// when a config is not found. |
|
| 201 |
-// |
|
| 202 |
-// Deprecated: Use IsErrNotFound |
|
| 203 |
-func IsErrConfigNotFound(err error) bool {
|
|
| 204 |
- return IsErrNotFound(err) |
|
| 205 |
-} |
|
| 206 |
- |
|
| 207 |
-// IsErrPluginNotFound returns true if the error is caused |
|
| 208 |
-// when a plugin is not found in the docker host. |
|
| 209 |
-// |
|
| 210 |
-// Deprecated: Use IsErrNotFound |
|
| 211 |
-func IsErrPluginNotFound(err error) bool {
|
|
| 212 |
- return IsErrNotFound(err) |
|
| 213 |
-} |