MCPcopy Create free account
hub / github.com/docker/cli / AuthorizeRequest

Method AuthorizeRequest

internal/registryclient/endpoint.go:106–109  ·  view source on GitHub ↗
(req *http.Request, _ map[string]string)

Source from the content-addressed store, hash-verified

104}
105
106func (th *existingTokenHandler) AuthorizeRequest(req *http.Request, _ map[string]string) error {
107 req.Header.Set("Authorization", "Bearer "+th.token)
108 return nil
109}
110
111func (*existingTokenHandler) Scheme() string {
112 return "bearer"

Callers

nothing calls this directly

Calls 1

SetMethod · 0.45

Tested by

no test coverage detected