mirror of
https://github.com/containrrr/watchtower.git
synced 2025-12-16 07:00:13 +01:00
re-add DefaultAuthHandler comments
This commit is contained in:
parent
efabfca8b2
commit
dd75d7ca15
1 changed files with 3 additions and 0 deletions
|
|
@ -31,6 +31,9 @@ func GetPullOptions(imageName string) (image.PullOptions, error) {
|
|||
}, 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) {
|
||||
log.Debug("Authentication request was rejected. Trying again without authentication")
|
||||
return "", nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue