"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "vendor/github.com/Microsoft/hcsshim/errors.go" between
moby-20.10.7.tar.gz and moby-20.10.8.tar.gz

About: Moby is a framework to assemble specialized container systems (formerly project name Docker; see here to clarify the relationship between the projects).

errors.go  (moby-20.10.7):errors.go  (moby-20.10.8)
skipping to change at line 62 skipping to change at line 62
// ErrVmcomputeAlreadyStopped is an error encountered when a shutdown or terminate request is made on a stopped container // ErrVmcomputeAlreadyStopped is an error encountered when a shutdown or terminate request is made on a stopped container
ErrVmcomputeAlreadyStopped = hcs.ErrVmcomputeAlreadyStopped ErrVmcomputeAlreadyStopped = hcs.ErrVmcomputeAlreadyStopped
// ErrVmcomputeOperationPending is an error encountered when the operatio n is being completed asynchronously // ErrVmcomputeOperationPending is an error encountered when the operatio n is being completed asynchronously
ErrVmcomputeOperationPending = hcs.ErrVmcomputeOperationPending ErrVmcomputeOperationPending = hcs.ErrVmcomputeOperationPending
// ErrVmcomputeOperationInvalidState is an error encountered when the com pute system is not in a valid state for the requested operation // ErrVmcomputeOperationInvalidState is an error encountered when the com pute system is not in a valid state for the requested operation
ErrVmcomputeOperationInvalidState = hcs.ErrVmcomputeOperationInvalidState ErrVmcomputeOperationInvalidState = hcs.ErrVmcomputeOperationInvalidState
// ErrProcNotFound is an error encountered when the the process cannot be found // ErrProcNotFound is an error encountered when a procedure look up fails .
ErrProcNotFound = hcs.ErrProcNotFound ErrProcNotFound = hcs.ErrProcNotFound
// ErrVmcomputeOperationAccessIsDenied is an error which can be encounter ed when enumerating compute systems in RS1/RS2 // ErrVmcomputeOperationAccessIsDenied is an error which can be encounter ed when enumerating compute systems in RS1/RS2
// builds when the underlying silo might be in the process of terminating . HCS was fixed in RS3. // builds when the underlying silo might be in the process of terminating . HCS was fixed in RS3.
ErrVmcomputeOperationAccessIsDenied = hcs.ErrVmcomputeOperationAccessIsDe nied ErrVmcomputeOperationAccessIsDenied = hcs.ErrVmcomputeOperationAccessIsDe nied
// ErrVmcomputeInvalidJSON is an error encountered when the compute syste m does not support/understand the messages sent by management // ErrVmcomputeInvalidJSON is an error encountered when the compute syste m does not support/understand the messages sent by management
ErrVmcomputeInvalidJSON = hcs.ErrVmcomputeInvalidJSON ErrVmcomputeInvalidJSON = hcs.ErrVmcomputeInvalidJSON
// ErrVmcomputeUnknownMessage is an error encountered guest compute syste m doesn't support the message // ErrVmcomputeUnknownMessage is an error encountered guest compute syste m doesn't support the message
skipping to change at line 180 skipping to change at line 180
if _, ok := err.(*ProcessError); ok { if _, ok := err.(*ProcessError); ok {
return err return err
} }
processError := &ProcessError{Process: process, Operation: operation, Err : err} processError := &ProcessError{Process: process, Operation: operation, Err : err}
return processError return processError
} }
// IsNotExist checks if an error is caused by the Container or Process not exist ing. // IsNotExist checks if an error is caused by the Container or Process not exist ing.
// Note: Currently, ErrElementNotFound can mean that a Process has either // Note: Currently, ErrElementNotFound can mean that a Process has either
// already exited, or does not exist. Both IsAlreadyStopped and IsNotExist // already exited, or does not exist. Both IsAlreadyStopped and IsNotExist
// will currently return true when the error is ErrElementNotFound or ErrProcNot Found. // will currently return true when the error is ErrElementNotFound.
func IsNotExist(err error) bool { func IsNotExist(err error) bool {
if _, ok := err.(EndpointNotFoundError); ok { if _, ok := err.(EndpointNotFoundError); ok {
return true return true
} }
if _, ok := err.(NetworkNotFoundError); ok { if _, ok := err.(NetworkNotFoundError); ok {
return true return true
} }
return hcs.IsNotExist(getInnerError(err)) return hcs.IsNotExist(getInnerError(err))
} }
skipping to change at line 213 skipping to change at line 213
// IsTimeout returns a boolean indicating whether the error is caused by // IsTimeout returns a boolean indicating whether the error is caused by
// a timeout waiting for the operation to complete. // a timeout waiting for the operation to complete.
func IsTimeout(err error) bool { func IsTimeout(err error) bool {
return hcs.IsTimeout(getInnerError(err)) return hcs.IsTimeout(getInnerError(err))
} }
// IsAlreadyStopped returns a boolean indicating whether the error is caused by // IsAlreadyStopped returns a boolean indicating whether the error is caused by
// a Container or Process being already stopped. // a Container or Process being already stopped.
// Note: Currently, ErrElementNotFound can mean that a Process has either // Note: Currently, ErrElementNotFound can mean that a Process has either
// already exited, or does not exist. Both IsAlreadyStopped and IsNotExist // already exited, or does not exist. Both IsAlreadyStopped and IsNotExist
// will currently return true when the error is ErrElementNotFound or ErrProcNot Found. // will currently return true when the error is ErrElementNotFound.
func IsAlreadyStopped(err error) bool { func IsAlreadyStopped(err error) bool {
return hcs.IsAlreadyStopped(getInnerError(err)) return hcs.IsAlreadyStopped(getInnerError(err))
} }
// IsNotSupported returns a boolean indicating whether the error is caused by // IsNotSupported returns a boolean indicating whether the error is caused by
// unsupported platform requests // unsupported platform requests
// Note: Currently Unsupported platform requests can be mean either // Note: Currently Unsupported platform requests can be mean either
// ErrVmcomputeInvalidJSON, ErrInvalidData, ErrNotSupported or ErrVmcomputeUnkno wnMessage // ErrVmcomputeInvalidJSON, ErrInvalidData, ErrNotSupported or ErrVmcomputeUnkno wnMessage
// is thrown from the Platform // is thrown from the Platform
func IsNotSupported(err error) bool { func IsNotSupported(err error) bool {
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)