mirror of
https://github.com/rancher/os.git
synced 2025-07-06 03:26:12 +00:00
10 lines
336 B
Go
10 lines
336 B
Go
package client
|
|
|
|
// 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)
|