Documentation ¶
Index ¶
- Constants
- func GetAuthURL(challenge string, imageRef ref.Named) (*url.URL, error)
- func GetBearerHeader(challenge string, imageRef ref.Named, registryAuth string) (string, error)
- func GetChallengeRequest(URL url.URL) (*http.Request, error)
- func GetChallengeURL(imageRef ref.Named) url.URL
- func GetToken(container types.Container, registryAuth string) (string, error)
Constants ¶
View Source
const ChallengeHeader = "WWW-Authenticate"
ChallengeHeader is the HTTP Header containing challenge instructions
Variables ¶
This section is empty.
Functions ¶
func GetAuthURL ¶
GetAuthURL from the instructions in the challenge
func GetBearerHeader ¶
GetBearerHeader tries to fetch a bearer token from the registry based on the challenge instructions
func GetChallengeRequest ¶
GetChallengeRequest creates a request for getting challenge instructions
func GetChallengeURL ¶
GetChallengeURL returns the URL to check auth requirements for access to a given image
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.