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

Method ImageHistory

cli/command/image/client_test.go:118–125  ·  view source on GitHub ↗
(_ context.Context, img string, options ...client.ImageHistoryOption)

Source from the content-addressed store, hash-verified

116}
117
118func (cli *fakeClient) ImageHistory(_ context.Context, img string, options ...client.ImageHistoryOption) (client.ImageHistoryResult, error) {
119 if cli.imageHistoryFunc != nil {
120 return cli.imageHistoryFunc(img, options...)
121 }
122 return client.ImageHistoryResult{
123 Items: []image.HistoryResponseItem{{ID: img, Created: time.Now().Unix()}},
124 }, nil
125}
126
127func (cli *fakeClient) ImageBuild(ctx context.Context, buildContext io.Reader, options client.ImageBuildOptions) (client.ImageBuildResult, error) {
128 if cli.imageBuildFunc != nil {

Callers 1

runHistoryFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected