mirror of
				https://github.com/moby/moby.git
				synced 2022-11-09 12:21:53 -05:00 
			
		
		
		
	Remove deprecated IsErr...NotFound() functions
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
		
							parent
							
								
									919726b5db
								
							
						
					
					
						commit
						7553fc4bcd
					
				
					 1 changed files with 0 additions and 80 deletions
				
			
		| 
						 | 
				
			
			@ -71,38 +71,6 @@ func wrapResponseError(err error, resp serverResponse, object, id string) error
 | 
			
		|||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// IsErrImageNotFound returns true if the error is caused
 | 
			
		||||
// when an image is not found in the docker host.
 | 
			
		||||
//
 | 
			
		||||
// Deprecated: Use IsErrNotFound
 | 
			
		||||
func IsErrImageNotFound(err error) bool {
 | 
			
		||||
	return IsErrNotFound(err)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// IsErrContainerNotFound returns true if the error is caused
 | 
			
		||||
// when a container is not found in the docker host.
 | 
			
		||||
//
 | 
			
		||||
// Deprecated: Use IsErrNotFound
 | 
			
		||||
func IsErrContainerNotFound(err error) bool {
 | 
			
		||||
	return IsErrNotFound(err)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// IsErrNetworkNotFound returns true if the error is caused
 | 
			
		||||
// when a network is not found in the docker host.
 | 
			
		||||
//
 | 
			
		||||
// Deprecated: Use IsErrNotFound
 | 
			
		||||
func IsErrNetworkNotFound(err error) bool {
 | 
			
		||||
	return IsErrNotFound(err)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// IsErrVolumeNotFound returns true if the error is caused
 | 
			
		||||
// when a volume is not found in the docker host.
 | 
			
		||||
//
 | 
			
		||||
// Deprecated: Use IsErrNotFound
 | 
			
		||||
func IsErrVolumeNotFound(err error) bool {
 | 
			
		||||
	return IsErrNotFound(err)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// unauthorizedError represents an authorization error in a remote registry.
 | 
			
		||||
type unauthorizedError struct {
 | 
			
		||||
	cause error
 | 
			
		||||
| 
						 | 
				
			
			@ -120,30 +88,6 @@ func IsErrUnauthorized(err error) bool {
 | 
			
		|||
	return ok
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// IsErrNodeNotFound returns true if the error is caused
 | 
			
		||||
// when a node is not found.
 | 
			
		||||
//
 | 
			
		||||
// Deprecated: Use IsErrNotFound
 | 
			
		||||
func IsErrNodeNotFound(err error) bool {
 | 
			
		||||
	return IsErrNotFound(err)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// IsErrServiceNotFound returns true if the error is caused
 | 
			
		||||
// when a service is not found.
 | 
			
		||||
//
 | 
			
		||||
// Deprecated: Use IsErrNotFound
 | 
			
		||||
func IsErrServiceNotFound(err error) bool {
 | 
			
		||||
	return IsErrNotFound(err)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// IsErrTaskNotFound returns true if the error is caused
 | 
			
		||||
// when a task is not found.
 | 
			
		||||
//
 | 
			
		||||
// Deprecated: Use IsErrNotFound
 | 
			
		||||
func IsErrTaskNotFound(err error) bool {
 | 
			
		||||
	return IsErrNotFound(err)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type pluginPermissionDenied struct {
 | 
			
		||||
	name string
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -187,27 +131,3 @@ func (cli *Client) NewVersionError(APIrequired, feature string) error {
 | 
			
		|||
	}
 | 
			
		||||
	return nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// IsErrSecretNotFound returns true if the error is caused
 | 
			
		||||
// when a secret is not found.
 | 
			
		||||
//
 | 
			
		||||
// Deprecated: Use IsErrNotFound
 | 
			
		||||
func IsErrSecretNotFound(err error) bool {
 | 
			
		||||
	return IsErrNotFound(err)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// IsErrConfigNotFound returns true if the error is caused
 | 
			
		||||
// when a config is not found.
 | 
			
		||||
//
 | 
			
		||||
// Deprecated: Use IsErrNotFound
 | 
			
		||||
func IsErrConfigNotFound(err error) bool {
 | 
			
		||||
	return IsErrNotFound(err)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// IsErrPluginNotFound returns true if the error is caused
 | 
			
		||||
// when a plugin is not found in the docker host.
 | 
			
		||||
//
 | 
			
		||||
// Deprecated: Use IsErrNotFound
 | 
			
		||||
func IsErrPluginNotFound(err error) bool {
 | 
			
		||||
	return IsErrNotFound(err)
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue