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

Struct fakeRegistryClient

cli/command/manifest/client_test.go:13–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11)
12
13type fakeRegistryClient struct {
14 getManifestFunc func(ctx context.Context, ref reference.Named) (manifesttypes.ImageManifest, error)
15 getManifestListFunc func(ctx context.Context, ref reference.Named) ([]manifesttypes.ImageManifest, error)
16 mountBlobFunc func(ctx context.Context, source reference.Canonical, target reference.Named) error
17 putManifestFunc func(ctx context.Context, source reference.Named, mf distribution.Manifest) (digest.Digest, error)
18}
19
20func (c *fakeRegistryClient) GetManifest(ctx context.Context, ref reference.Named) (manifesttypes.ImageManifest, error) {
21 if c.getManifestFunc != nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected