github.com/walkingsparrow/docker@v1.4.2-0.20151218153551-b708a2249bfa/api/client/lib/privileged.go (about)

     1  package lib
     2  
     3  // RequestPrivilegeFunc is a function interface that
     4  // clients can supply to retry operations after
     5  // getting an authorization error.
     6  // This function returns the registry authentication
     7  // header value in base 64 format, or an error
     8  // if the privilege request fails.
     9  type RequestPrivilegeFunc func() (string, error)