MCPcopy
hub / github.com/docker/compose / isNonAuthClientError

Function isNonAuthClientError

internal/oci/push.go:154–160  ·  view source on GitHub ↗
(statusCode int)

Source from the content-addressed store, hash-verified

152}
153
154func isNonAuthClientError(statusCode int) bool {
155 if statusCode < 400 || statusCode >= 500 {
156 // not a client error
157 return false
158 }
159 return !slices.Contains(clientAuthStatusCodes, statusCode)
160}
161
162func generateManifest(layers []v1.Descriptor, ociCompat api.OCIVersion) (v1.Descriptor, []v1.Descriptor, error) {
163 var toPush []v1.Descriptor

Callers 1

PushManifestFunction · 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…