const (
// PullScope represents the permission to pull images from a specific// repository.
PullScope = Scope(transport.PullScope)
// PushScope represents the permission to push images to a specific// repository.
PushScope = Scope(transport.PushScope)
)
CheckResponse validates that the response code is within the provided set of
codes. If it is not, CheckResponse consumes the response body and returns a
detailed error.
GetClient returns an HTTP client that transparently authenticates API
requests to the provided image repository with the provided scope. The
returned client is safe for concurrent use by multiple goroutines, and may be
shared with other callers.