Signed-off-by: David Calavera <david.calavera@gmail.com> Upstream-commit: e78f02c4dbc3cada909c114fef6b6643969ab912 Component: engine
10 lines
333 B
Go
10 lines
333 B
Go
package lib
|
|
|
|
// RequestPrivilegeFunc is a function interface that
|
|
// clients can supply to retry operations after
|
|
// getting an authorization error.
|
|
// This function returns the registry authentication
|
|
// header value in base 64 format, or an error
|
|
// if the privilege request fails.
|
|
type RequestPrivilegeFunc func() (string, error)
|