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

Method getHTTPTransportForRepoEndpoint

internal/registryclient/client.go:147–159  ·  view source on GitHub ↗
(ctx context.Context, repoEndpoint repositoryEndpoint)

Source from the content-addressed store, hash-verified

145}
146
147func (c *client) getHTTPTransportForRepoEndpoint(ctx context.Context, repoEndpoint repositoryEndpoint) (http.RoundTripper, error) {
148 httpTransport, err := getHTTPTransport(
149 c.authConfigResolver(ctx, repoEndpoint.indexInfo.Name),
150 repoEndpoint.endpoint,
151 repoEndpoint.repoName,
152 c.userAgent,
153 repoEndpoint.actions,
154 )
155 if err != nil {
156 return nil, fmt.Errorf("failed to configure transport: %w", err)
157 }
158 return httpTransport, nil
159}
160
161// GetManifest returns an ImageManifest for the reference
162func (c *client) GetManifest(ctx context.Context, ref reference.Named) (manifesttypes.ImageManifest, error) {

Callers 1

Calls 1

getHTTPTransportFunction · 0.85

Tested by

no test coverage detected