Update github.com/Microsoft/hcsshim to v0.8.15
Fixes #4915 Release info: https://github.com/microsoft/hcsshim/releases/tag/v0.8.15 Signed-off-by: Kevin Parsons <kevpar@microsoft.com>
This commit is contained in:
		
							
								
								
									
										12
									
								
								vendor/github.com/Microsoft/hcsshim/errors.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										12
									
								
								vendor/github.com/Microsoft/hcsshim/errors.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -230,6 +230,18 @@ func IsNotSupported(err error) bool {
 | 
			
		||||
	return hcs.IsNotSupported(getInnerError(err))
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// IsOperationInvalidState returns true when err is caused by
 | 
			
		||||
// `ErrVmcomputeOperationInvalidState`.
 | 
			
		||||
func IsOperationInvalidState(err error) bool {
 | 
			
		||||
	return hcs.IsOperationInvalidState(getInnerError(err))
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// IsAccessIsDenied returns true when err is caused by
 | 
			
		||||
// `ErrVmcomputeOperationAccessIsDenied`.
 | 
			
		||||
func IsAccessIsDenied(err error) bool {
 | 
			
		||||
	return hcs.IsAccessIsDenied(getInnerError(err))
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func getInnerError(err error) error {
 | 
			
		||||
	switch pe := err.(type) {
 | 
			
		||||
	case nil:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user