Documentation
¶
Index ¶
- Constants
- func GetAuthURL(challenge string, img string) (*url.URL, error)
- func GetBearerHeader(challenge string, img string, err error, registryAuth string) (string, error)
- func GetChallengeRequest(URL url.URL) (*http.Request, error)
- func GetChallengeURL(img string) (url.URL, error)
- func GetScopeFromImageName(img, svc string) string
- 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 creates a URL object based on the image info
func GetScopeFromImageName ¶ added in v1.1.1
GetScopeFromImageName normalizes an image name for use as scope during auth and head requests
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.