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

Function checkLocalImageExistence

cmd/docker-trust/trust/sign.go:146–149  ·  view source on GitHub ↗
(ctx context.Context, apiClient client.APIClient, imageName string)

Source from the content-addressed store, hash-verified

144}
145
146func checkLocalImageExistence(ctx context.Context, apiClient client.APIClient, imageName string) error {
147 _, err := apiClient.ImageInspect(ctx, imageName)
148 return err
149}
150
151func createTarget(notaryRepo notaryclient.Repository, tag string) (notaryclient.Target, error) {
152 target := &notaryclient.Target{}

Callers 1

runSignImageFunction · 0.85

Calls 1

ImageInspectMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…