re-add DefaultAuthHandler comments

pull/2047/head
nemezo 3 weeks ago
parent efabfca8b2
commit dd75d7ca15
No known key found for this signature in database

@ -31,6 +31,9 @@ func GetPullOptions(imageName string) (image.PullOptions, error) {
}, nil }, nil
} }
// DefaultAuthHandler will be invoked if an AuthConfig is rejected
// It could be used to return a new value for the "X-Registry-Auth" authentication header,
// but there's no point trying again with the same value as used in AuthConfig
func DefaultAuthHandler(ctx context.Context) (string, error) { func DefaultAuthHandler(ctx context.Context) (string, error) {
log.Debug("Authentication request was rejected. Trying again without authentication") log.Debug("Authentication request was rejected. Trying again without authentication")
return "", nil return "", nil

Loading…
Cancel
Save