| 11 | ) |
| 12 | |
| 13 | type 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 | |
| 20 | func (c *fakeRegistryClient) GetManifest(ctx context.Context, ref reference.Named) (manifesttypes.ImageManifest, error) { |
| 21 | if c.getManifestFunc != nil { |
nothing calls this directly
no outgoing calls
no test coverage detected