MCPcopy Index your code
hub / github.com/docker/cli / ImagePush

Method ImagePush

cli/command/image/client_test.go:60–66  ·  view source on GitHub ↗
(_ context.Context, ref string, options client.ImagePushOptions)

Source from the content-addressed store, hash-verified

58}
59
60func (cli *fakeClient) ImagePush(_ context.Context, ref string, options client.ImagePushOptions) (client.ImagePushResponse, error) {
61 if cli.imagePushFunc != nil {
62 return cli.imagePushFunc(ref, options)
63 }
64 // FIXME(thaJeztah): how to mock this?
65 return fakeStreamResult{ReadCloser: http.NoBody}, nil
66}
67
68func (cli *fakeClient) Info(_ context.Context, _ client.InfoOptions) (client.SystemInfoResult, error) {
69 if cli.infoFunc != nil {

Callers 1

runPushFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected