"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "vendor/github.com/Microsoft/hcsshim/internal/hcs/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 63 skipping to change at line 63
// 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 = syscall.Errno(0xc0370110) ErrVmcomputeAlreadyStopped = syscall.Errno(0xc0370110)
// 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 = syscall.Errno(0xC0370103) ErrVmcomputeOperationPending = syscall.Errno(0xC0370103)
// 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 = syscall.Errno(0xc0370105) ErrVmcomputeOperationInvalidState = syscall.Errno(0xc0370105)
// ErrProcNotFound is an error encountered when the the process cannot be found // ErrProcNotFound is an error encountered when a procedure look up fails .
ErrProcNotFound = syscall.Errno(0x7f) ErrProcNotFound = syscall.Errno(0x7f)
// 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 = syscall.Errno(0x5) ErrVmcomputeOperationAccessIsDenied = syscall.Errno(0x5)
// 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 = syscall.Errno(0xc037010d) ErrVmcomputeInvalidJSON = syscall.Errno(0xc037010d)
// 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 245 skipping to change at line 245
SystemID: process.SystemID(), SystemID: process.SystemID(),
Op: op, Op: op,
Err: err, Err: err,
Events: events, Events: events,
} }
} }
// 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 {
err = getInnerError(err) err = getInnerError(err)
return err == ErrComputeSystemDoesNotExist || return err == ErrComputeSystemDoesNotExist ||
err == ErrElementNotFound || err == ErrElementNotFound
err == ErrProcNotFound
} }
// IsAlreadyClosed checks if an error is caused by the Container or Process havi ng been // IsAlreadyClosed checks if an error is caused by the Container or Process havi ng been
// already closed by a call to the Close() method. // already closed by a call to the Close() method.
func IsAlreadyClosed(err error) bool { func IsAlreadyClosed(err error) bool {
err = getInnerError(err) err = getInnerError(err)
return err == ErrAlreadyClosed return err == ErrAlreadyClosed
} }
// IsPending returns a boolean indicating whether the error is that // IsPending returns a boolean indicating whether the error is that
skipping to change at line 281 skipping to change at line 280
return true return true
} }
err = getInnerError(err) err = getInnerError(err)
return err == ErrTimeout return err == ErrTimeout
} }
// 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 {
err = getInnerError(err) err = getInnerError(err)
return err == ErrVmcomputeAlreadyStopped || return err == ErrVmcomputeAlreadyStopped ||
err == ErrElementNotFound || err == ErrElementNotFound
err == ErrProcNotFound
} }
// 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 {
err = getInnerError(err) err = getInnerError(err)
// If Platform doesn't recognize or support the request sent, below error s are seen // If Platform doesn't recognize or support the request sent, below error s are seen
 End of changes. 5 change blocks. 
7 lines changed or deleted 5 lines changed or added

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