MCPcopy Create free account
hub / github.com/containers/image / successStatus

Function successStatus

docker/docker_image_dest.go:549–551  ·  view source on GitHub ↗

successStatus returns true if the argument is a successful HTTP response code (in the range 200 - 399 inclusive).

(status int)

Source from the content-addressed store, hash-verified

547// successStatus returns true if the argument is a successful HTTP response
548// code (in the range 200 - 399 inclusive).
549func successStatus(status int) bool {
550 return status >= 200 && status <= 399
551}
552
553// isManifestInvalidError returns true iff err from registryHTTPResponseToError is a “manifest invalid” error.
554func isManifestInvalidError(err error) bool {

Callers 2

PutBlobWithOptionsMethod · 0.85
uploadManifestMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…